[SOLVED] Issues upgrading to 5.4.65

May 25, 2019
14
0
6
29
My setup has been running on 5.4-3 for a long time because it didn't have the packages configured correctly (since I don't have a license).
Running an apt update & upgrade tries to upgrade to 5.4.65 but it gets stuck.

Code:
Setting up pve-kernel-5.4.65-1-pve (5.4.65-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.4.65-1-pve /boot/vmlinuz-5.4.65-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.4.65-1-pve /boot/vmlinuz-5.4.65-1-pve
update-initramfs: Generating /boot/initrd.img-5.4.65-1-pve

After this it just gets stuck for 20+ minutes and doesn't do anything anymore
 
hi,

you first need to update to the latest version of 5.x before you can upgrade to pve 6.

check here [0] for more information

also you should never run apt upgrade. please run apt dist-upgrade instead

[0]: https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0#In-place_upgrade

I can't upgrade to the latest version of 5.x though because of this issue.
Even with apt-get dist-upgrade I get the same issue.

Code:
Starting system upgrade: apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
corosync libpve-access-control libpve-common-perl pve-firewall pve-ha-manager spiceterm      zfs-initramfs zfsutils-linux
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
3 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 pve-kernel-5.4.65-1-pve (5.4.65-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.4.65-1-pve /boot/vmlinuz-5.4.65-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.4.65-1-pve /boot/vmlinuz-5.4.65-1-pve
update-initramfs: Generating /boot/initrd.img-5.4.65-1-pve
 
can you post the output of find /etc/apt -name '*.list' -exec cat {} +
 
can you post the output of find /etc/apt -name '*.list' -exec cat {} +
I was able to resolve the issue just now.

The issue was having the wrong apt source.
My source was for the new version of 6.x when I was still on 5.x

Though it currently seems stuck on: "update-initramfs: Generating /boot/initrd.img-4.15.18-30-pve"
 
great :)

please mark the thread as [SOLVED] by editing the thread title prefix



EDIT: sorry i didn't see this part:
Though it currently seems stuck on: "update-initramfs: Generating /boot/initrd.img-4.15.18-30-pve"

what is your pveversion -v output?
 
Last edited:
great :)

please mark the thread as [SOLVED] by editing the thread title prefix



EDIT: sorry i didn't see this part:
Though it currently seems stuck on: "update-initramfs: Generating /boot/initrd.img-4.15.18-30-pve"

what is your pveversion -v output?

Code:
proxmox-ve: not correctly installed (running kernel: 4.15.18-12-pve)
pve-manager: not correctly installed (running version: 5.4-15/d0ec33c6)
pve-kernel-helper: 6.2-7
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libpve-access-control: not correctly installed
libpve-apiclient-perl: 3.0-3
libpve-common-perl: not correctly installed
libpve-guest-common-perl: 2.0-20
libpve-http-server-perl: not correctly installed
libpve-storage-perl: not correctly installed
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: not correctly installed
lxcfs: 3.0.3-pve1
novnc-pve: 1.1.0-1
proxmox-widget-toolkit: 2.3-10
pve-cluster: not correctly installed
pve-container: not correctly installed
pve-docs: 6.2-6
pve-edk2-firmware: 2.20200531-1
pve-firewall: not correctly installed
pve-firmware: 3.1-3
pve-ha-manager: not correctly installed
pve-i18n: 2.2-2
pve-libspice-server1: 0.14.1-2
pve-qemu-kvm: not correctly installed
pve-xtermjs: 4.7.0-2
qemu-server: not correctly installed
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.13-pve1~bpo2
 
it seems the packages were not installed properly.

could you try:
Code:
apt update
apt install proxmox-ve
and post the output here?
 
it seems the packages were not installed properly.

could you try:
Code:
apt update
apt install proxmox-ve
and post the output here?

I haven't waited long but I assume it'll remain stuck like this.

Code:
root@pve:~# apt install proxmox-ve
Reading package lists... Done
Building dependency tree       
Reading state information... Done
proxmox-ve is already the newest version (6.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
19 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 pve-kernel-4.15.18-30-pve (4.15.18-58) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.18-30-pve /boot/vmlinuz-4.15.18-30-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.15.18-30-pve /boot/vmlinuz-4.15.18-30-pve
update-initramfs: Generating /boot/initrd.img-4.15.18-30-pve
 
what do you get from df -h?

what about fdisk -l. maybe you should check for disk errors as well.

try to not reboot the host until it's figured out, because it might not boot without recovery if initramfs isn't being built
 
great! thank you for sharing the solution as well
 

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!