I have a Debian Jessie 8.3 server on the company network that requires updates/patches installing for the first time. The server is configured to use online sources rather than the ISO/DVD.
Every time I run “apt-get update” I get source connection errors “W: Failed to fetch…”
My problem was the proxy – I had not yet defined the proxy settings the server should use.
- vi /etc/apt/apt.conf – create this file if needed
- Type the following (altering for your specific proxy settings of course):
- Save the file (:wq!) and retry the “apt-get update” command which now worked, i.e the response was similar to “Hit http://ftp.uk.debian.org jessie/main Sources..” and “Get:4 http://security.debian.org jessie/updates/main Sources [189 kB]”
Disclaimer: provided “AS IS” with no warranties and confer no rights