need help fixing apt error
by Samyan from LinuxQuestions.org on (#57A8F)
here is a copy of the output from the command 'apt dist-upgrade -f':
root@tevens:/home/teven# apt dist-upgrade -f
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.
2 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 linux-image-5.3.0-59-lowlatency (5.3.0-59.53) ...
I: /boot/initrd.img is now a symlink to initrd.img-5.3.0-59-lowlatency
Setting up linux-image-5.3.0-55-lowlatency (5.3.0-55.49) ...
I: /boot/initrd.img.old is now a symlink to initrd.img-5.3.0-55-lowlatency
Processing triggers for linux-image-5.3.0-59-lowlatency (5.3.0-59.53) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.3.0-59-lowlatency
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.0-59-lowlatency
E: /usr/share/initramfs-tools/hooks/ubuntu-core-rootfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.3.0-59-lowlatency with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.3.0-59-lowlatency (--configure):
installed linux-image-5.3.0-59-lowlatency package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.3.0-55-lowlatency (5.3.0-55.49) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.3.0-55-lowlatency
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.0-55-lowlatency
E: /usr/share/initramfs-tools/hooks/ubuntu-core-rootfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.3.0-55-lowlatency with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.3.0-55-lowlatency (--configure):
installed linux-image-5.3.0-55-lowlatency package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.3.0-59-lowlatency
linux-image-5.3.0-55-lowlatency
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@tevens:/home/teven#
siamsport


root@tevens:/home/teven# apt dist-upgrade -f
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.
2 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 linux-image-5.3.0-59-lowlatency (5.3.0-59.53) ...
I: /boot/initrd.img is now a symlink to initrd.img-5.3.0-59-lowlatency
Setting up linux-image-5.3.0-55-lowlatency (5.3.0-55.49) ...
I: /boot/initrd.img.old is now a symlink to initrd.img-5.3.0-55-lowlatency
Processing triggers for linux-image-5.3.0-59-lowlatency (5.3.0-59.53) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.3.0-59-lowlatency
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.0-59-lowlatency
E: /usr/share/initramfs-tools/hooks/ubuntu-core-rootfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.3.0-59-lowlatency with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.3.0-59-lowlatency (--configure):
installed linux-image-5.3.0-59-lowlatency package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.3.0-55-lowlatency (5.3.0-55.49) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.3.0-55-lowlatency
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.0-55-lowlatency
E: /usr/share/initramfs-tools/hooks/ubuntu-core-rootfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.3.0-55-lowlatency with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.3.0-55-lowlatency (--configure):
installed linux-image-5.3.0-55-lowlatency package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.3.0-59-lowlatency
linux-image-5.3.0-55-lowlatency
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@tevens:/home/teven#
siamsport