Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
77
rated 0 times [  77] [ 0]  / answers: 1 / hits: 275121  / 1 Year ago, wed, january 25, 2023, 3:20:59

I've got an Ubuntu 11.10 system connected via a proxy to the internet, and I would like to install packages via apt-get. When I try to do that I get this error message:



sudo apt-get install libboost-program-options-dev
[...]
Err http://gb.archive.ubuntu.com/ubuntu/ oneiric/main libboost1.46-dev i386 1.46.1-5ubuntu2
407 Proxy Authentication Required


Any ideas?


More From » apt

 Answers
7

This method worked for me.....just have a try...



check the file /etc/apt/apt.conf



The contents were,



Acquire::http::proxy "http://<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<proxy>:<port>/";
Acquire::https::proxy "https://<proxy>:<port>/";


This was the reason why you could reach proxy but couldn't get past it, since there is no username password information. So just put that info into it..



Acquire::http::proxy "http://<username>:<password>@<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<username>:<password>@<proxy>:<port>/";
Acquire::https::proxy "https://<username>:<password>@<proxy>:<port>/";


save the file and you are done...






BROTIP: More better add these lines in another file, /etc/apt/apt.conf.d/80proxy. This will ensure that after a version upgrade changes won't be lost.


[#41355] Thursday, January 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ledeball

Total Points: 434
Total Questions: 121
Total Answers: 120

Location: Antigua and Barbuda
Member since Sat, Apr 24, 2021
3 Years ago
;