These settings are for the user account, for package management you likely want to configure Acquire::http::Proxy option in apt.conf or an apt.conf.d snippet.
These settings are for the user account, for package management you likely want to configure Acquire: :http:: Proxy option in apt.conf or an apt.conf.d snippet.