Linux: Apt Proxy Add/Remove

Source:https://stackoverflow.com/questions/38591415/ubuntu-16-04-apt-get-not-working-through-proxy

check /etc/apt/apt.conf

add/ remove Aquire::<protocol> as needed

  • /etc/apt/apt.conf
  • Acquire::http::proxy "http://[username]:[password]@[webproxy]:[port]/";
  • Acquire::https::proxy "https://[username]:[password]@[webproxy]:[port]/";
  • Acquire::ftp::proxy "ftp://[username]:[password]@[webproxy]:[port]/";
  • Acquire::socks::proxy "socks://[username]:[password]@[webproxy]:[port]/";

In Ubuntu 14.04, in order to use some commands in terminal (like apt-get) trough the company proxy, I need to do the following changes, beyond System Settings > Network > Network proxy > "Apply system wide" (shame on you, Ubuntu)

Tags

Linux: apt upgrade results in gconf2 errors

Update after initial Mint 19.1 install resulting in gconf2 errors

Update repo info

sudo apt update

Upgrade packages

sudo apt upgrade

then get gconf2 errors

So Configure dpkg....

sudo dpkg --configure -a
sudo apt upgrade
sudo apt-get install -f

Enable SSH if needed

sudo apt-get install openssh-server
sudo systemctl is-enabled ssh
sudo systemctl is-active ssh

or in one line

sudo apt-get install openssh-server && sudo systemctl is-enabled ssh && sudo systemctl is-active ssh


Clean up repos

sudo apt upgrade

sudo apt-get clean

 

 

Subscribe to