If you are trying to use apt behind a corporate firewall, try changing the user agent apt is using with wget to load the package lists. By default it uses:
|
1 |
User-Agent: Debian APT-HTTP/1.3 |
which isn’t recognised by the filter.
1. Create and edit /etc/apt/apt.conf
|
1 |
sudo vi /etc/apt/apt.conf |
2. Paste the following into the file:
|
1 2 3 4 |
Acquire { http::User-Agent "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0"; }; |
3. Update apt
|
1 |
sudo apt-get update |
Tada.