I'm trying to configure some proxies for a guest virtual machine and now I'm getting:
sudo apt-get update
E: Syntax error /etc/apt/apt.conf.d/95proxy:4: Extra junk at end of file
The content of the file is:
cat /etc/apt/apt.conf.d/95proxy
Acquire::http::proxy "http://10.0.0.60:3128/"
Acquire::ftp::proxy "http://10.0.0.60:3128/"
Acquire::https::proxy "http://10.0.0.60:3128/"
Best Answer
The problem was that I wasn't setting up the end of line semicolons for the configuration file. It should look like this:
Reading the man page:
In case of multiple lines using scopes with curly braces it should looks: