published under license CC4-BY
posted in category Systems Software / Apt
posted at 24. Jun '23
Howto List Debian Repositories
The goal is to list all software repositories along with labels, because unattended upgrades started to misbehave after latest Debian 12 Bookworm upgrade, sending me emails of pending updates instead of doing the upgrade:
apt policy
apt-get policy
root@starz:~# apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://deb.debian.org/debian-security bookworm-security/main amd64 Packages
release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=amd64
origin deb.debian.org
500 http://ftp.cz.debian.org/debian bookworm/main amd64 Packages
release v=12.0,o=Debian,a=stable,n=bookworm,l=Debian,c=main,b=amd64
origin ftp.cz.debian.org
Pinned packages:
Of course you can list directly sources.list
, but that ignores /etc/apt/sources.list.d/
, so it is not that good for investigating issues:
root@starz:~# cat /etc/apt/sources.list
#deb http://ftp.cz.debian.org/debian buster main
#deb-src http://ftp.cz.debian.org/debian/ buster main
#deb http://security.debian.org/ buster/updates main
#deb-src http://security.debian.org/ buster/updates main
#deb http://ftp.cz.debian.org/debian/ buster-updates main
#deb-src http://ftp.cz.debian.org/debian/ buster-updates main
#deb http://ftp.debian.org/debian buster-backports main
#deb http://ftp.cz.debian.org/debian testing main
# MariaDB 5.5 repository list - created 2013-06-07 01:27 UTC
# http://mariadb.org/mariadb/repositories/
#deb http://mirror.vpsfree.cz/mariadb/repo/5.5/debian wheezy main
#deb-src http://mirror.vpsfree.cz/mariadb/repo/5.5/debian wheezy main
# MariaDB 10.0 repository list - created 2015-04-20 20:41 UTC
# http://mariadb.org/mariadb/repositories/
#deb http://mirror.vpsfree.cz/mariadb/repo/10.0/debian jessie main
#deb-src http://mirror.vpsfree.cz/mariadb/repo/10.0/debian jessie main
# MariaDB 10.1 repository list - created 2015-12-18 00:02 UTC
# http://mariadb.org/mariadb/repositories/
#deb [arch=amd64,i386] http://mirror.vpsfree.cz/mariadb/repo/10.1/debian stretch main
#deb-src http://mirror.vpsfree.cz/mariadb/repo/10.1/debian stretch main
# Debian 9
#deb https://oss-binaries.phusionpassenger.com/apt/passenger buster main
deb http://ftp.cz.debian.org/debian/ bookworm main
deb https://deb.debian.org/debian-security bookworm-security main
deb http://ftp.cz.debian.org/debian/ bookworm-updates main
deb http://ftp.debian.org/debian bookworm-backports main
References:
Add Comment