It’s my turn to try the migration, and I have some problems.
I’m on an amd64 Debian on an RPI4 with Yunohost installed.
I tried to migrate but it went wrong, and I tried to solve the problems step by step. I lost track of all the repairs I made, but I remember that I had to solve a GPG key problem for Raspberry Debain repo, and then I had a lot of packages “kept back”.
Currently the situation is:
admin@server:~ $ sudo apt-get update && sudo apt-get upgrade
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:4 http://forge.yunohost.org/debian bullseye InRelease
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
bind9-host bind9utils dirmngr dnsutils dpkg gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm
gpgv ldap-utils libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libcryptsetup12 libcurl3-gnutls libgnutls30
libldap-2.4-2 libmount1 libpam-chksshpwd libpam-modules libpam-modules-bin libtiff5 libwbclient0 libxml2
libxslt1.1 locales mount perl perl-base python3-lxml python3-spidev redis-server redis-tools rsyslog slapd
util-linux
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
And I’m stuck there and I don’t know how to upgrade the kept back packets (I also tried the more agressive dist-upgarde).
I unistalled all the YNH app to make sure the problem was not here.
I tried “manual install” but there is too deep dependency problems:
admin@server:~ $ sudo apt-get install bind9-host bind9utils dirmngr dnsutils dpkg gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv ldap-utils libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libcryptsetup12 libcurl3-gnutls libgnutls30 libldap-2.4-2 libmount1 libpam-chksshpwd libpam-modules libpam-modules-bin libtiff5 libwbclient0 libxml2 libxslt1.1 locales mount perl perl-base python3-lxml python3-spidev redis-server redis-tools rsyslog slapd util-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
bind9-host : Depends: bind9-libs (>= 1:9.16.27) but it is not going to be installed
bind9utils : Depends: bind9-utils but it is not going to be installed
dirmngr : Depends: libgpg-error0 (>= 1.38) but 1.35-1 is to be installed
Recommends: gnupg (= 2.2.27-2+deb11u2) but it is not going to be installed
dnsutils : Depends: bind9-dnsutils but it is not going to be installed
dpkg : PreDepends: libselinux1 (>= 3.1~) but 2.8-1+b1 is to be installed
equivs : Depends: debhelper but it is not going to be installed
gnupg-utils : Depends: libreadline8 (>= 6.0) but it is not installable
gpg : Depends: libgpg-error0 (>= 1.38) but 1.35-1 is to be installed
Depends: libreadline8 (>= 6.0) but it is not installable
Recommends: gnupg (= 2.2.27-2+deb11u2) but it is not going to be installed
gpg-agent : Depends: libgpg-error0 (>= 1.38) but 1.35-1 is to be installed
Recommends: gnupg (= 2.2.27-2+deb11u2) but it is not going to be installed
gpgconf : Depends: libreadline8 (>= 6.0) but it is not installable
gpgsm : Depends: libgpg-error0 (>= 1.38) but 1.35-1 is to be installed
Depends: libksba8 (>= 1.5.0) but 1.3.5-2 is to be installed
Depends: libreadline8 (>= 6.0) but it is not installable
Recommends: gnupg (= 2.2.27-2+deb11u2) but it is not going to be installed
gpgv : Depends: libgpg-error0 (>= 1.38) but 1.35-1 is to be installed
libc6 : Depends: libgcc-s1 but it is not installable
Depends: libcrypt1 but it is not installable
Recommends: libnss-nis but it is not installable
Recommends: libnss-nisplus but it is not installable
libc6-dev : Depends: libcrypt-dev but it is not installable
Depends: libnsl-dev but it is not installable
Breaks: python3.7 (< 3.7.7-1+b1) but 3.7.3-2+deb10u3 is to be installed
libcryptsetup12 : Depends: libjson-c5 (>= 0.15) but it is not installable
libcurl3-gnutls : Depends: libnettle8 but it is not installable
libgnutls30 : Depends: libhogweed6 (>= 3.6) but it is not installable
Depends: libnettle8 (>= 3.7~) but it is not installable
Depends: libp11-kit0 (>= 0.23.18.1) but 0.23.15-2+deb10u1 is to be installed
Depends: libtasn1-6 (>= 4.14) but 4.13-3 is to be installed
libmount1 : Depends: libselinux1 (>= 3.1~) but 2.8-1+b1 is to be installed
libpam-chksshpwd : Depends: libcrypt1 (>= 1:4.1.0) but it is not installable
libpam-modules : PreDepends: libcrypt1 (>= 1:4.3.0) but it is not installable
PreDepends: libnsl2 (>= 1.0) but it is not installable
PreDepends: libselinux1 (>= 3.1~) but 2.8-1+b1 is to be installed
libpam-modules-bin : Depends: libcrypt1 (>= 1:4.3.0) but it is not installable
Depends: libselinux1 (>= 3.1~) but 2.8-1+b1 is to be installed
libtiff5 : Depends: libdeflate0 (>= 1.0) but it is not installable
Depends: libzstd1 (>= 1.4.0) but 1.3.8+dfsg-3+deb10u2 is to be installed
libwbclient0 : Depends: libicu67 (>= 67.1-1~) but it is not installable
Depends: libtalloc2 (>= 2.3.1~) but 2.1.14-2 is to be installed
Depends: libtevent0 (>= 0.10.2~) but it is not installable
libxml2 : Depends: libicu67 (>= 67.1-1~) but it is not installable
moulinette : Depends: python3-bottle (>= 0.12) but it is not going to be installed
Depends: python3-prompt-toolkit but it is not going to be installed
Depends: python3-pygments but it is not going to be installed
Depends: python3-gevent-websocket but it is not going to be installed
perl : Depends: libperl5.32 (= 5.32.1-4+deb11u1) but it is not going to be installed
perl-base : PreDepends: libcrypt1 (>= 1:4.1.0) but it is not installable
python3-lxml : Depends: python3 (>= 3.9~) but 3.7.3-1 is to be installed
Recommends: python3-html5lib but it is not going to be installed
python3-spidev : Depends: python3 (>= 3.9~) but 3.7.3-1 is to be installed
redis-tools : Depends: liblzf1 (>= 1.5) but it is not installable
rsyslog : Depends: libsystemd0 (>= 246) but 241-7~deb10u8 is to be installed
slapd : Depends: libcrypt1 (>= 1:4.1.0) but it is not installable
Depends: libperl5.32 (>= 5.32.0~rc1) but it is not going to be installed
ssowat : Depends: nginx-extras (>= 1.6.2) but it is not going to be installed
util-linux : PreDepends: libcrypt1 (>= 1:4.1.0) but it is not installable
PreDepends: libselinux1 (>= 3.1~) but 2.8-1+b1 is to be installed
yunohost : Depends: mariadb-server but it is not going to be installed
Depends: openssh-server but it is not going to be installed
Depends: unscd but it is not going to be installed
Depends: postfix-policyd-spf-perl but it is not going to be installed
Recommends: python3-pip but it is not going to be installed
Recommends: unattended-upgrades but it is not going to be installed
Recommends: libdbd-ldap-perl but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I have no idea what to do now… I’m about to reinstall the Debian and YNH… If anyone has another idea I would be very pleased!
Also I’m not super familiar with those gpg-wks* stuff and libc6-dbg sounds a bit unecessary to have ? So I would naively try to remove them and see what happens:
admin@ynh:~ $ apt remove gpg-wks-client gpg-wks-server libc6-dbg --dry-run
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gpg-wks-client gpg-wks-server libc6-dbg
0 upgraded, 0 newly installed, 3 to remove and 39 not upgraded.
Remv gpg-wks-client [2.2.12-1+deb10u2]
Remv gpg-wks-server [2.2.12-1+deb10u2]
Remv libc6-dbg [2.28-10+rpt2+rpi1+deb10u1]
So it seems harmless, so I tried to do it (without dry-run) and then to migrate again.
You are right but, the list is smaller without libc6
admin@server:~ $ sudo apt install bind9-host bind9utils dnsutils ldap-utils libldap-2.4-2 locales
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
bind9-host : Depends: bind9-libs (>= 1:9.16.27) but it is not going to be installed
bind9utils : Depends: bind9-utils but it is not going to be installed
dnsutils : Depends: bind9-dnsutils but it is not going to be installed
libldap-2.4-2 : Depends: libgnutls30 (>= 3.7.0) but 3.6.7-4+deb10u9 is to be installed
locales : Depends: libc-bin (> 2.31)
yunohost : Depends: slapd but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
admin@server:~ $ sudo apt install bind9-host bind9utils dnsutils ldap-utils libldap-2.4-2 locales bind9-libs bind9-utils bind9-dnsutils libgnutls30 libc-bin slapd --dry-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
bind9-libs : Depends: libjson-c5 (>= 0.15) but it is not installable
Depends: libmaxminddb0 (>= 1.3.0) but it is not installable
Depends: libuv1 (>= 1.34.2) but it is not installable
libc-bin : Depends: libc6 (> 2.31) but 2.28-10+rpt2+rpi1+deb10u1 is to be installed
libgnutls30 : Depends: libhogweed6 (>= 3.6) but it is not installable
Depends: libnettle8 (>= 3.7~) but it is not installable
Depends: libp11-kit0 (>= 0.23.18.1) but 0.23.15-2+deb10u1 is to be installed
Depends: libtasn1-6 (>= 4.14) but 4.13-3 is to be installed
slapd : Depends: libcrypt1 (>= 1:4.1.0) but it is not installable
Depends: libperl5.32 (>= 5.32.0~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Second step
sudo apt install bind9-host bind9utils dnsutils ldap-utils libldap-2.4-2 locales bind9-libs bind9-utils bind9-dnsutils libgnutls30 libc-bin slapd libjson-c5 libmaxminddb0 libuv1 libc6 libhogweed6 libnettle8 libp11-kit0 libtasn1-6 --dry-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libjson-c5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libmaxminddb0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libuv1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libnettle8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libhogweed6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libjson-c5' has no installation candidate
E: Package 'libmaxminddb0' has no installation candidate
E: Package 'libuv1' has no installation candidate
E: Package 'libhogweed6' has no installation candidate
E: Package 'libnettle8' has no installation candidate
admin@server:~ $ sudo apt remove libc-bin --dry-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libllvm7 libsensors-config libsensors5 sysstat
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libc-bin locales postgresql-11
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
libc-bin
0 upgraded, 0 newly installed, 3 to remove and 37 not upgraded.
Remv postgresql-11 [11.17-0+deb10u1]
Remv locales [2.28-10+rpt2+rpi1+deb10u1]
Remv libc-bin [2.28-10+rpt2+rpi1+deb10u1]
admin@server:~ $ apt remove bind9utils dnsutils bind9-utils --dry-run
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'bind9-utils' is not installed, so not removed
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
yunohost : Depends: dnsutils
Depends: bind9utils
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Hmoké so maybe those are not the actual issue… Back to libgnutls30, there’s definitely something funky because libhogweed6 and libnettle8 should definitely be available
admin@server:~ $ sudo cat /etc/apt/sources.list /etc/apt/sources.list.d/* | grep "^deb "
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://archive.raspberrypi.org/debian/ bullseye main
deb http://forge.yunohost.org/debian/ bullseye stable
admin@server:~ $ sudo apt policy libhogweed6
libhogweed6:
Installed: (none)
Candidate: (none)
Version table:
As a developer I will always argue that we should go to the bottom of things to identify exactly what’s the root issue so that we can fix it for everybody, I know that people like to be like “let’s reinstall from scratch” but that’s not is not an acceptable answer project-wide … But if you’re more comfortable with reinstalling everything, go for it …
Right now I’m looking at Index of /debian/pool/main/n/nettle and I do see the libhogweed packages being available so I don’t understand how apt update / apt policy is not understanding they’re here …