!/FAQ[link1]

Debian 8
# Jessie
 
deb http://security.debian.org/ jessie/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/ stretch/updates main
 
deb http://mirror.yandex.ru/debian jessie main
deb-src http://mirror.yandex.ru/debian jessie main
 
deb http://mirror.yandex.ru/debian jessie-updates main
deb-src http://mirror.yandex.ru/debian jessie-updates main
 
deb http://mirror.yandex.ru/debian/ jessie-proposed-updates main non-free contrib
deb-src http://mirror.yandex.ru/debian/ jessie-proposed-updates main non-free contrib
 
# Backports
#deb http://mirror.yandex.ru/debian jessie-backports main contrib non-free
#deb-src http://mirror.yandex.ru/debian jessie-backports main contrib non-free
 
# Multimedia Официальный сервер
#доступны пакеты для stable testing, unstable, stable-backports, experimental
#deb http://www.deb-multimedia.org jessie main non-free


Debian 9
# Stretch
 
deb http://security.debian.org/ stretch/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/ stretch/updates main
 
deb http://mirror.yandex.ru/debian stretch main
deb-src http://mirror.yandex.ru/debian stretch main
 
deb http://mirror.yandex.ru/debian stretch-updates main
deb-src http://mirror.yandex.ru/debian stretch-updates main
 
deb http://mirror.yandex.ru/debian/ stretch-proposed-updates main non-free contrib
deb-src http://mirror.yandex.ru/debian/ stretch-proposed-updates main non-free contrib
 
# Backports
#deb http://mirror.yandex.ru/debian stretch-backports main contrib non-free
#deb-src http://mirror.yandex.ru/debian stretch-backports main contrib non-free



1. Чтобы иметь возможность добавлять репозитарии из PPA ссылок
$ apt-get install software-properties-common

2.
https://www.nixp.ru/recipes/4.html Проблема с NO_PUBKEY: как получить GPG-ключ и добавить его в базу apt
https://chrisjean.com/fix-apt-[..]ey-is-not-available/[link2] Fix apt-get update “the following signatures couldn’t be verified because the public key is not available”


Virtualbox
echo 'deb http://download.virtualbox.org/virtualbox/debian stretch contrib' > /etc/apt/sources.list.d/virtualbox.list
wget https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -



PostgreSQL
https://www.tecmint.com/instal[..]n-debian-and-ubuntu/[link3]

File /etc/apt/sources.list.d/pgdg.list
--------------- On Stretch 9.x ---------------
deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main
--------------- On Jessie 8.x ---------------
deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main
--------------- On Wheezy 7.x ---------------
deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main


$ wget --quiet -O – https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
$ sudo apt update

Telegram
//sudo add-apt-repository ppa:atareao/telegram
sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install telegram-desktop

Удаление
sudo apt-get purge telegram-desktop
sudo add-apt-repository -r ppa:noobslab/apps


Google chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
sh -c "echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'



Java
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main

потребовался пакет dirmngr

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer




Ссылки
[link1] http://wiki.urx.su:81/wiki/IT/Debian/apt/FAQ

[link2] https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/

[link3] https://www.tecmint.com/install-postgresql-on-debian-and-ubuntu/