Dear Maintainer, in the process of upgrading from Bookworm to Trixie, I am changing the sources format from traditional to Deb822. There is a brief window where no sources are configured at all. If I run `apt update` during this window, apt reports that "All packages are up-to-date" without any warning or error, even though no sources are present. Steps to reproduce: 1. Remove all configured package sources (both classic sources.list and Deb822 `.sources` files). 2. Run `apt update`. Observed behaviour: The output says "All packages are up to date" with no warning or error, even though no sources were configured and nothing was actually checked. Expected behaviour: Apt should print an error or warning such as: W: No package sources are configured -- cannot check for updates. This avoids giving a false impression that updates were checked. Why this matters: The current output can hide misconfiguration (e.g., during migration from sources.list to Deb822 format). A user may incorrectly believe their system is fully up-to-date when in fact no sources were consulted. Transcript: ------------------------------------------------------------ root@kleintierlaptop:~/upgrade-bookworm-to-trixie# cd /etc/apt/ root@kleintierlaptop:/etc/apt# ls -laFht total 72K drwxr-xr-x 163 root root 12K Aug 10 19:04 ../ drwxr-xr-x 2 root root 4.0K May 21 11:27 trusted.gpg.d/ drwxr-xr-x 2 root root 4.0K Jun 28 2023 apt.conf.d/ drwxr-xr-x 9 root root 4.0K Jun 28 2023 ./ lrwxrwxrwx 1 root root 21 Jun 28 2023 sources.list -> sources.list.bookworm -rw-r--r-- 1 root root 2.6K Jun 28 2023 sources.list.bookworm drwxr-xr-x 2 root root 4.0K May 25 2023 keyrings/ -rw-r--r-- 1 root root 2.1K Oct 30 2021 sources.list.bullseye drwxr-xr-x 2 root root 4.0K Mar 28 2021 listchanges.conf.d/ -rw-r--r-- 1 root root 146 Dec 25 2019 listchanges.conf -rw-r--r-- 1 root root 1.9K Dec 24 2019 sources.list.buster drwxr-xr-x 2 root root 4.0K May 28 2019 auth.conf.d/ -rw-r--r-- 1 root root 1.9K Sep 30 2017 sources.list.stable -rw-r--r-- 1 root root 2.0K Sep 30 2017 sources.list.stretch -rw-r--r-- 1 root root 1.9K Sep 30 2017 sources.list.jessie -rw-r--r-- 1 root root 0 Jul 30 2015 sources.list~ drwxr-xr-x 2 root root 4.0K Apr 13 2015 preferences.d/ drwxr-xr-x 2 root root 4.0K Apr 13 2015 sources.list.d/ root@kleintierlaptop:/etc/apt# rm sources.list root@kleintierlaptop:/etc/apt# apt update Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. ------------------------------------------------------------ Please let me know if more debugging info is needed.
+1 - I've run into this before which makes large server fleet management a bit more difficult as we're monitoring for update problems, which relies on non-zero return codes from apt tools in our monitoring checks. [You don't often get email from t.duehrsen@gmx.net. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] This email originated outside of WHOI. Please use caution if clicking on links or opening attachments. Package: apt Version: 2.6.1 Severity: minor X-Debbugs-Cc: T.Duehrsen@gmx.net Dear Maintainer, in the process of upgrading from Bookworm to Trixie, I am changing the sources format from traditional to Deb822. There is a brief window where no sources are configured at all. If I run `apt update` during this window, apt reports that "All packages are up-to-date" without any warning or error, even though no sources are present. Steps to reproduce: 1. Remove all configured package sources (both classic sources.list and Deb822 `.sources` files). 2. Run `apt update`. Observed behaviour: The output says "All packages are up to date" with no warning or error, even though no sources were configured and nothing was actually checked. Expected behaviour: Apt should print an error or warning such as: W: No package sources are configured -- cannot check for updates. This avoids giving a false impression that updates were checked. Why this matters: The current output can hide misconfiguration (e.g., during migration from sources.list to Deb822 format). A user may incorrectly believe their system is fully up-to-date when in fact no sources were consulted. Transcript: ------------------------------------------------------------ root@kleintierlaptop:~/upgrade-bookworm-to-trixie# cd /etc/apt/ root@kleintierlaptop:/etc/apt# ls -laFht total 72K drwxr-xr-x 163 root root 12K Aug 10 19:04 ../ drwxr-xr-x 2 root root 4.0K May 21 11:27 trusted.gpg.d/ drwxr-xr-x 2 root root 4.0K Jun 28 2023 apt.conf.d/ drwxr-xr-x 9 root root 4.0K Jun 28 2023 ./ lrwxrwxrwx 1 root root 21 Jun 28 2023 sources.list -> sources.list.bookworm -rw-r--r-- 1 root root 2.6K Jun 28 2023 sources.list.bookworm drwxr-xr-x 2 root root 4.0K May 25 2023 keyrings/ -rw-r--r-- 1 root root 2.1K Oct 30 2021 sources.list.bullseye drwxr-xr-x 2 root root 4.0K Mar 28 2021 listchanges.conf.d/ -rw-r--r-- 1 root root 146 Dec 25 2019 listchanges.conf -rw-r--r-- 1 root root 1.9K Dec 24 2019 sources.list.buster drwxr-xr-x 2 root root 4.0K May 28 2019 auth.conf.d/ -rw-r--r-- 1 root root 1.9K Sep 30 2017 sources.list.stable -rw-r--r-- 1 root root 2.0K Sep 30 2017 sources.list.stretch -rw-r--r-- 1 root root 1.9K Sep 30 2017 sources.list.jessie -rw-r--r-- 1 root root 0 Jul 30 2015 sources.list~ drwxr-xr-x 2 root root 4.0K Apr 13 2015 preferences.d/ drwxr-xr-x 2 root root 4.0K Apr 13 2015 sources.list.d/ root@kleintierlaptop:/etc/apt# rm sources.list root@kleintierlaptop:/etc/apt# apt update Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. ------------------------------------------------------------ Please let me know if more debugging info is needed.
Dear Maintainer,
the issue in question is still present in apt version 3.0.3 (amd64),
cf. the transcript below:
Transcript:
------------------------------------------------------------
root@debiantutor:/etc/apt# cat /etc/debian_version
13.0
root@debiantutor:/etc/apt# cat /etc/issue.net
Debian GNU/Linux 13
root@debiantutor:/etc/apt# apt-cache policy apt
apt:
Installed: 3.0.3
Candidate: 3.0.3
Version table:
*** 3.0.3 100
100 /var/lib/dpkg/status
root@debiantutor:/etc/apt# apt --version
apt 3.0.3 (amd64)
root@debiantutor:/etc/apt#
root@debiantutor:/etc/apt# apt update
Get:1 https://security.debian.org/debian-security trixie-security InRelease [43.4 kB]
Hit:2 https://linux.teamviewer.com/deb stable InRelease
Get:3 https://security.debian.org/debian-security trixie-security/main amd64 Packages [8236 B]
Get:4 https://security.debian.org/debian-security trixie-security/main i386 Packages [4800 B]
Get:5 https://security.debian.org/debian-security trixie-security/main Translation-en [8632 B]
Get:6 https://deb.debian.org/debian trixie InRelease [138 kB]
Get:7 https://deb.debian.org/debian trixie-updates InRelease [47.1 kB]
Get:8 https://deb.debian.org/debian trixie/main amd64 Packages [9668 kB]
Get:9 https://deb.debian.org/debian trixie/main i386 Packages [9428 kB]
Get:10 https://deb.debian.org/debian trixie/main Translation-en [6484 kB]
Get:11 https://deb.debian.org/debian trixie/main amd64 Components [5175 kB]
Get:12 https://deb.debian.org/debian trixie/main Icons (48x48) [3626 kB]
Get:13 https://deb.debian.org/debian trixie/main Icons (64x64) [7367 kB]
Get:14 https://deb.debian.org/debian trixie/contrib amd64 Packages [53.8 kB]
Get:15 https://deb.debian.org/debian trixie/contrib i386 Packages [44.1 kB]
Get:16 https://deb.debian.org/debian trixie/contrib Translation-en [49.6 kB]
Get:17 https://deb.debian.org/debian trixie/contrib amd64 Components [41.5 kB]
Get:18 https://deb.debian.org/debian trixie/contrib Icons (48x48) [60.1 kB]
Get:19 https://deb.debian.org/debian trixie/contrib Icons (64x64) [132 kB]
Get:20 https://deb.debian.org/debian trixie/non-free i386 Packages [72.6 kB]
Get:21 https://deb.debian.org/debian trixie/non-free amd64 Packages [100 kB]
Get:22 https://deb.debian.org/debian trixie/non-free Translation-en [67.1 kB]
Get:23 https://deb.debian.org/debian trixie/non-free amd64 Components [3784 B]
Get:24 https://deb.debian.org/debian trixie/non-free Icons (48x48) [578 B]
Get:25 https://deb.debian.org/debian trixie/non-free Icons (64x64) [10.4 kB]
Get:26 https://deb.debian.org/debian trixie/non-free-firmware i386 Packages [6540 B]
Get:27 https://deb.debian.org/debian trixie/non-free-firmware amd64 Packages [6868 B]
Get:28 https://deb.debian.org/debian trixie/non-free-firmware Translation-en [4704 B]
Get:29 https://deb.debian.org/debian trixie/non-free-firmware amd64 Components [24.3 kB]
Get:30 https://deb.debian.org/debian trixie/non-free-firmware Icons (48x48) [29 B]
Get:31 https://deb.debian.org/debian trixie/non-free-firmware Icons (64x64) [29 B]
Get:32 https://deb.debian.org/debian trixie-updates/main amd64 Packages [2432 B]
Get:33 https://deb.debian.org/debian trixie-updates/main i386 Packages [2432 B]
Get:34 https://deb.debian.org/debian trixie-updates/main Translation-en [396 B]
Fetched 42.7 MB in 8s (5242 kB/s)
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@debiantutor:/etc/apt#
root@debiantutor:/etc/apt# mv -v sources.list.d/debian.sources{,.disabled}
renamed 'sources.list.d/debian.sources' -> 'sources.list.d/debian.sources.disabled'
root@debiantutor:/etc/apt# mv -v sources.list.d/teamviewer.list{,.disabled}
renamed 'sources.list.d/teamviewer.list' -> 'sources.list.d/teamviewer.list.disabled'
root@debiantutor:/etc/apt# apt update
All packages are up to date.
root@debiantutor:/etc/apt#
root@debiantutor:/etc/apt# mv -v sources.list.d/teamviewer.list.disabled sources.list.d/teamviewer.list
renamed 'sources.list.d/teamviewer.list.disabled' -> 'sources.list.d/teamviewer.list'
root@debiantutor:/etc/apt# mv -v sources.list.d/debian.sources.disabled sources.list.d/debian.sources
renamed 'sources.list.d/debian.sources.disabled' -> 'sources.list.d/debian.sources'
root@debiantutor:/etc/apt# apt update
Get:1 https://linux.teamviewer.com/deb stable InRelease [11.9 kB]
Get:2 https://deb.debian.org/debian trixie InRelease [138 kB]
Get:3 https://linux.teamviewer.com/deb stable/main amd64 Packages [6747 B]
Get:4 https://linux.teamviewer.com/deb stable/main i386 Packages [6244 B]
Get:5 https://security.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:6 https://deb.debian.org/debian trixie-updates InRelease [47.1 kB]
Get:7 https://security.debian.org/debian-security trixie-security/main i386 Packages [4800 B]
Get:8 https://deb.debian.org/debian trixie/main i386 Packages [9428 kB]
Get:9 https://security.debian.org/debian-security trixie-security/main amd64 Packages [8236 B]
Get:10 https://security.debian.org/debian-security trixie-security/main Translation-en [8632 B]
Get:11 https://deb.debian.org/debian trixie/main amd64 Packages [9668 kB]
Get:12 https://deb.debian.org/debian trixie/main Translation-en [6484 kB]
Get:13 https://deb.debian.org/debian trixie/main amd64 Components [5175 kB]
Get:14 https://deb.debian.org/debian trixie/main Icons (48x48) [3626 kB]
Get:15 https://deb.debian.org/debian trixie/main Icons (64x64) [7367 kB]
Get:16 https://deb.debian.org/debian trixie/contrib amd64 Packages [53.8 kB]
Get:17 https://deb.debian.org/debian trixie/contrib i386 Packages [44.1 kB]
Get:18 https://deb.debian.org/debian trixie/contrib Translation-en [49.6 kB]
Get:19 https://deb.debian.org/debian trixie/contrib amd64 Components [41.5 kB]
Get:20 https://deb.debian.org/debian trixie/contrib Icons (48x48) [60.1 kB]
Get:21 https://deb.debian.org/debian trixie/contrib Icons (64x64) [132 kB]
Get:22 https://deb.debian.org/debian trixie/non-free i386 Packages [72.6 kB]
Get:23 https://deb.debian.org/debian trixie/non-free amd64 Packages [100 kB]
Get:24 https://deb.debian.org/debian trixie/non-free Translation-en [67.1 kB]
Get:25 https://deb.debian.org/debian trixie/non-free amd64 Components [3784 B]
Get:26 https://deb.debian.org/debian trixie/non-free Icons (48x48) [578 B]
Get:27 https://deb.debian.org/debian trixie/non-free Icons (64x64) [10.4 kB]
Get:28 https://deb.debian.org/debian trixie/non-free-firmware amd64 Packages [6868 B]
Get:29 https://deb.debian.org/debian trixie/non-free-firmware i386 Packages [6540 B]
Get:30 https://deb.debian.org/debian trixie/non-free-firmware Translation-en [4704 B]
Get:31 https://deb.debian.org/debian trixie/non-free-firmware amd64 Components [24.3 kB]
Get:32 https://deb.debian.org/debian trixie/non-free-firmware Icons (48x48) [29 B]
Get:33 https://deb.debian.org/debian trixie/non-free-firmware Icons (64x64) [29 B]
Get:34 https://deb.debian.org/debian trixie-updates/main amd64 Packages [2432 B]
Get:35 https://deb.debian.org/debian trixie-updates/main i386 Packages [2432 B]
Get:36 https://deb.debian.org/debian trixie-updates/main Translation-en [396 B]
Fetched 42.7 MB in 7s (5846 kB/s)
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@debiantutor:/etc/apt#
------------------------------------------------------------
Also note the repeated transfer of arguably the same information after restoring the sources.
Dear Maintainer, my last remark about unnecessary downloading the same information is already known, cf. bug #784906.