My company uses an HTTP proxy and our various Ubuntu 12.04 servers therefore need to be configured properly, namely by setting \etc\apt\apt.conf.d\80proxy
to:
Acquire::http::Proxy "http://proxy.mycompany.com:80";
Acquire::http::No-Cache true;
Now, since a few days, this method suddenly stopped working: I run into sum mismatch errors. I have tried all the usual tricks found on stackoverflow or on the web, among others:
sudo rm -fR /var/lib/apt/lists/*
sudo apt-get clean
But nothing seems to work. I even switched to a FTP server, without any luck. What's a radical solution to this problem? Is it likely that the proxy server has some kind of issue? What could it be?
Using Ubuntu 12.04
Best Answer
To use apt-get through a proxy, I do the following - you do need to be able to access the internet (e.g. through a browser like Firefox) though:
This prints the urls (and other info like md5sums) of the packages needed to carry out the installation, so you can download them. For example, using
supertux
:Then download the
.deb
files from the given links (preferably into a empty folder), through a browser that works through the proxy etc, and you can then install them using Software Centre; or usingcd /FOLDER/WITH/DOWNLOADED-DEB-FILES
and one of these commands in terminalThis is a bit slow and annoying, but seems to work over HTTP proxies. You can also get the packages from http://packages.ubuntu.com/