[SOLVED] apt update && apt install pve-kernel-5.15

Maksimus

Member
May 16, 2022
78
3
13
I have a similar problem.
Prehistory what caused it.
It was Linux 5.15.53-1-pve #1 SMP PVE 5.15.53-1 (Fri, 26 Aug 2022 16:53:52 +0200)
decided to upgrade, performed apt update and upgrade, then forgot to restart the server and performed apt autoremove, and at the time this command was executed, the server was overloaded, after which the PBS became unavailable, when you try to upgrade, errors fall

root@Host022:~# apt update && apt install pve-kernel-5.15
Hit:1 http://mirror.selectel.ru/debian bullseye InRelease
Hit:2 http://mirror.selectel.ru/debian-security bullseye-security InRelease
Hit:3 http://download.proxmox.com/debian/pbs bullseye InRelease
Hit:4 https://repo.zabbix.com/zabbix-agent2-plugins/1/debian bullseye InRelease
Hit:5 https://repo.zabbix.com/zabbix/6.2/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
pve-kernel-5.15 : Depends: pve-firmware but it is not going to be installed
Depends: pve-kernel-5.15.108-1-pve but it is not going to be installed
util-linux-locales : Depends: util-linux (>= 2.36.1) but 2.33.1-0.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
Hello,

Did you tried `apt --fix-broken install` command?
root@Host022:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
util-linux
Suggested packages:
kbd
The following packages will be REMOVED:
pve-kernel-5.15.35-2-pve
The following packages will be upgraded:
util-linux
1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/1,141 kB of archives.
After this operation, 379 MB disk space will be freed.
Do you want to continue? [Y/n]
Reading changelogs... Done
(Reading database ... 47282 files and directories currently installed.)
Removing pve-kernel-5.15.35-2-pve (5.15.35-5) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.15.35-2-pve /boot/vmlinuz-5.15.35-2-pve
update-initramfs: Deleting /boot/initrd.img-5.15.35-2-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.15.35-2-pve /boot/vmlinuz-5.15.35-2-pve
/etc/kernel/postrm.d/proxmox-auto-removal: 4: .: cannot open /usr/share/pve-kernel-helper/scripts/functions: No such file
run-parts: /etc/kernel/postrm.d/proxmox-auto-removal exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.15.35-2-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.15.35-2-pve (--remove):
installed pve-kernel-5.15.35-2-pve package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
pve-kernel-5.15.35-2-pve
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Host022:~#
 
Oh, thank you! In this case, the command should proxmox-backup-manager versions -verbose
 
Oh, thank you! In this case, the command should proxmox-backup-manager versions -verbose
root@Host022:~# proxmox-backup-manager versions -verbose
-bash: proxmox-backup-manager: command not found
root@Host022:~#
 
can someone suggest what to do? There are backups left on the disks (not needed yet, but a backup is needed when it is not there)
 

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!