I'm running Proxmox VE 7.0-13 and getting the following error when trying to run "apt-get dist-upgrade". As far as I can tell everything is working properly even though I'm getting this error.
The below is is the content of "/etc/apt/sources.list".
Please advise how I can avoid this error.
Thanks,
Matt
Starting system upgrade: apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
pve-kernel-5.11.22-2-pve
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 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.11.22-4-pve (5.11.22-9) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.11.22-4-pve /boot/vmlinuz-5.11.22-4-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.11.22-4-pve /boot/vmlinuz-5.11.22-4-pve
update-initramfs: Generating /boot/initrd.img-5.11.22-4-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/C23A-5615
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/C23C-9347
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 5.11.22-4-pve /boot/vmlinuz-5.11.22-4-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 5.11.22-4-pve /boot/vmlinuz-5.11.22-4-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/C23A-5615
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/C23C-9347
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.11.22-4-pve /boot/vmlinuz-5.11.22-4-pve
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: GRUB: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.11.22-4-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.11.22-4-pve (--configure):
installed pve-kernel-5.11.22-4-pve package post-installation script subprocess returned error exit status 2
Setting up grub-pc (2.04-20) ...
/var/lib/dpkg/info/grub-pc.config: 10: /etc/default/grub: GRUB: not found
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 127
Setting up pve-kernel-5.11.22-2-pve (5.11.22-4) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.11.22-2-pve /boot/vmlinuz-5.11.22-2-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.11.22-2-pve /boot/vmlinuz-5.11.22-2-pve
update-initramfs: Generating /boot/initrd.img-5.11.22-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/C23A-5615
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/C23C-9347
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 5.11.22-2-pve /boot/vmlinuz-5.11.22-2-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 5.11.22-2-pve /boot/vmlinuz-5.11.22-2-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/C23A-5615
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/C23C-9347
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.11.22-2-pve /boot/vmlinuz-5.11.22-2-pve
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: GRUB: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.11.22-2-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.11.22-2-pve (--configure):
installed pve-kernel-5.11.22-2-pve package post-installation script subprocess returned error exit status 2
Setting up pve-kernel-5.11.22-3-pve (5.11.22-7) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.11.22-3-pve /boot/vmlinuz-5.11.22-3-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.11.22-3-pve /boot/vmlinuz-5.11.22-3-pve
update-initramfs: Generating /boot/initrd.img-5.11.22-3-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/C23A-5615
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/C23C-9347
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 5.11.22-3-pve /boot/vmlinuz-5.11.22-3-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 5.11.22-3-pve /boot/vmlinuz-5.11.22-3-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/C23A-5615
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/C23C-9347
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.11.22-3-pve /boot/vmlinuz-5.11.22-3-pve
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: GRUB: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.11.22-3-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.11.22-3-pve (--configure):
installed pve-kernel-5.11.22-3-pve package post-installation script subprocess returned error exit status 2
Setting up pve-kernel-5.11.22-5-pve (5.11.22-10) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.11.22-5-pve /boot/vmlinuz-5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.11.22-5-pve /boot/vmlinuz-5.11.22-5-pve
update-initramfs: Generating /boot/initrd.img-5.11.22-5-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/C23A-5615
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/C23C-9347
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 5.11.22-5-pve /boot/vmlinuz-5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 5.11.22-5-pve /boot/vmlinuz-5.11.22-5-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/C23A-5615
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/C23C-9347
Copying kernel and creating boot-entry for 5.11.22-4-pve
Copying kernel and creating boot-entry for 5.11.22-5-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.11.22-5-pve /boot/vmlinuz-5.11.22-5-pve
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: GRUB: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.11.22-5-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.11.22-5-pve (--configure):
installed pve-kernel-5.11.22-5-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of pve-kernel-5.11:
pve-kernel-5.11 depends on pve-kernel-5.11.22-5-pve; however:
Package pve-kernel-5.11.22-5-pve is not configured yet.
dpkg: error processing package pve-kernel-5.11 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pve-kernel-5.11.22-4-pve
grub-pc
pve-kernel-5.11.22-2-pve
pve-kernel-5.11.22-3-pve
pve-kernel-5.11.22-5-pve
pve-kernel-5.11
E: Sub-process /usr/bin/dpkg returned an error code (1)
Your System is up-to-date
starting shell
The below is is the content of "/etc/apt/sources.list".
deb http://ftp.us.debian.org/debian bullseye main contrib
deb http://ftp.us.debian.org/debian bullseye-updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
# security updates
deb http://security.debian.org bullseye-security main contrib
Please advise how I can avoid this error.
Thanks,
Matt