Package: apt
Version: 1.4.8
Just adding as a user watching this bug, I looked into this 'can't
satisfy default release' problem recently as I changed Devuan
repositories in use (https://bugs.devuan.org/db/17/172.html if you can
stomach complete lack of MIME-email handling in that bug system...).
From my notes:
In libapt-pkg5.0/apt-1.4.8/apt-pkg/policy.cc:pkgPolicy::pkgPolicy, if a
Default-Release has been specified, the code loops through all package
cache files (cached versions of the repo release files) looking for one
which has an archive (suite), codename or version that matches the
Default-Release.
When you change all repo URLs (or in your case have no cached repo info
at all), these caches are invalidated and only the
'/var/lib/dpkg/status' package cache file remains - which has archive
'now' and little else. So when you do 'aptitude update', the loop checks
just this file and then says 'nope, no matching repo found'.
Normally for me this error happens just before the repo information is
fetched, so the problem is immediately fixed when they are downloaded
and processed - naturally the next command that needs to run (e.g.
aptitude full-upgrade) finds the relevant archive/codename and is happy.
--- System information. ---
Architecture: Kernel: Linux 4.9.0-5-amd64
Debian Release: 9
990 testing-updates 10.1.0.3 990 testing-security 10.1.0.3 990
testing 10.1.0.3 500 unstable 10.1.0.3 500
quodlibet-unstable lazka.github.io 100 ascii-proposed 10.1.0.3
--- Package information. ---
Depends (Version) | Installed
=======================================-+-=============
adduser | 3.115
gpgv | 2.1.18-8~deb9u1
OR gpgv2 | OR gpgv1
| debian-archive-keyring | 2017.5
init-system-helpers (>= 1.18~) | 1.48+devuan2.0
libapt-pkg5.0 (>= 1.3~rc2) | 1.4.8
libc6 (>= 2.15) | 2.24-11+deb9u1
libgcc1 (>= 1:3.0) | 1:6.3.0-18
libstdc++6 (>= 5.2) | 6.3.0-18
Recommends (Version) | Installed
=========================-+-===========
gnupg | 2.1.18-8~deb9u1
OR gnupg2 | 2.1.18-8~deb9u1
OR gnupg1 |
Suggests (Version) | Installed
==============================-+-============
apt-doc | 1.4.8
aptitude | 0.8.7-1
OR synaptic | 0.84.2
OR wajig | dpkg-dev (>= 1.17.2) | 1.18.24
powermgmt-base | 1.31+nmu1
python-apt | 1.4.0~beta3
Attachment:
signature.asc
Description: OpenPGP digital signature