[SOLVED] Problem udpating packages (dpkg: error processing package proxmox-ve)

darkkhaine

Member
Feb 5, 2021
4
0
6
39
Good day to all,

I may have done something wrong at one point as I get the following error when doing apt update && apt dist-upgrade:

Code:
root@enode304:~# apt update && apt dist-upgrade
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://deb.debian.org/debian unstable InRelease
Hit:3 http://ftp.fr.debian.org/debian buster InRelease
Hit:4 http://ftp.fr.debian.org/debian buster-updates InRelease
Hit:5 http://download.proxmox.com/debian buster InRelease
Hit:6 http://download.proxmox.com/debian/pve buster InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Skipping acquire of configured file 'pve-no-subcription/binary-amd64/Packages' as repository 'http://download.proxmox.com/debian buster InRelease' doesn't have the component 'pve-no-subcription' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'pve-no-subcription/i18n/Translation-en' as repository 'http://download.proxmox.com/debian buster InRelease' doesn't have the component 'pve-no-subcription' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'pve-no-subcription/i18n/Translation-en_US' as repository 'http://download.proxmox.com/debian buster InRelease' doesn't have the component 'pve-no-subcription' (component misspelt in sources.list?)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 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.114-1-pve (5.4.114-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
run-parts: executing /etc/kernel/postinst.d/dkms 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
update-initramfs: Generating /boot/initrd.img-5.4.114-1-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: If: 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.4.114-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.4.114-1-pve (--configure):
 installed pve-kernel-5.4.114-1-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of pve-kernel-5.4:
 pve-kernel-5.4 depends on pve-kernel-5.4.114-1-pve; however:
  Package pve-kernel-5.4.114-1-pve is not configured yet.

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

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pve-kernel-5.4.114-1-pve
 pve-kernel-5.4
 proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)

My issue seems similar to this post (https://forum.proxmox.com/threads/failed-to-upgrade-packages.89089/#post-390286) but i want to make sure i don't misunterpret, could you provide some help?

Many thanks in advance!
 
Thanks for spotting, I have amended my sources list.
I still got the issue :
Code:
root@enode304:~# apt update && apt dist-upgrade
Hit:1 http://ftp.fr.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease                                               
Get:3 http://deb.debian.org/debian unstable InRelease [157 kB]                                                         
Hit:4 http://ftp.fr.debian.org/debian buster-updates InRelease                                                         
Hit:5 http://download.proxmox.com/debian/pve buster InRelease                                 
Get:6 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
Get:7 http://deb.debian.org/debian unstable/main amd64 Packages T-2021-05-29-0801.01-F-2021-05-29-0801.01.pdiff [1,880 B]
Get:7 http://deb.debian.org/debian unstable/main amd64 Packages T-2021-05-29-0801.01-F-2021-05-29-0801.01.pdiff [1,880 B]
Fetched 223 kB in 2s (143 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list.d/pve-no-subscription.list:1
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list.d/pve-no-subscription.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list.d/pve-no-subscription.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list.d/pve-no-subscription.list:1
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list.d/pve-no-subscription.list:1
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list.d/pve-no-subscription.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list.d/pve-no-subscription.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list.d/pve-no-subscription.list:1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 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.114-1-pve (5.4.114-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
run-parts: executing /etc/kernel/postinst.d/dkms 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
update-initramfs: Generating /boot/initrd.img-5.4.114-1-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.4.114-1-pve /boot/vmlinuz-5.4.114-1-pve
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: If: 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.4.114-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.4.114-1-pve (--configure):
 installed pve-kernel-5.4.114-1-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of pve-kernel-5.4:
 pve-kernel-5.4 depends on pve-kernel-5.4.114-1-pve; however:
  Package pve-kernel-5.4.114-1-pve is not configured yet.

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

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pve-kernel-5.4.114-1-pve
 pve-kernel-5.4
 proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Sorry forgot to check sources in /etc/apt/sources.list.d/, i commented out the unstable. How should i proceed now to solve the issue?
Thanks for the help.
 

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!