When i want do “sudo apt-get update” on my debian 8.11, i have this error :
E: Malformed line 1 in source list /etc/apt/sources.list.d/mssql-cli.list ([arch] is not an assignment)
E: The list of sources could not be read.
the next commands works for install mssql-cli :
# Installer les composants du système
sudo apt-get update
sudo apt-get install curl apt-transport-https
# Importez les clés GPG du référentiel public
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
# Enregistrez le flux de produits Microsoft
echo " deb [arch = amd64] https://packages.microsoft.com/debian/8/prod jessie main " | sudo tee /etc/apt/sources.list.d/mssql-cli.list
I'm inspire for documentation officielle Microsoft : [https://github.com/dbcli/mssql-cli/blob/master/doc/installation/linux.md#debian-8](https://github.com/dbcli/mssql-cli/blob/master/doc/installation/linux.md#debian-8)
This probleme is not 100% of Ansible but i want this tool for use after with ansible.
#Enregistrez le flux de produits Microsoft
echo "deb [arch = amd64] https://packages.microsoft.com/debian/8/prod jessie main " | sudo tee /etc/apt/sources.list.d/mssql-cli.list
Hello,
try to get rid of the extra spaces - [arch=amd64] instead of [arch = amd64].