| vagrant@vagrant:~$ dpkg -l 'linux-*' | |
| Desired=Unknown/Install/Remove/Purge/Hold | |
| | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend | |
| |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) | |
| ||/ Name Version Architecture Description | |
| +++-==================================-======================-======================-========================================================================= | |
| ii linux-base 4.0ubuntu1 all Linux image base package | |
| un linux-doc-4.4.0 <none> <none> (no description available) | |
| ii linux-firmware 1.157.5 all Firmware for Linux kernel drivers | |
| un linux-headers <none> <none> (no description available) | |
| un linux-headers-3.0 <none> <none> (no description available) | |
| ii linux-headers-4.4.0-31 4.4.0-31.50 all Header files related to Linux kernel version 4.4.0 | |
| ii linux-headers-4.4.0-31-generic 4.4.0-31.50 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP | |
| ii linux-headers-4.4.0-51 4.4.0-51.72 all Header files related to Linux kernel version 4.4.0 | |
| ii linux-headers-4.4.0-51-generic 4.4.0-51.72 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP | |
| ii linux-headers-generic 4.4.0.51.54 amd64 Generic Linux kernel headers | |
| un linux-image <none> <none> (no description available) | |
| ii linux-image-4.4.0-31-generic 4.4.0-31.50 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP | |
| ii linux-image-4.4.0-51-generic 4.4.0-51.72 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP | |
| ii linux-image-extra-4.4.0-31-generic 4.4.0-31.50 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP | |
| ii linux-image-extra-4.4.0-51-generic 4.4.0-51.72 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP | |
| un linux-initramfs-tool <none> <none> (no description available) | |
| un linux-kernel-headers <none> <none> (no description available) | |
| un linux-kernel-log-daemon <none> <none> (no description available) | |
| ii linux-libc-dev:amd64 4.4.0-51.72 amd64 Linux Kernel Headers for development | |
| un linux-restricted-common <none> <none> (no description available) | |
| un linux-source-4.4.0 <none> <none> (no description available) | |
| un linux-tools <none> <none> (no description available) | |
| vagrant@vagrant:~$ sudo apt remove -y --purge linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic | cat | |
| WARNING: apt does not have a stable CLI interface. Use with caution in scripts. | |
| Reading package lists... | |
| Building dependency tree... | |
| The following packages will be REMOVED: | |
| linux-headers-4.4.0-31* linux-headers-4.4.0-31-generic* | |
| linux-image-4.4.0-31-generic* linux-image-extra-4.4.0-31-generic* | |
| 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. | |
| After this operation, 295 MB disk space will be freed. | |
| (Reading database ... 96009 files and directories currently installed.) (Reading database ... | |
| Removing linux-headers-4.4.0-31-generic (4.4.0-31.50) ... | |
| Removing linux-headers-4.4.0-31 (4.4.0-31.50) ... | |
| Removing linux-image-extra-4.4.0-31-generic (4.4.0-31.50) ... | |
| run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| Error! Your kernel headers for kernel 4.4.0-31-generic cannot be found. | |
| Please install the linux-headers-4.4.0-31-generic package, | |
| or use the --kernelsourcedir option to tell DKMS where it's located | |
| run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| update-initramfs: Generating /boot/initrd.img-4.4.0-31-generic | |
| W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. | |
| run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| Generating grub configuration file ... | |
| Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. | |
| Found linux image: /boot/vmlinuz-4.4.0-51-generic | |
| Found initrd image: /boot/initrd.img-4.4.0-51-generic | |
| Found linux image: /boot/vmlinuz-4.4.0-31-generic | |
| Found initrd image: /boot/initrd.img-4.4.0-31-generic | |
| done | |
| Purging configuration files for linux-image-extra-4.4.0-31-generic (4.4.0-31.50) ... | |
| Removing linux-image-4.4.0-31-generic (4.4.0-31.50) ... | |
| Examining /etc/kernel/prerm.d. | |
| run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| Examining /etc/kernel/postrm.d . | |
| run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| update-initramfs: Deleting /boot/initrd.img-4.4.0-31-generic | |
| run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| Generating grub configuration file ... | |
| Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. | |
| Found linux image: /boot/vmlinuz-4.4.0-51-generic | |
| Found initrd image: /boot/initrd.img-4.4.0-51-generic | |
| done | |
| The link /vmlinuz.old is a damaged link | |
| Removing symbolic link vmlinuz.old | |
| 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-4.4.0-31-generic (4.4.0-31.50) ... | |
| Examining /etc/kernel/postrm.d . | |
| run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic | |
| run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-31-generic /boot/vmlinuz-4.4.0-31-generic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment