Linux: Apt Proxy Add/Remove


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)


Linux: apt-get update Fails due to signature 'is not signed'

  • WINE was causing this due to missing keys...
  • wget the correct/updated keys fixed the issue

Add Repository
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

Key WineHQ keys
get -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key && sudo apt update

download new repo key & add it to trusted keys
cd /tmp
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt update

sudo usermod -aG docker silosix

silosix@M6500:~/scripts$ curl -fsSL https://get.docker.com -o get-docker.sh | sh
silosix@M6500:~/scripts$ curl -fsSL https://get.docker.com -o get-docker.sh
silosix@M6500:~/scripts$ ls -la
total 104
drwxrwxr-x  2 silosix silosix  4096 Jan 21 19:06 .
drwxr-xr-x 54 silosix silosix  4096 Jan 19 19:57 ..
-rw-r--r--  1 silosix silosix 13380 Jan 21 19:06 get-docker.sh
-rwxrwxr-x  1 silosix silosix   401 Jan 12 00:24 getytdl.sh

linux: lang: APT Commands

Install package

sudo apt install keyword

Search cache

apt-cache search keyword

File installed package location

sudo apt content keyword


sudo apt depends keyword

Search for a package

sudo apt search keyword

Show package info

sudo apt show keyword

Verify a package

sudo apt check keyword

List recommended missing packages of given package

sudo apt recommends keyword

Check package version

sudo apt version keyword

Subscribe to apt