[SOLVED] Cannot upgrade kernel

enboig

New Member
Mar 25, 2024
3
0
1
Trying to upgrade fails. I checked and it is not a space problem:
Code:
The following packages were automatically installed and are no longer required:                                     
  libltdl7 slirp4netns                                                                                             
Use 'apt autoremove' to remove them.   
The following additional packages will be installed:
  proxmox-kernel-6.5 proxmox-kernel-6.5.13-3-pve-signed
The following NEW packages will be installed:
  proxmox-kernel-6.5 proxmox-kernel-6.5.13-3-pve-signed
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
21 not fully installed or removed.
Need to get 9,812 B/99.9 MB of archives.
After this operation, 559 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 proxmox-kernel-6.5 all 6.5.13-3 [9,812 B]
Fetched 9,812 B in 0s (60.1 kB/s)             
Selecting previously unselected package proxmox-kernel-6.5.13-3-pve-signed.
(Reading database ... 46737 files and directories currently installed.)
Preparing to unpack .../proxmox-kernel-6.5.13-3-pve-signed_6.5.13-3_amd64.deb ...
Unpacking proxmox-kernel-6.5.13-3-pve-signed (6.5.13-3) ...
dpkg-deb: error: <decompress> subprocess was killed by signal (Killed)
dpkg: error processing archive /var/cache/apt/archives/proxmox-kernel-6.5.13-3-pve-signed_6.5.13-3_amd64.deb (--unpack):
 cannot copy extracted data for './lib/modules/6.5.13-3-pve/kernel/drivers/char/hangcheck-timer.ko' to '/lib/modules/6.5.13-3-pve/kernel/drivers/char/hangcheck-timer.ko.dpkg-new': unexpected end of file or stream
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.5.13-3-pve /boot/vmlinuz-6.5.13-3-pve
update-initramfs: Deleting /boot/initrd.img-6.5.13-3-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 6.5.13-3-pve /boot/vmlinuz-6.5.13-3-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 6.5.13-3-pve /boot/vmlinuz-6.5.13-3-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/76FE-D7A1
        Copying kernel 6.5.11-8-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.11-8-pve
Found initrd image: /boot/initrd.img-6.5.11-8-pve
done
Copying and configuring kernels on /dev/disk/by-uuid/7703-0933
        Copying kernel 6.5.11-8-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.11-8-pve
Found initrd image: /boot/initrd.img-6.5.11-8-pve
done
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 6.5.13-3-pve /boot/vmlinuz-6.5.13-3-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.11-8-pve
Found initrd image: /boot/initrd.img-6.5.11-8-pve
/usr/sbin/grub-probe: error: unknown filesystem.
/usr/sbin/grub-probe: error: unknown filesystem.
Found memtest86+x64 image: /ROOT/pve-1@/boot/memtest86+x64.bin
done
Selecting previously unselected package proxmox-kernel-6.5.
Preparing to unpack .../proxmox-kernel-6.5_6.5.13-3_all.deb ...
Unpacking proxmox-kernel-6.5 (6.5.13-3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/proxmox-kernel-6.5.13-3-pve-signed_6.5.13-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
that sounds like the deb file on disk is potentially corrupt? can you check your disk and memory health, and maybe clear out the cached APT files and retry?
 
I tried "apt clean", it continue failing. I decompressed cache filed with "ar x ..." and worked without an error.

It is a test server with 4gb of ram. I have discovered it don't have swap, so maybe it is a low ram issue?
 
please try "rm /var/cache/apt/archives/*.deb" and then retry.
 
Stopping containers and rebooting solved the issue; so I am pretty sure it was an "out of memory" problem.

Thanks.
 

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!