Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
purging via aptitude
$ sudo aptitude purge \
> linux-headers-3.13.0-100 \
> linux-headers-3.13.0-100-generic \
> linux-headers-3.13.0-91 \
> linux-headers-3.13.0-91-generic \
> linux-headers-3.13.0-92 \
> linux-headers-3.13.0-92-generic \
> linux-headers-3.13.0-93 \
> linux-headers-3.13.0-93-generic \
> linux-headers-3.13.0-96 \
> linux-headers-3.13.0-96-generic \
> linux-image-3.13.0-100-generic \
> linux-image-3.13.0-101-generic \
> linux-image-3.13.0-92-generic \
> linux-image-3.13.0-93-generic \
> linux-image-3.13.0-96-generic \
> linux-image-extra-3.13.0-100-generic \
> linux-image-extra-3.13.0-101-generic \
> linux-image-extra-3.13.0-92-generic \
> linux-image-extra-3.13.0-93-generic \
> linux-image-extra-3.13.0-96-generic
The following packages will be REMOVED:
grub-common{u} grub-gfxpayload-lists{u} grub-pc{u} grub-pc-bin{u} grub2-common{u} linux-headers-3.13.0-100{p} linux-headers-3.13.0-100-generic{p}
linux-headers-3.13.0-91{p} linux-headers-3.13.0-91-generic{p} linux-headers-3.13.0-92{p} linux-headers-3.13.0-92-generic{p} linux-headers-3.13.0-93{p}
linux-headers-3.13.0-93-generic{p} linux-headers-3.13.0-96{p} linux-headers-3.13.0-96-generic{p} linux-image-3.13.0-100-generic{p} linux-image-3.13.0-101-generic{p}
linux-image-3.13.0-92-generic{p} linux-image-3.13.0-93-generic{p} linux-image-3.13.0-96-generic{p} linux-image-extra-3.13.0-100-generic{p}
linux-image-extra-3.13.0-101-generic{p} linux-image-extra-3.13.0-92-generic{p} linux-image-extra-3.13.0-93-generic{p} linux-image-extra-3.13.0-96-generic{p}
0 packages upgraded, 0 newly installed, 25 to remove and 7 not upgraded.
Need to get 0 B of archives. After unpacking 1,134 MB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 183687 files and directories currently installed.)
Removing linux-image-extra-3.13.0-100-generic (3.13.0-100.147) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-100-generic /boot/vmlinuz-3.13.0-100-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-100-generic /boot/vmlinuz-3.13.0-100-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-100-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.13.0-100-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-100-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.13.0-100-generic (3.13.0-100.147) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-100-generic /boot/vmlinuz-3.13.0-100-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-100-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-100-generic /boot/vmlinuz-3.13.0-100-generic
The link /initrd.img is a damaged link
Removing symbolic link initrd.img
you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-3.13.0-100-generic (3.13.0-100.147) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-100-generic /boot/vmlinuz-3.13.0-100-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-100-generic /boot/vmlinuz-3.13.0-100-generic
Removing linux-image-extra-3.13.0-101-generic (3.13.0-101.148) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-101-generic /boot/vmlinuz-3.13.0-101-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-101-generic /boot/vmlinuz-3.13.0-101-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-101-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.13.0-101-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-101-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.13.0-101-generic (3.13.0-101.148) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-101-generic /boot/vmlinuz-3.13.0-101-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-101-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-101-generic /boot/vmlinuz-3.13.0-101-generic
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-3.13.0-101-generic (3.13.0-101.148) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-101-generic /boot/vmlinuz-3.13.0-101-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-101-generic /boot/vmlinuz-3.13.0-101-generic
Removing linux-image-extra-3.13.0-92-generic (3.13.0-92.139) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-92-generic /boot/vmlinuz-3.13.0-92-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-92-generic /boot/vmlinuz-3.13.0-92-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-92-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.13.0-92-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-92-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.13.0-92-generic (3.13.0-92.139) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-92-generic /boot/vmlinuz-3.13.0-92-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-92-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-92-generic /boot/vmlinuz-3.13.0-92-generic
Purging configuration files for linux-image-3.13.0-92-generic (3.13.0-92.139) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-92-generic /boot/vmlinuz-3.13.0-92-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-92-generic /boot/vmlinuz-3.13.0-92-generic
Removing linux-image-extra-3.13.0-93-generic (3.13.0-93.140) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-93-generic /boot/vmlinuz-3.13.0-93-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-93-generic /boot/vmlinuz-3.13.0-93-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-93-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.13.0-93-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-93-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.13.0-93-generic (3.13.0-93.140) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-93-generic /boot/vmlinuz-3.13.0-93-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-93-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-93-generic /boot/vmlinuz-3.13.0-93-generic
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-3.13.0-93-generic (3.13.0-93.140) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-93-generic /boot/vmlinuz-3.13.0-93-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-93-generic /boot/vmlinuz-3.13.0-93-generic
Removing linux-image-extra-3.13.0-96-generic (3.13.0-96.143) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-96-generic /boot/vmlinuz-3.13.0-96-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-96-generic /boot/vmlinuz-3.13.0-96-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-96-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.13.0-96-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-96-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.13.0-96-generic (3.13.0-96.143) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-96-generic /boot/vmlinuz-3.13.0-96-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-96-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-96-generic /boot/vmlinuz-3.13.0-96-generic
Purging configuration files for linux-image-3.13.0-96-generic (3.13.0-96.143) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-96-generic /boot/vmlinuz-3.13.0-96-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-96-generic /boot/vmlinuz-3.13.0-96-generic
Errors were encountered while processing:
linux-image-extra-3.13.0-100-generic
linux-image-extra-3.13.0-101-generic
linux-image-extra-3.13.0-92-generic
linux-image-extra-3.13.0-93-generic
linux-image-extra-3.13.0-96-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Current status: 5 broken [+5].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.