Le quartidi 14 floréal, an CCXXIII, Jonathan Dowland a écrit : > The safest way would be a variation on 3), IMHO > > echo 'Acquire::http::Proxy "http://192.168.6.254:3128";' | \ > sudo tee -a /etc/apt/apt.conf.d/90http-proxy > > This should make the setting persist and normal apt-get update/upgrade > should work afterwards.
On the other hand, that means that the HTTP proxy would be configured at two different places. This is rarely a good idea, because one day the configuration will change, and one of the places will be forgotten. Also: keeping the setting from the environment SHOULD WORK. If it does not, there is a problem that needs fixing. Any other solution is not a fix, it is a work-around. I do not know if the order if the directives in /etc/sudoers matters, as was suggested earlier, but that would be the first thing to try. And of course, use env to test, not apt. Regards, -- Nicolas George
signature.asc
Description: Digital signature