proxmox 8.2.4 failed to upgrade kernelstub: command not found

keiser1080

New Member
Feb 22, 2024
2
0
1
Hi,

Could you help ?

i tried apt upgrade.
And it failed with errors:
Code:
/etc/initramfs/post-update.d//zz-kernelstub: line 7: kernelstub: command not found
run-parts: /etc/initramfs/post-update.d//zz-kernelstub 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.5.13-1-pve-signed.postinst line 20.




Bash:
root@pve:~# proxmox-boot-tool status
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
System currently booted with uefi
0AAE-31A9 is configured with: uefi (versions: 6.5.13-6-pve, 6.8.12-1-pve, 6.8.4-2-pve)
root@pve:~#
root@pve:~# cat /etc/kernel/proxmox-boot-uuids
0AAE-31A9
root@pve:~# blkid /dev/nvme0n1p2
/dev/nvme0n1p2: UUID="0AAE-31A9" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="d076f29d-4f68-4b98-bcb5-6286b49add3b"
root@pve:~#
root@pve:~# blkid /dev/sda2
/dev/sda2: UUID="913B-50D7" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="8a40c1a2-2f0e-4158-b422-5699385cbfe7"
root@pve:~#
root@pve:~# efibootmgr -v
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0002,0001,0012,0011,0003,0004,0005,0006,0007,0009,000A,0008,000C,0000
Boot0000  Windows Boot Manager  VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...T................
Boot0001* Linux Boot Manager    HD(2,GPT,d076f29d-4f68-4b98-bcb5-6286b49add3b,0x800,0x200000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot0002* Debian_Ginux 12       HD(2,GPT,d076f29d-4f68-4b98-bcb5-6286b49add3b,0x800,0x200000)/File(\EFI\Debian_Ginux-\vmlinuz.efi)i.n.i.t.r.d.=.E.F.I./.D.e.b.i.a.n._.G.i.n.u.x.-./.i.n.i.t.r.d...i.m.g. .r.o.o.t.=.U.U.I.D.=. .r.o. .q.u.i.e.t. .s.p.l.a.s.h.
Boot0003  UEFI: HTTP IPv4 Realtek PCIe GBE Family Controller    PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/MAC(1c834132d029,0)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()..BO
Boot0004  UEFI: PXE IPv4 Realtek PCIe GBE Family Controller     PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/MAC(1c834132d029,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0005  UEFI: HTTP IPv4 Intel(R) Ethernet Controller I226-V   PciRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/MAC(1c834132d028,1)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()..BO
Boot0006  UEFI: PXE IPv4 Intel(R) Ethernet Controller I226-V    PciRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/MAC(1c834132d028,1)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0007  UEFI: HTTP IPv6 Realtek PCIe GBE Family Controller    PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/MAC(1c834132d029,0)/IPv6([::]:<->[::]:,0,0)/Uri()..BO
Boot0008  UEFI: PXE IPv6 Realtek PCIe GBE Family Controller     PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/MAC(1c834132d029,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0009  UEFI: HTTP IPv6 Intel(R) Ethernet Controller I226-V   PciRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/MAC(1c834132d028,1)/IPv6([::]:<->[::]:,0,0)/Uri()..BO
Boot000A  UEFI: PXE IPv6 Intel(R) Ethernet Controller I226-V    PciRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/MAC(1c834132d028,1)/IPv6([::]:<->[::]:,0,0)..BO
Boot000C  proxmox       VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0011* UEFI OS       HD(2,GPT,8a40c1a2-2f0e-4158-b422-5699385cbfe7,0x800,0x200000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0012* UEFI OS       HD(2,GPT,d076f29d-4f68-4b98-bcb5-6286b49add3b,0x800,0x200000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
root@pve:~#
root@pve:~# lsblk -o +FSTYPE
NAME                                       MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS FSTYPE
sda                                          8:0    0 894.3G  0 disk
├─sda1                                       8:1    0  1007K  0 part
├─sda2                                       8:2    0     1G  0 part             vfat
└─sda3                                       8:3    0 893.3G  0 part             LVM2_member
  ├─pve-swap                               252:0    0     8G  0 lvm              swap
  ├─pve-root                               252:1    0    96G  0 lvm              ext4
  ├─pve-data_tmeta                         252:2    0   7.7G  0 lvm
  │ └─pve-data-tpool                       252:4    0 757.8G  0 lvm
  │   ├─pve-data                           252:5    0 757.8G  1 lvm
  │   ├─pve-vm--400--disk--0               252:6    0     4M  0 lvm
  │   ├─pve-vm--400--disk--1               252:7    0     4M  0 lvm
  │   ├─pve-vm--400--disk--2               252:8    0   100G  0 lvm
  │   ├─pve-vm--400--state--fresh--install 252:9    0   8.5G  0 lvm
  │   ├─pve-vm--101--disk--0               252:10   0    32G  0 lvm              ext4
  │   ├─pve-vm--1000--disk--0              252:11   0     8G  0 lvm              ext4
  │   ├─pve-vm--1000--disk--1              252:12   0   100G  0 lvm              ext4
  │   ├─pve-vm--100--disk--0               252:13   0    30G  0 lvm              ext4
  │   ├─pve-vm--102--disk--0               252:14   0     8G  0 lvm              ext4
  │   ├─pve-vm--103--disk--0               252:15   0     6G  0 lvm              ext4
  │   ├─pve-vm--104--disk--0               252:16   0     8G  0 lvm              ext4
  │   └─pve-vm--104--disk--1               252:17   0     1G  0 lvm              ext4
  └─pve-data_tdata                         252:3    0 757.8G  0 lvm
    └─pve-data-tpool                       252:4    0 757.8G  0 lvm
      ├─pve-data                           252:5    0 757.8G  1 lvm
      ├─pve-vm--400--disk--0               252:6    0     4M  0 lvm
      ├─pve-vm--400--disk--1               252:7    0     4M  0 lvm
      ├─pve-vm--400--disk--2               252:8    0   100G  0 lvm
      ├─pve-vm--400--state--fresh--install 252:9    0   8.5G  0 lvm
      ├─pve-vm--101--disk--0               252:10   0    32G  0 lvm              ext4
      ├─pve-vm--1000--disk--0              252:11   0     8G  0 lvm              ext4
      ├─pve-vm--1000--disk--1              252:12   0   100G  0 lvm              ext4
      ├─pve-vm--100--disk--0               252:13   0    30G  0 lvm              ext4
      ├─pve-vm--102--disk--0               252:14   0     8G  0 lvm              ext4
      ├─pve-vm--103--disk--0               252:15   0     6G  0 lvm              ext4
      ├─pve-vm--104--disk--0               252:16   0     8G  0 lvm              ext4
      └─pve-vm--104--disk--1               252:17   0     1G  0 lvm              ext4
zd0                                        230:0    0     4M  0 disk
zd16                                       230:16   0    32G  0 disk
├─zd16p1                                   230:17   0    32M  0 part             vfat
├─zd16p2                                   230:18   0    24M  0 part             squashfs
├─zd16p3                                   230:19   0   256M  0 part             squashfs
├─zd16p4                                   230:20   0    24M  0 part
├─zd16p5                                   230:21   0   256M  0 part
├─zd16p6                                   230:22   0     8M  0 part
├─zd16p7                                   230:23   0    96M  0 part             ext4
└─zd16p8                                   230:24   0  31.3G  0 part             ext4
zd32                                       230:32   0   100G  0 disk
├─zd32p1                                   230:33   0    99G  0 part             ext4
├─zd32p2                                   230:34   0     1K  0 part
└─zd32p5                                   230:37   0   975M  0 part             swap
zd48                                       230:48   0     1M  0 disk
zd64                                       230:64   0   100G  0 disk
├─zd64p1                                   230:65   0   100M  0 part             vfat
├─zd64p2                                   230:66   0    16M  0 part
├─zd64p3                                   230:67   0  99.2G  0 part             ntfs
└─zd64p4                                   230:68   0   688M  0 part             ntfs
zd80                                       230:80   0   100G  0 disk
├─zd80p1                                   230:81   0    99G  0 part             ext4
├─zd80p2                                   230:82   0     1K  0 part
└─zd80p5                                   230:85   0   975M  0 part             swap
zd96                                       230:96   0     1M  0 disk
zd112                                      230:112  0    32G  0 disk
zd128                                      230:128  0   100G  0 disk
├─zd128p1                                  230:129  0    99G  0 part             ext4
├─zd128p2                                  230:130  0     1K  0 part
└─zd128p5                                  230:133  0   975M  0 part             swap
nvme0n1                                    259:0    0   1.9T  0 disk
├─nvme0n1p1                                259:1    0  1007K  0 part
├─nvme0n1p2                                259:2    0     1G  0 part             vfat
└─nvme0n1p3                                259:3    0   1.9T  0 part             zfs_member
root@pve:~#
root@pve:~#
root@pve:~# cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
#GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_DISTRIBUTOR="Proxmox Virtual Environment"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
root@pve:~#
root@pve:~# cat /etc/kernel/cmdline
root=ZFS=rpool/ROOT/pve-1 boot=zfs pcie_aspm=force
 
here the full log:
Code:
root@pve:~# apt 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+deb12u1) ...
update-initramfs: deferring update (trigger activated)
Setting up proxmox-kernel-6.8.4-2-pve-signed (6.8.4-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.8.4-2-pve /boot/vmlinuz-6.8.4-2-pve
dkms: autoinstall for kernel 6.8.4-2-pve was skipped since the kernel headers for this kernel do not seem to be installed.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.8.4-2-pve /boot/vmlinuz-6.8.4-2-pve
update-initramfs: Generating /boot/initrd.img-6.8.4-2-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/0AAE-31A9
        Copying kernel and creating boot-entry for 6.5.13-6-pve
        Copying kernel and creating boot-entry for 6.8.12-1-pve
        Copying kernel and creating boot-entry for 6.8.4-2-pve
/etc/initramfs/post-update.d//zz-kernelstub: line 7: kernelstub: command not found
run-parts: /etc/initramfs/post-update.d//zz-kernelstub 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.8.4-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.4-2-pve-signed (--configure):
 installed proxmox-kernel-6.8.4-2-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.8.12-1-pve-signed (6.8.12-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.8.12-1-pve /boot/vmlinuz-6.8.12-1-pve
dkms: running auto installation service for kernel 6.8.12-1-pve.
dkms: autoinstall for kernel: 6.8.12-1-pve.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.8.12-1-pve /boot/vmlinuz-6.8.12-1-pve
update-initramfs: Generating /boot/initrd.img-6.8.12-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/0AAE-31A9
        Copying kernel and creating boot-entry for 6.5.13-6-pve
        Copying kernel and creating boot-entry for 6.8.12-1-pve
        Copying kernel and creating boot-entry for 6.8.4-2-pve
/etc/initramfs/post-update.d//zz-kernelstub: line 7: kernelstub: command not found
run-parts: /etc/initramfs/post-update.d//zz-kernelstub 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.8.12-1-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.12-1-pve-signed (--configure):
 installed proxmox-kernel-6.8.12-1-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.5.13-6-pve-signed (6.5.13-6) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.13-6-pve /boot/vmlinuz-6.5.13-6-pve
dkms: running auto installation service for kernel 6.5.13-6-pve.
dkms: autoinstall for kernel: 6.5.13-6-pve.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.5.13-6-pve /boot/vmlinuz-6.5.13-6-pve
update-initramfs: Generating /boot/initrd.img-6.5.13-6-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/0AAE-31A9
        Copying kernel and creating boot-entry for 6.5.13-6-pve
        Copying kernel and creating boot-entry for 6.8.12-1-pve
        Copying kernel and creating boot-entry for 6.8.4-2-pve
/etc/initramfs/post-update.d//zz-kernelstub: line 7: kernelstub: command not found
run-parts: /etc/initramfs/post-update.d//zz-kernelstub 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.5.13-6-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.13-6-pve-signed (--configure):
 installed proxmox-kernel-6.5.13-6-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
 proxmox-kernel-6.8 depends on proxmox-kernel-6.8.12-1-pve-signed | proxmox-kernel-6.8.12-1-pve; however:
  Package proxmox-kernel-6.8.12-1-pve-signed is not configured yet.
  Package proxmox-kernel-6.8.12-1-pve is not installed.
  Package proxmox-kernel-6.8.12-1-pve-signed which provides proxmox-kernel-6.8.12-1-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.8 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-kernel-6.5:
 proxmox-kernel-6.5 depends on proxmox-kernel-6.5.13-6-pve-signed | proxmox-kernel-6.5.13-6-pve; however:
  Package proxmox-kernel-6.5.13-6-pve-signed is not configured yet.
  Package proxmox-kernel-6.5.13-6-pve is not installed.
  Package proxmox-kernel-6.5.13-6-pve-signed which provides proxmox-kernel-6.5.13-6-pve is not configured yet.

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

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

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142+deb12u1) ...
update-initramfs: Generating /boot/initrd.img-6.8.12-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/0AAE-31A9
        Copying kernel and creating boot-entry for 6.5.13-6-pve
        Copying kernel and creating boot-entry for 6.8.12-1-pve
        Copying kernel and creating boot-entry for 6.8.4-2-pve
/etc/initramfs/post-update.d//zz-kernelstub: line 7: kernelstub: command not found
run-parts: /etc/initramfs/post-update.d//zz-kernelstub 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:
 proxmox-kernel-6.8.4-2-pve-signed
 proxmox-kernel-6.8.12-1-pve-signed
 proxmox-kernel-6.5.13-6-pve-signed
 proxmox-kernel-6.8
 proxmox-kernel-6.5
 proxmox-default-kernel
 proxmox-ve
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pve:~#
 

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!