Total disaster after trying to upgrade to Version 8

warloxian

Member
Jun 26, 2021
47
0
11
58
Sorry to waste everyone's time but I AM LOST.
Just when I think that I have a god grasp on Linux something always happens to humble me.
I was trying to save some work so I found a method to upgrade to 8, somewhere in those instructions I was instructed to remove proxmox-ve? Why did I do it? because I am lazy and I am always trying to find the easy way out.
I need some help to get my servers back up and running Proxmox. I don't care about any of my VM's or containers. I use this as a learning lab only. I practice pen testing and learn networking. So please tell me what commands to run and what to post and maybe you can help this lazy person. Just to start I will post what happens when I run apt dist-upgrade
And please don't ask what web page gave me these worthless instructions because it was several weeks ago. I got frustrated, because I am used to doing things on my own and I hate asking for help, and I do not remember what web site I got the instructions from

Code:
sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8 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)
Setting up grub-pc (2.06-13+deb12u1) ...
grub-pc: Running grub-install ...
Installing for i386-pc platform.
File descriptor 3 (pipe:[105047093]) leaked on vgs invocation. Parent PID 1449433: grub-install
File descriptor 3 (pipe:[105047093]) leaked on vgs invocation. Parent PID 1449433: grub-install
File descriptor 3 (pipe:[105047093]) leaked on vgs invocation. Parent PID 1449433: grub-install
Installation finished. No error reported.
  grub-install success for /dev/sda
Generating grub configuration file ...
/etc/grub.d/000_proxmox_boot_header: 4: .: cannot open /usr/share/proxmox-kernel-helper/scripts/function
s: No such file
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 2
Setting up pve-kernel-6.2.9-1-pve (6.2.9-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.2.9-1-pve /boot/vmlinuz-6.2.9-1-pve
update-initramfs: Generating /boot/initrd.img-6.2.9-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
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-6.2.9-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-6.2.9-1-pve (--configure):
 installed pve-kernel-6.2.9-1-pve package post-installation script subprocess returned error exit status
 2
Setting up proxmox-kernel-6.2.16-15-pve (6.2.16-15) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.2.16-15-pve /boot/vmlinuz-6.2.16-15-pve
update-initramfs: Generating /boot/initrd.img-6.2.16-15-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
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.2.16-15-pve.postinst lin
e 20.
dpkg: error processing package proxmox-kernel-6.2.16-15-pve (--configure):
 installed proxmox-kernel-6.2.16-15-pve package post-installation script subprocess returned error exit
status 2
Setting up pve-kernel-5.15.126-1-pve (5.15.126-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.126-1-pve /boot/vmlinuz-5.15.126-1-pve
update-initramfs: Generating /boot/initrd.img-5.15.126-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
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.15.126-1-pve.postinst line 1
9.
dpkg: error processing package pve-kernel-5.15.126-1-pve (--configure):
 installed pve-kernel-5.15.126-1-pve package post-installation script subprocess returned error exit sta
tus 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.2:
 proxmox-kernel-6.2 depends on proxmox-kernel-6.2.16-15-pve; however:
  Package proxmox-kernel-6.2.16-15-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-kernel-5.15:
 pve-kernel-5.15 depends on pve-kernel-5.15.126-1-pve; however:
  Package pve-kernel-5.15.126-1-pve is not configured yet.

dpkg: error processing package pve-kernel-5.15 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-kernel-6.2:
 pve-kernel-6.2 depends on proxmox-kernel-6.2; however:
  Package proxmox-kernel-6.2 is not configured yet.

dpkg: error processing package pve-kernel-6.2 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.2.16-15-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:
 grub-pc
 pve-kernel-6.2.9-1-pve
 proxmox-kernel-6.2.16-15-pve
 pve-kernel-5.15.126-1-pve
 proxmox-kernel-6.2
 pve-kernel-5.15
 pve-kernel-6.2
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Hello,

make sure you that you replace bullseye with bookworm in all files inside /etc/apt/sources.list.d/

List all repos with: grep '' /etc/apt/sources.list* /etc/apt/sources.list.d/*

And then try to install proxmox-ve again: apt install proxmox-ve
 
And try to follow the official guides without skipping a step next time: https://pve.proxmox.com/wiki/Upgrade_from_7_to_8

It also mentions stuff like:
If you see the following message:
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!

then one or more of the currently existing packages cannot be upgraded since the proper Bookworm repository is not configured.
Check which of the previously used repositories (i.e. for Bullseye) do not exist for Bookworm or have not been upgraded to Bullseye ones.
 
Last edited:
  • Like
Reactions: MarkusF
This is my next problem after

Code:
root@hpdl380:~# sudo apt-get update
Hit:1 http://repo.netdata.cloud/repos/edge/debian bookworm/ InRelease
Hit:2 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease                                 
Hit:3 http://download.proxmox.com/debian/pve bookworm InRelease                                             
Get:4 https://pkgs.tailscale.com/unstable/debian bookworm InRelease                                         
Hit:5 https://mirrors.ustc.edu.cn/debian bookworm InRelease
Hit:6 https://mirrors.ustc.edu.cn/debian bookworm-updates InRelease
Hit:7 https://mirrors.ustc.edu.cn/debian bookworm-backports InRelease
Hit:8 https://mirrors.ustc.edu.cn/debian-security bookworm-security InRelease
Fetched 6,611 B in 3s (2,390 B/s)
Reading package lists... Done
root@hpdl380:~# sudo 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:
 ceph-common : Depends: librbd1 (= 16.2.11+ds-2) but 17.2.6-pve1 is to be installed
               Depends: python3-ceph-argparse (= 16.2.11+ds-2) but 17.2.6-pve1 is to be installed
               Depends: python3-ceph-common (< 16.2.11+ds-2.1~) but 17.2.6-pve1 is to be installed
               Depends: python3-cephfs (= 16.2.11+ds-2) but it is not going to be installed
               Depends: python3-rados (= 16.2.11+ds-2) but it is not going to be installed
 
You probably still have wrong repos configured and you don't show us your repos as requested so we can't help...
List all repos with: grep '' /etc/apt/sources.list* /etc/apt/sources.list.d/*

My guess would be you got previously ceph installed but you didn't add the new ceph repo and didn't upgraded ceph before doing the pve7to8 upgrade.
 
Last edited:
Code:
root@hpdl380:~# sudo apt-get update
Hit:1 http://repo.netdata.cloud/repos/edge/debian bookworm/ InRelease
Hit:2 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease                                
Hit:3 http://download.proxmox.com/debian/pve bookworm InRelease                                            
Get:4 https://pkgs.tailscale.com/unstable/debian bookworm InRelease                                        
Hit:5 https://mirrors.ustc.edu.cn/debian bookworm InRelease
Hit:6 https://mirrors.ustc.edu.cn/debian bookworm-updates InRelease
Hit:7 https://mirrors.ustc.edu.cn/debian bookworm-backports InRelease
Hit:8 https://mirrors.ustc.edu.cn/debian-security bookworm-security InRelease
It looks like you did not add the Ceph repository: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_ceph_quincy_no_subscription_repository
There are also some repositories configured that I do not know: repo.netdata.cloud and pkgs.tailscale.com. Maybe they are interfering?
 
Again list all repos with: grep '' /etc/apt/sources.list* /etc/apt/sources.list.d/*

Comment the repos out (adding # at the beginning of a line) that seem not necessary for the upgrade and change bullseye to bookworm.

Tailscale is vpn software and netdata is monitoring software? It is better to know what repositories you have added. Maybe add comments inside the apt repository file for additional repositories, so that you and others know what the purpose of a repository is.
 
Last edited:
He had the wrong Version from this:
The following packages have unmet dependencies:
ceph-common : Depends: librbd1 (= 16.2.11+ds-2) but 17.2.6-pve1 is to be installed
Depends: python3-ceph-argparse (= 16.2.11+ds-2) but 17.2.6-pve1 is to be installed
Depends: python3-ceph-common (< 16.2.11+ds-2.1~) but 17.2.6-pve1 is to be installed
Depends: python3-cephfs (= 16.2.11+ds-2) but it is not going to be installed
Depends: python3-rados (= 16.2.11+ds-2) but it is not going to be installed

Ceph Files installed, like me in this case:
https://forum.proxmox.com/threads/p...ceph-common-and-ceph-fuse.135418/#post-599579
 
Last edited:

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!