$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
linux-image-5.13.0-39-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 10,3 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 223072 files and directories currently installed.)
Removing linux-image-5.13.0-39-generic (5.13.0-39.44) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.13.0-39-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-27-generic
Found initrd image: /boot/initrd.img-5.15.0-27-generic
Found linux image: /boot/vmlinuz-5.13.0-40-generic
Found initrd image: /boot/initrd.img-5.13.0-40-generic
/etc/grub.d/10_linux_proxy: 3: /etc/grub.d/bin/grubcfg_proxy: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.13.0-39-generic (--remove):
installed linux-image-5.13.0-39-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-5.13.0-39-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hi!
I've got (I think) the same problem here:
$ sudo apt-get upgrade image-5. 13.0-39- generic 5.13.0- 39-generic (5.13.0-39.44) ... postrm. d/initramfs- tools: img-5.13. 0-39-generic postrm. d/zz-update- grub: grub.d/ init-select. cfg' 5.15.0- 27-generic img-5.15. 0-27-generic 5.13.0- 40-generic img-5.13. 0-40-generic d/10_linux_ proxy: 3: /etc/grub. d/bin/grubcfg_ proxy: not found postrm. d/zz-update- grub exited with return code 127 5.13.0- 39-generic (--remove): 5.13.0- 39-generic package post-removal script subprocess returned error exit status 1 image-5. 13.0-39- generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
linux-
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 10,3 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 223072 files and directories currently installed.)
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
/etc/grub.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
installed linux-image-
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)