Apt packages refuse to be upgraded (but do not appear in apt-mark showhold)

My YunoHost server

Hardware: VPS bought online (Hetzner)
YunoHost version: 4.3.6.2
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Installed app:

  • I hate money
  • My mind
  • Nextcloud
  • OpenSondage
  • Roundcube
  • Tiny Tiny RSS
  • Wallabag 2

Description of my issue

Since a few weeks, all system upgrade always finish with the following messages

x upgraded, x newly installed, 0 to remove and 18 not upgraded.

(where the 2 first x refer to some other successfully upgraded).

But now since 10 days, a new message has appeared about 16 php related packages which are kept back. As an exemple, here is the full output of my commands no later than 5 minutes ago:

$ sudo apt update
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://mirror.hetzner.de/debian/packages buster InRelease
Hit:5 http://mirror.hetzner.de/debian/packages buster-updates InRelease
Hit:6 http://mirror.hetzner.de/debian/security buster/updates InRelease
Hit:7 http://forge.yunohost.org/debian buster InRelease
Hit:8 https://packages.sury.org/php buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  php5.6-igbinary php5.6-redis php7.0-igbinary php7.0-redis php7.1-igbinary php7.1-redis php7.2-igbinary php7.2-redis php7.3-igbinary php7.3-redis
  php7.4-igbinary php7.4-redis php8.0-igbinary php8.0-redis php8.1-igbinary php8.1-redis
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.

From other messages on this forum, I tried to run the following command, which all return nothing:

sudo apt-mark showhold
sudo dpkg --list | grep ^hi

I’m not at all a Debian expert, thus I really don’t know what to do more to understand what is going on (I’m a bit lost between apt, apt-mark, apt-get, aptitude, dpkg :/). I don’t understand why those php module refuse to upgrade, nor what are the 2 other unnamed packages (18-16). Any help will be welcome to unlock the situation. Thank you very much.

After some tests by myself, I succeed to remove the php-5… packages, which were still there because my yunohost install is quiet old (back to yh 3…) and they never have been automatically removed.

Thus now I’m down to 4 php package, but still have 2 mysterious not upgradable packages:

The following packages have been kept back:
  php7.3-igbinary php7.3-redis php8.1-igbinary php8.1-redis
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

From what I understood in aptitude, all my PHP app are still using php7.3, but nextcloud depends on php-redis and php-igbinary (note the absence of version in the named package), which are aliases for php8.1-igbinary php8.1-redis. And it seems that it causes some kind of deadlock on versioning between related 7.3 and 8.1 packages.

But all that still does not explain how I could find the missing 2 not upgradable packages :confused:

Thank you in advance for any help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.