I'm using Ubuntu Mate - 16.10
but when run sudo apt-get update
I gotta 404
status to everything.
does not solved
- change proxy, graphical and terminal.
- disable untrusted ppa.
- re-install system.
more info
I'm using Ubuntu Mate - 16.10
but when run sudo apt-get update
I gotta 404
status to everything.
does not solved
more info
The problem is likely that while you have set the http_proxy/https_proxy environment variable for your user you haven't set it for root (which executes the sudo command).
Two things you can do:
When you change your proxy settings with the Ubuntu System Settings, you have to close current terminals and re-open them so they get the updated settings.
Edit your sudoers
file, using the command sudo visudo
, and add the following line:
Defaults env_keep = "http_proxy https_proxy ftp_proxy"
That way, your local non-admin user's proxy environment variables are copied over to the sudo environment when you execute sudo commands. This will then apply to any sudo command you run, if that program will pay attention to those environment variables (most do).
You can see a more complete run down here - https://help.ubuntu.com/community/AptGet/Howto#Setting_up_apt-get_to_use_a_http-proxy