[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudo not respecting /etc/sudoers

On Sun, May 03, 2015 at 12:20:35PM +0300, Reco wrote:
> 1) sudo -E apt-get update
> 2) Move 'Defaults env_keep…' to line 12 in /etc/sudoers (i.e. *before*
> "User privilege escalation section")
> 3) sudo apt-get -o Acquire::http::Proxy= update

The safest way would be a variation on 3), IMHO

  echo 'Acquire::http::Proxy "";;' | \
    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.

Reply to: