SOLVED - Packages have been kept back

Karsten

Member
Sep 6, 2016
6
1
23
Berlin
Hi.

I cannot upgrade our productive environment (licensed enterprise) to 6.3. The packages are kept back.

In the WebGUI, the upgrade button is also greyed out.

Best
Karsten


Bash:
root@XXX:/etc/apt/sources.list.d# apt-get update && apt-get dist-upgrade && apt-get autoremove && apt-get autoclean
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://mirror.hetzner.de/debian/packages buster InRelease                                 
Hit:3 http://mirror.hetzner.de/debian/security buster/updates InRelease                         
Hit:4 http://mirror.hetzner.de/debian/packages buster-updates InRelease                         
Hit:5 http://ftp.de.debian.org/debian buster InRelease                                           
Hit:6 http://ftp.de.debian.org/debian buster-updates InRelease                                                   
Hit:7 https://packages.icinga.com/debian icinga-buster InRelease                                                 
Hit:8 https://enterprise.proxmox.com/debian/pve buster 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:
  libpve-storage-perl pve-container pve-manager
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
root@XXX:~# apt list --upgradable
Listing... Done
libpve-common-perl/stable 6.3-2 all [upgradable from: 6.2-2]
libpve-storage-perl/stable 6.3-3 all [upgradable from: 6.2-9]
pve-container/stable 3.3-2 all [upgradable from: 3.2-2]
pve-manager/stable 6.3-3 amd64 [upgradable from: 6.2-12]
qemu-server/stable 6.3-2 amd64 [upgradable from: 6.2-15]
 
hmm - one specific thing from that output is the configured icinga repository - could you try temporarily removing it and running `apt update; apt full-upgrade` ?

if this does not help - check the output of installing the newer versions of libpve-common-perl and libpve-storage-perl:
Code:
apt install libpve-common-perl=6.3-2
apt install libpve-storage-perl=6.3-3

(this should provide more output why it does not get upgraded)

I hope this helps!
 
Hi.

Yeeeeees - pointed me to the right direction.

There is a bug in a needed package - in libyaml-libyaml-perl. So after installing it despite the open bug report, the upgrade worked.

Thank you!
Karsten


Bash:
root@webXX:~# apt upgrade libpve-common-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... 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:
 libpve-common-perl : Depends: libyaml-libyaml-perl but it is not installable
E: Broken packages


root@webXX:~# apt-cache showpkg libyaml-libyaml-perl
Package: libyaml-libyaml-perl
Versions:
0.76+repack-1 (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_buster_main_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/ftp.de.debian.org_debian_dists_buster_main_binary-amd64_Packages
                  MD5: 8fa3125a297cb8c4eb3becc6b15ffd1a
 Description Language: en
                 File: /var/lib/apt/lists/ftp.de.debian.org_debian_dists_buster_main_i18n_Translation-en
                  MD5: 8fa3125a297cb8c4eb3becc6b15ffd1a


Reverse Depends:
  libjson-validator-perl,libyaml-libyaml-perl 0.67
  libpve-common-perl,libyaml-libyaml-perl
  libpve-common-perl,libyaml-libyaml-perl
  libpve-common-perl,libyaml-libyaml-perl
  libpve-common-perl,libyaml-libyaml-perl
  umegaya,libyaml-libyaml-perl
  pkg-perl-tools,libyaml-libyaml-perl
  lintian,libyaml-libyaml-perl
  license-reconcile,libyaml-libyaml-perl
  libyaml-perl,libyaml-libyaml-perl
  libxxx-perl,libyaml-libyaml-perl
  libwx-perl-datawalker-perl,libyaml-libyaml-perl
  libtest-yaml-valid-perl,libyaml-libyaml-perl
  libpoet-perl,libyaml-libyaml-perl
  libpar-dist-perl,libyaml-libyaml-perl
  libmoosex-storage-perl,libyaml-libyaml-perl
  libmoosex-simpleconfig-perl,libyaml-libyaml-perl
  libkiokudb-perl,libyaml-libyaml-perl
  libconfig-model-backend-yaml-perl,libyaml-libyaml-perl 0.69
  libhtml-formfu-perl,libyaml-libyaml-perl
  libemail-mime-kit-perl,libyaml-libyaml-perl
  libdancer-perl,libyaml-libyaml-perl
  boxer,libyaml-libyaml-perl
  libconfig-any-perl,libyaml-libyaml-perl
  libcode-tidyall-plugin-yamlfrontmatter-perl,libyaml-libyaml-perl
  libcatmandu-sru-perl,libyaml-libyaml-perl
  libcatmandu-perl,libyaml-libyaml-perl
  libcatmandu-marc-perl,libyaml-libyaml-perl
  ikiwiki,libyaml-libyaml-perl
  duck,libyaml-libyaml-perl
  dh-make-perl,libyaml-libyaml-perl
  ciderwebmail,libyaml-libyaml-perl
Dependencies:
0.76+repack-1 - perl (2 5.28.1-3) perlapi-5.28.1 (0 (null)) libc6 (2 2.11) libyaml-0-2 (0 (null))
Provides:
0.76+repack-1 -
Reverse Provides:


root@webXX:~# apt-get install  libyaml-libyaml-perl=0.76+repack-1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libyaml-libyaml-perl
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 33.1 kB of archives.
After this operation, 94.2 kB of additional disk space will be used.
Get:1 http://ftp.de.debian.org/debian buster/main amd64 libyaml-libyaml-perl amd64 0.76+repack-1 [33.1 kB]
Fetched 33.1 kB in 0s (399 kB/s)               
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
grave bugs of libyaml-libyaml-perl (-> 0.76+repack-1) <Resolved in some Version>
 b1 - #862373 - libyaml-libyaml-perl: Unconditionally instantiates objects from yaml data (Fixed: libyaml-libyaml-perl/0.81+repack-1)
Summary:
 libyaml-libyaml-perl(1 bug)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] n
**********************************************************************
****** Exiting with an error in order to stop the installation. ******
**********************************************************************
E: Sub-process /usr/sbin/apt-listbugs apt returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt
 
  • Like
Reactions: Stoiko Ivanov
Glad you found the issue!
Thanks for showing me apt-listbugs! :)
 
:-)

But apt-listbugs was also part of the problem. I have two Proxmox clusters. One without apt-listbugs, one with it (set up from a former admin). So this was confusing - the one without was updated, the one with not. I could not see a difference. So for me, I removed apt-listbugs now from the 2nd cluster.

Best
 
It appears that I'm encountering a similar problem, but I can't install libyaml-libyaml-perl=0.76+repack-1 any longer as it's only compatible with perl 5.28.1.

Code:
root@pve:~# apt install libyaml-libyaml-perl=0.76+repack-1
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:
 libyaml-libyaml-perl : Depends: perlapi-5.28.1
E: Unable to correct problems, you have held broken packages.

Checking to see what perl-base is available still and it looks like a lot of pve-* packages would be removed if I revert to perl 5.28.1
Code:
root@pve:~# apt list -a perl-base
Listing... Done
perl-base/now 5.32.1-4+deb11u2 amd64 [installed,local]
perl-base/oldoldstable 5.28.1-6+deb10u1 amd64

root@pve:~# apt install perl-base/oldoldstable
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version '5.28.1-6+deb10u1' (Debian:10.13/oldoldstable [amd64]) for 'perl-base'
The following packages were automatically installed and are no longer required:
  arch-test augeas-lenses cryptsetup-bin db-util db5.3-util debootstrap exfat-fuse exfat-utils f2fs-tools hfsplus idn kpartx ldmtool libafflib0v5
  libapt-pkg6.0 libaugeas0 libbfio1 libconfig9 libewf2 libhfsp0 libhivex0 libjson-glib-1.0-0 libjson-glib-1.0-common libldm-1.0-0 libnetpbm10
  libntfs-3g883 libproxmox-acme-plugins libqb100 libtsk19 libvhdi1 libvirt0 libvmdk1 libxxhash0 libyajl2 libyara4 lsscsi mdadm netpbm ntfs-3g
  osinfo-db proxmox-archive-keyring reiserfsprogs scrub squashfs-tools supermin syslinux zerofree
Use 'apt autoremove' to remove them.
Suggested packages:
  perl
The following packages will be REMOVED:
  console-setup console-setup-linux debconf-i18n icoutils keyboard-configuration libanyevent-http-perl libanyevent-perl libappconfig-perl
  libapt-pkg-perl libauthen-pam-perl libbytes-random-secure-perl libclone-perl libcommon-sense-perl libconvert-asn1-perl
  libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-random-seed-perl libcrypt-ssleay-perl
  libdate-manip-perl libdevel-cycle-perl libdigest-hmac-perl libencode-locale-perl libfile-chdir-perl libfile-listing-perl
  libfile-readbackwards-perl libfilesys-df-perl libguestfs-hfsplus libguestfs-perl libguestfs-reiserfs libguestfs-tools libguestfs-xfs libguestfs0
  libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
  libhttp-negotiate-perl libintl-perl libintl-xs-perl libio-html-perl libio-multiplex-perl libio-socket-ssl-perl libio-stringy-perl libjson-perl
  libjson-xs-perl liblinux-inotify2-perl liblocale-gettext-perl liblwp-mediatypes-perl liblwp-protocol-https-perl libmath-random-isaac-perl
  libmime-base32-perl libnet-dbus-perl libnet-dns-perl libnet-http-perl libnet-ip-perl libnet-ldap-perl libnet-ssleay-perl libperl5.32
  libproxmox-acme-perl libpve-access-control libpve-apiclient-perl libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl
  libpve-guest-common-perl libpve-http-server-perl libpve-storage-perl libpve-u2f-server-perl librados2-perl librrds-perl libstring-shellquote-perl
  libsys-virt-perl libtemplate-perl libterm-readline-gnu-perl libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtimedate-perl
  libtry-tiny-perl libtypes-serialiser-perl liburi-perl libuuid-perl libwin-hivex-perl libwww-perl libwww-robotrules-perl libxml-libxml-perl
  libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-perl libxml-twig-perl libxml-xpath-perl perl perl-modules-5.32
  proxmox-ve pve-cluster pve-container pve-docs pve-firewall pve-ha-manager pve-manager qemu-server sleuthkit tasksel tasksel-data virt-p2v
The following packages will be DOWNGRADED:
  perl-base
0 upgraded, 0 newly installed, 1 downgraded, 110 to remove and 0 not upgraded.

https://forum.proxmox.com/threads/6...on-failure-with-pve-manager-held-back.133062/

Any thoughts?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!