dist-upgrade trying to uninstall proxmox-ve

jermudgeon

Renowned Member
Apr 7, 2016
33
2
73
46
Fairly standard installation… and today dist-upgrade is trying to uninstall proxmox-ve. Other threads' suggestions aren't fixing it for me. Any ideas? I'm reluctant to override.

Code:
apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  fonts-font-awesome genisoimage libappconfig-perl libjs-extjs libpve-http-server-perl libtemplate-perl
  proxmox-widget-toolkit pve-docs pve-edk2-firmware pve-i18n pve-xtermjs
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libpve-guest-common-perl libpve-storage-perl proxmox-ve pve-container pve-ha-manager pve-manager qemu-server
The following NEW packages will be installed:
  pve-kernel-4.15.18-4-pve
The following packages will be upgraded:
  ceph ceph-base ceph-common ceph-mds ceph-mgr ceph-mon ceph-osd libcephfs2 librados2 libradosstriper1 librbd1
  librgw2 pve-kernel-4.15 python-ceph python-cephfs python-rados python-rbd python-rgw
18 upgraded, 1 newly installed, 7 to remove and 0 not upgraded.
Need to get 0 B/101 MB of archives.
After this operation, 249 MB of additional disk space will be used.
Do you want to continue? [Y/n]
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really you want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook)     touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) and repeat your apt-get/apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook)     - your APT repository settings
W: (pve-apt-hook)     - that you are using 'apt-get dist-upgrade' or 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook

In sources.list.d, I have
ceph.list:
deb http://download.proxmox.com/debian/ceph-luminous stretch test
pve-enterprise.list:
deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise


Code:
proxmox-ve: 5.2-2 (running kernel: 4.15.18-1-pve)
pve-manager: 5.2-8 (running version: 5.2-8/fdf39912)
pve-kernel-4.15: 5.2-4
pve-kernel-4.13: 5.2-2
pve-kernel-4.15.18-1-pve: 4.15.18-19
pve-kernel-4.15.17-2-pve: 4.15.17-10
pve-kernel-4.15.17-1-pve: 4.15.17-9
pve-kernel-4.13.16-4-pve: 4.13.16-51
pve-kernel-4.13.16-3-pve: 4.13.16-50
pve-kernel-4.13.16-2-pve: 4.13.16-48
pve-kernel-4.13.16-1-pve: 4.13.16-46
pve-kernel-4.13.13-6-pve: 4.13.13-42
pve-kernel-4.4.98-6-pve: 4.4.98-107
pve-kernel-4.4.98-2-pve: 4.4.98-101
pve-kernel-4.4.83-1-pve: 4.4.83-96
pve-kernel-4.4.76-1-pve: 4.4.76-94
pve-kernel-4.4.67-1-pve: 4.4.67-92
pve-kernel-4.4.62-1-pve: 4.4.62-88
pve-kernel-4.4.44-1-pve: 4.4.44-84
pve-kernel-4.4.40-1-pve: 4.4.40-82
pve-kernel-4.4.35-2-pve: 4.4.35-79
pve-kernel-4.4.35-1-pve: 4.4.35-77
pve-kernel-4.4.21-1-pve: 4.4.21-71
pve-kernel-4.4.19-1-pve: 4.4.19-66
pve-kernel-4.4.16-1-pve: 4.4.16-64
pve-kernel-4.4.13-1-pve: 4.4.13-56
pve-kernel-4.4.6-1-pve: 4.4.6-48
pve-kernel-4.2.8-1-pve: 4.2.8-41
pve-kernel-4.2.6-1-pve: 4.2.6-36
ceph: 12.2.7-pve1
corosync: 2.4.2-pve5
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-38
libpve-guest-common-perl: 2.0-17
libpve-http-server-perl: 2.0-10
libpve-storage-perl: 5.0-25
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.2+pve1-1
lxcfs: 3.0.0-1
novnc-pve: 1.0.0-2
openvswitch-switch: 2.7.0-3
proxmox-widget-toolkit: 1.0-19
pve-cluster: 5.0-30
pve-container: 2.0-26
pve-docs: 5.2-8
pve-firewall: 3.0-14
pve-firmware: 2.0-5
pve-ha-manager: 2.0-5
pve-i18n: 1.0-6
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.2-1
pve-xtermjs: 1.0-5
qemu-server: 5.0-33
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.9-pve1~bpo9
 
I was able to update the kernel independently, but ceph is still stuck:
Code:
apt-get upgrade ceph
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-guest-common-perl : Depends: libpve-storage-perl (>= 5.0-16) but it is not going to be installed
 pve-container : Depends: libpve-storage-perl (>= 5.0-18) but it is not going to be installed
 pve-manager : Depends: libpve-storage-perl (>= 5.0-18) but it is not going to be installed
 qemu-server : Depends: libpve-storage-perl (>= 5.0-18) but it is not going to be installed
E: Broken packages

root@pm3:~# apt-get install libpve-storage-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpve-storage-perl is already the newest version (5.0-25).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.

root@pm3:~# apt-get upgrade ceph libpve-storage-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpve-storage-perl is already the newest version (5.0-25).
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:
 ceph-base : Breaks: libpve-storage-perl (<= 5.0-25) but 5.0-25 is to be installed
 ceph-common : Breaks: libpve-storage-perl (<= 5.0-25) but 5.0-25 is to be installed
E: Broken packages
 
ceph 12.2.8 needs a new libpve-storage-perl, but this is only available on pve-no-subscription and pvetest, not yet on pve-enterprise
 
I have the same problem. Yesterday I installed ceph in my first node, today when I've try to install in the second node I've found the same problem. If I try to install any package of ceph it happens the same.



apt-get install ceph-mon
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils ceph-base ceph-common ceph-fuse ceph-mds cryptsetup-bin javascript-common libcephfs2 libcurl3 libgoogle-perftools4 libjs-jquery libleveldb1v5 liblttng-ust-ctl2 liblttng-ust0 libopts25 librados2
libradosstriper1 librbd1 librgw2 libtcmalloc-minimal4 libunwind8 ntp python-blinker python-cephfs python-cffi-backend python-click python-colorama python-cryptography python-enum34 python-flask python-idna
python-ipaddress python-itsdangerous python-jinja2 python-markupsafe python-openssl python-prettytable python-pyasn1 python-pyinotify python-rados python-rbd python-rgw python-setuptools python-simplejson
python-werkzeug
Suggested packages:
binutils-doc apache2 | lighttpd | httpd ntp-doc python-blinker-doc python-cryptography-doc python-cryptography-vectors python-enum34-doc python-flask-doc python-jinja2-doc python-openssl-doc
python-openssl-dbg doc-base python-pyinotify-doc python-setuptools-doc ipython python-genshi python-lxml python-greenlet python-redis python-pylibmc | python-memcache python-werkzeug-doc
The following packages will be REMOVED:
libpve-guest-common-perl libpve-storage-perl proxmox-ve pve-container pve-ha-manager pve-manager qemu-server
The following NEW packages will be installed:
binutils ceph-base ceph-fuse ceph-mds ceph-mon cryptsetup-bin javascript-common libcephfs2 libcurl3 libgoogle-perftools4 libjs-jquery libleveldb1v5 liblttng-ust-ctl2 liblttng-ust0 libopts25
libtcmalloc-minimal4 libunwind8 ntp python-blinker python-cffi-backend python-click python-colorama python-cryptography python-enum34 python-flask python-idna python-ipaddress python-itsdangerous
python-jinja2 python-markupsafe python-openssl python-prettytable python-pyasn1 python-pyinotify python-rgw python-setuptools python-simplejson python-werkzeug
The following packages will be upgraded:
ceph-common librados2 libradosstriper1 librbd1 librgw2 python-cephfs python-rados python-rbd
8 upgraded, 38 newly installed, 7 to remove and 49 not upgraded.
Need to get 0 B/40.8 MB of archives.
After this operation, 96.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really you want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) and repeat your apt-get/apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using 'apt-get dist-upgrade' or 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook


Is imposible to install ceph or to do a dist-upgrade.
 
I get this error too, when I try to run apt dist-upgrade on proxmox 5.4 (pve5to6 all green, no failures):

Code:
538 upgraded, 266 newly installed, 7 to remove and 0 not upgraded.
Need to get 0 B/484 MB of archives.
After this operation, 1,322 MB of additional disk space will be used.
Do you want to continue? [Y/n]
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook)       touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook)       - your APT repository settings
W: (pve-apt-hook)       - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook

Maybe because I use subscription now (purchased subscription, still valid) but installed using the non-subscription edition?
I followed this guide: https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0
Thanks for your help in advance!
 
please post the output of 'apt update' and the content of all your APT sources (/etc/apt/sources.list and /etc/apt/sources.list.d/*)
 
Sure:
Code:
root@server06 /etc/apt/sources.list.d # ls -al
total 12
drwxr-xr-x 2 root root 4096 Jan 15 12:32 .
drwxr-xr-x 6 root root 4096 Mar 13 11:24 ..
-rw-r--r-- 1 root root   68 Mar 13 11:24 pve-enterprise.list
root@server06 /etc/apt/sources.list.d # more pve-enterprise.list
deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
root@server06 /etc/apt/sources.list.d # more /etc/apt/sources.list
#

deb http://mirror.hetzner.de/debian/packages buster main contrib non-free
deb http://mirror.hetzner.de/debian/security buster/updates main contrib non-free
deb http://mirror.hetzner.de/debian/packages buster-updates main contrib non-free

deb http://ftp.de.debian.org/debian/ buster main non-free contrib
#deb http://security.debian.org/debian-security buster/updates main contrib non-free

# buster-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ buster-updates main contrib non-free
deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

apt update:
Code:
Hit:1 http://mirror.hetzner.de/debian/packages buster InRelease
Hit:2 http://mirror.hetzner.de/debian/security buster/updates InRelease
Hit:3 http://mirror.hetzner.de/debian/packages buster-updates InRelease
Hit:4 http://ftp.de.debian.org/debian buster InRelease
Hit:5 http://ftp.de.debian.org/debian buster-updates InRelease
Hit:6 https://enterprise.proxmox.com/debian/pve buster InRelease
Reading package lists...
Building dependency tree...
Reading state information...
546 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (pve-enterprise/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list.d/pve-enterprise.list:1
W: Target Packages (pve-enterprise/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list.d/pve-enterprise.list:1
W: Target Translations (pve-enterprise/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list.d/pve-enterprise.list:1
W: Target Packages (pve-enterprise/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list.d/pve-enterprise.list:1
W: Target Packages (pve-enterprise/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list.d/pve-enterprise.list:1
W: Target Translations (pve-enterprise/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list.d/pve-enterprise.list:1

Thanks a lot for your help!
 
can you show the full output of pve5to6 and 'apt dist-upgrade --dry-run'
 
Sure:

Output of pve5to6 AFTER preparing the update with the above steps (change sources):
Please see attachment

apt dist-upgrade --dry-run:
Please see attachment
 

Attachments

  • dry-run.txt
    139.7 KB · Views: 17
  • pve5to6.txt
    11.8 KB · Views: 14
please uninstall the stock Debian kernel - the upgrade pulls in stock Debian kernel firmware otherwise, which conflicts with the PVE provided firmware packages (which in turn are required by the PVE kernel, which is required by proxmox-ve)
 
Thanks, had the same issue and this helped.

It would be nice to add this to the wiki under Preconditions or Troubleshooting.

The Jessie to stretch upgrade was apparently not affected by this, I found a kernel from before that upgrade. So I extended the command from the install wiki page where it's an optional step.

`apt remove linux-image-amd64 'linux-image-[34]*'`
 
  • Like
Reactions: Jannoke
Thanks Helmo. Just stumbled on this also and could not figure it out. Removing kernels with your command was good fix. I always remove stock kernels after original install, but this original install was not done by me, so I haven't bumped on this before.
 
I just managed to be stuck with this now as an attempt to upgrade PVE from version 5 to 6.

I had not done the original installation and was not aware that this had been an installation with PVE on top of Debian originally. I did not pay attention at the time of "apt dist-upgrade", what important packages it wanted to uninstall (like proxmox-ve) and let it run at the time unfortunately.

Now a "apt remove linux-image-amd64" seems too late ("Package 'linux-image-amd64' is not installed, so not removed") and I do not know how to move forward with this PVE version update attempt.

Any help here?
Thanks
 
Just install the proxmox-ve back in there if it still runs. Otherwise just backup /var/lib/vz folder, make clean install and restore it to fresh install. AFAIK this is the only needed folder that retains information about the proxmox environment. Also copying over hosts file would be great, so that ip and hostnames match.

There is always a way to install proxmox on usb or some other external drive to make a testrun for it without ruining your source so you can regroup and try again if something is not right or missing.
 
I just managed to be stuck with this now as an attempt to upgrade PVE from version 5 to 6.

I had not done the original installation and was not aware that this had been an installation with PVE on top of Debian originally. I did not pay attention at the time of "apt dist-upgrade", what important packages it wanted to uninstall (like proxmox-ve) and let it run at the time unfortunately.

Now a "apt remove linux-image-amd64" seems too late ("Package 'linux-image-amd64' is not installed, so not removed") and I do not know how to move forward with this PVE version update attempt.

Any help here?
Thanks

  1. make the PVE repository key available
  2. make sure proper PVE repositories are configured
  3. apt update
  4. apt install proxmox-ve
for 1./2., refer to https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Buster
post output of the last two here if it does not work.
 
Thanks Jannoke and Fabian.

I will try Fabian's suggestion tomorrow night NZ time and as a worst case will follow Jannoke's suggestion to move forward with a fresh install of PVE6 (and backup/restore of previous configuration).
 

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!