Proxmox completely destroyed after upgrade

LucaStratmann

New Member
Jul 15, 2020
6
0
1
24
Hello,
I just tried upgrading Proxmox from 5.4 to 6. After the upgrade I can't get into the interface and apt upgrade gives me the following error message:
root@ns3002380:/etc/apt/sources.list.d# apt upgrade -y
Packet lists are read... Done
Dependency tree is built.
Status information is read in... Ready
Package update (upgrade) is charged... Done
Some packages could not be installed. This may mean that
you have requested an impossible situation or, if you
unstable distribution use that some required packages are still
were not created or have not yet left Incoming.
The following information may help you resolve the situation:

The following packages have unmet dependencies:
pve-libspice-server1 : collides with: libspice-server1
E: Damaged packages

When I try to run apt install proxmox-ve:
root@ns3002380:/etc/apt/sources.list.d# apt install proxmox-ve
Packet lists are read... Done
Dependency tree is built.
Status information is read in... Ready
Some packages could not be installed. This may mean that
you have requested an impossible situation or, if you
unstable distribution use that some required packages are still
were not created or have not yet left Incoming.
The following information may help you resolve the situation:

The following packages have unmet dependencies:
proxmox-ve : Depends on: but pve-manager should not be installed
Depends on: qemu-server should not be installed
E: Problems cannot be corrected, you have retained defective packages.

Can someone help me?
 
Hi,

apt upgrade -y

Never use apt upgrade, especially for a major upgrade! A major upgrade pretty much always need to remove packages as a new, incompatible, version or another package replaced it. apt upgrade refuses to do so and makes just issues..
Always use apt full-upgrade (or the alias apt dist-upgrade)

I just tried upgrading Proxmox from 5.4 to 6.
Please checkout the official upgrade how-to ( https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0 ) and follow it as closely (and in order!) as possible before doing a major upgrade.
 
Hey.
For the upgrade I also use the steps.

Why is then an apt upgrade in your post? And a failed dependency because pve-libspice-server1 from PVE 5.x wasn't removed to be replaced bylibspice-server1 from 6.x?

The following packages have unmet dependencies:
pve-libspice-server1 : collides with: libspice-server1
E: Damaged packages

Also, please avoid adding the -y parameter, rather confirm manually what is proposed to you.

Anyway, I'd ensure you have the correct package-repository sources list and post the output of:
apt update

Also, is some of PVE still around? If so post an pveversion -v to get an overview of the state you're currently in.
 
root@ns3002380:~# apt update
Get:1 http://debian.mirrors.ovh.net/debian buster InRelease [121 kB]
OK:2 http://security.debian.org/debian-security buster/updates InRelease
OK:3 http://download.proxmox.com/debian/pve buster InRelease
Get:4 http://debian.mirrors.ovh.net/debian buster-updates InRelease [51.9 kB]
OK:5 http://download.proxmox.com/debian stretch InRelease
173 kB were fetched in 0 s (372 kB/s).
Packet lists are read... Ready
Dependency tree is built.
Status information is read in... Ready
Update available for 39 packages. Run "apt list --upgradable" to view them.

And:
-bash: pveversion: Command not found.
 
How? My sources.list is:
deb http://debian.mirrors.ovh.net/debian buster main contrib non-free
deb-src http://debian.mirrors.ovh.net/debian buster main contrib non-free

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://debian.mirrors.ovh.net/debian buster-updates main
deb-src http://debian.mirrors.ovh.net/debian buster-updates main

and my pve-community.list is:
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
 
Does it look better like this?

root@ns3002380:~# apt update
OK:1 http://download.proxmox.com/debian/pve buster InRelease
OK:2 http://ftp.debian.org/debian buster InRelease
OK:3 http://security.debian.org/debian-security buster/updates InRelease
OK:4 http://ftp.debian.org/debian buster-updates InRelease
Packet lists are read... Done
Dependency tree is built.
Status information is read in... Ready
Update available for 39 packages. Run "apt list --upgradable" to view them.

But:

root@ns3002380:~# apt install libspice-server1
Packet lists are read... Done
Dependency tree is built.
Status information is read in... Ready
The following packages were installed automatically and are no longer needed:
ceph-fuse cifs-utils corosync cstream dh-python dtach ebtables faketime fontconfig fontconfig-config fonts-dejavu-core fonts-font-awesome gdisk genisoimage glusterfs-client glusterfs-common hdparm ifenslave ipset
libanyevent-http-perl libanyevent-perl libapparmor-perl libappconfig-perl libapt-pkg-perl libarchive13 libauthen-pam-perl libavahi-client3 libavahi-common-data libavahi-common3 libbabeltrace-ctf1 libbind9-140
libboost filesystem1.62.0 libboost-iostreams1.62.0 libboost-program-options1.62.0 libboost-random1.62.0 libboost-regex1.62.0 libboost-system1.62.0 libboost-thread1.62.0 libcairo2 libcephfs1 libcfg6 libcfg7 libclone-perl libcmap4
libcorosync-common4 libcpg4 libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcups2 libdatrie1 libdbi1 libdevel-cycle-perl libdns162 libevent-2.0-5 libfaketime libfcgi0ldbl libfdt1
libfile-chdir-perl libfile-readbackwards-perl libfilesys-df-perl libfontconfig1 libgraphite2-3 libharfbuzz0b libicu57 libio-multiplex-perl libio-stringy-perl libipset11 libipset3 libirs141 libisc160 libisccc140 libisccfg140
libjansson4 libjemalloc1 libjs-extjs libknet1 libldb1 liblinux-inotify2-perl liblvm2app2.2 liblvm2cmd2.02 liblwres141 libmime-base32-perl libnet-dbus-perl libnet-dns-perl libnet-ip-perl libnetfilter-log1 libpango-1.0-0
libpangocairo-1.0-0 libpangoft2-1.0-0 libperl5.24 libprotobuf10 libpve-apiclient-perl libpve-common-perl libpve-http-server-perl libpython3.5-minimal libpython3.5-stdlib libpython3.7 libqb0 libquorum5 librgw2 librrd8 librrds-perl
libsmbclient libstatgrab10 libstring-shellquote-perl libtalloc2 libtdb1 libtemplate-perl libtevent0 libthai-data libthai0 libtotem-pg5 libu2f-server0 liburcu4 liburcu6 libuuid-perl libvotequorum8 libwbclient0 libxcb-render0
libxcb-shm0 libxml-libxml-perl libxml-twig-perl libxrender1 libxslt1.1 lzop novnc-pve proxmox-mini-journalreader proxmox-widget-toolkit pve-docs pve-edk2-firmware pve-i18n pve-xtermjs python-talloc python3-certifi python3-chardet
python3-distutils python3-idna python3-jwt python3-lib2to3 python3-requests python3-six python3-urllib3 python3.5 python3.5-minimal rrdcached samba-common samba-libs smbclient socat spiceterm sqlite3 vncterm xsltproc
Use "apt autoremove" to remove them.
The following additional packages will be installed:
iso-codes libfuse3-3 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libjemalloc2 liborc-0.4-0 libproxmox-backup-qemu0 pve-qemu-kvm spiceterm
Proposed packages:
isoquery fuse3 libvisual-0.4-plugins gstreamer1.0-tools gstreamer1.0-plugins-ugly
Recommended packages:
gstreamer1.0-plugins-base gstreamer1.0-libav gstreamer1.0-plugins-good
The following packages are REMOVED:
pve-libspice server1
The following NEW packages will be installed:
iso-codes libfuse3-3 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libjemalloc2 liborc-0.4-0 libproxmox-backup-qemu0 libspice-server1
The following packages will be updated (upgrade):
pve-qemu-kvm spiceterm
2 updated, 8 newly installed, 1 to be removed and 37 not updated.
You still need to download 0 B of 31.4 MB of archives.
After this operation 265 MB of disk space will be used additionally.
Do you want to continue? [Y/n] Y
/bin/sh: /usr/share/proxmox-ve/pve-apt-hook: File or directory not found
E: Subprocess /usr/share/proxmox-ve/pve-apt-hook returned error code (127)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
 
Looks OK, but due to proxmox-ve being partially removed the apt hook failed, please do:
rm /etc/apt/apt.conf.d/10pveapthook and retry the installation of libspice-server1. The hook will be reinstalled once proxmox-ve is installed again.
 

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!