Upgrade 7to8 went wrong

forcegc

Member
Feb 21, 2022
28
2
8
59
I have tried everything i have no ve interface but I can access via ssh and via IDRAC.

When I try to run apt -o Debug::pkgProblemResolver=yes dist-upgrade

root@control:~# apt -o Debug::pkgProblemResolver=yes dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-5.15.136-1-pve
/etc/initramfs/post-update.d//proxmox-boot-sync: 10: /usr/sbin/proxmox-boot-tool: not found
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@control:~# systemctl daemon-reload
root@control:~# systemctl restart systemd-hostnamed
root@control:~# hostnamectl
Static hostname: control
Icon name: computer-server
Chassis: server
Machine ID: 164c3dd69347482f9e0ed37b4fb5cfe5
Boot ID: 66b19075b881438d9521a3603908bd30
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 5.15.64-1-pve
Architecture: x86-64
Hardware Vendor: Dell Inc.
Hardware Model: PowerEdge R620
Firmware Version: 2.9.0
root@control:~# ss -antlp | grep 8006
root@control:~# systemctl status pveproxy.service
○ pveproxy.service
Loaded: masked (Reason: Unit pveproxy.service is masked.)
Active: inactive (dead)
root@control:~# apt-get install proxmox-ve
Reading package lists... Done
Building dependency tree... Done
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:

root@control:~# systemctl daemon-reload
root@control:~# systemctl restart systemd-hostnamed
root@control:~# hostnamectl
Static hostname: control
Icon name: computer-server
Chassis: server
Machine ID:
Boot ID:
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 5.15.64-1-pve
Architecture: x86-64
Hardware Vendor: Dell Inc.
Hardware Model: PowerEdge R620
Firmware Version: 2.9.0
root@control:~# ss -antlp | grep 8006
root@control:~# systemctl status pveproxy.service
○ pveproxy.service
Loaded: masked (Reason: Unit pveproxy.service is masked.)
Active: inactive (dead)
root@control:~# apt-get install proxmox-ve
Reading package lists... Done
Building dependency tree... Done
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:
python3-cephfs : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
python3-rados : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
python3-rbd : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
python3-rgw : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
E: Unable to correct problems, you have held broken packages.

1708057931498.png

1708057953097.png


1708057974671.png
This is my current repository setup.

Its like pve needs to be installed but i cant get past broken packages.
 
I placed these repositories in /etc/apt/sources.list

deb http://ftp.debian.org/debian bullseye main contrib
deb http://ftp.debian.org/debian bullseye-updates main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

# security updates
deb http://security.debian.org/debian-security bullseye-security main contrib

ran apt update and apt-get update and returned

root@control:~# apt update
Hit:1 http://ftp.debian.org/debian bullseye InRelease
Get:2 http://ftp.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:3 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:4 http://download.proxmox.com/debian/pve bullseye InRelease [2,768 B]
Hit:5 http://download.proxmox.com/debian/ceph-quincy bullseye InRelease
Get:6 http://download.proxmox.com/debian/pve bullseye/pve-no-subscription amd64 Packages [438 kB]
Fetched 533 kB in 2s (231 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@control:~#

then tried apt install proxmox-ve and returned:

root@control:~# apt install proxmox-ve
Reading package lists... Done
Building dependency tree... Done
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:
libposix-strptime-perl : Depends: perlapi-5.32.0
libpve-cluster-api-perl : Depends: libpve-cluster-perl (= 7.3-3) but 8.0.5 is to be installed
libpve-u2f-server-perl : Depends: perlapi-5.32.1
librados2-perl : Depends: perlapi-5.32.1
proxmox-ve : Depends: qemu-server but it is not installable
pve-cluster : Depends: perlapi-5.32.1
pve-container : Depends: libpve-guest-common-perl (>= 4.2-3) but it is not installable
pve-ha-manager : Depends: qemu-server (>= 6.0-15) but it is not installable
pve-manager : Depends: libpve-guest-common-perl (>= 4.2-1) but it is not installable
Depends: qemu-server (>= 7.2-8) but it is not installable
python3-cephfs : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
python3-rados : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
python3-rbd : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
python3-rgw : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
python3-yaml : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
E: Unable to correct problems, you have held broken packages.
 
you have actual error, some wrong file and tried to change to a new major different version that is not bullseye anymore. All in all, fresh iso install and 4min of config and place back your vm via restore.
 

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!