1

Heynnema:

I tried to add the items you requested to my original post, but the total number of characters allowed (30000) was exceeded.

So, I deleted the original output of dpkg -l 'linux-*'

I also added the output of: ls -al / to your list of reuqested items.

Hopefully, I inserted the screenshot correctly.

tscale:~$ ls -al /boot
total 308929
drwxr-xr-x  5 root root     4096 Mar  5 08:36 .
drwxr-xr-x 26 root root     4096 Feb 19 06:54 ..
-rw-r--r--  1 root root  1501359 Feb 16  2018 abi-4.13.0-36-generic
-rw-r--r--  1 root root  1501359 Mar  7  2018 abi-4.13.0-37-generic
-rw-r--r--  1 root root  1501528 May 28  2018 abi-4.13.0-45-generic
-rw-r--r--  1 root root   213212 Feb 16  2018 config-4.13.0-36-generic
-rw-r--r--  1 root root   213212 Mar  7  2018 config-4.13.0-37-generic
-rw-r--r--  1 root root   213212 May 28  2018 config-4.13.0-45-generic
-rw-r--r--  1 root root   217495 Jan 17 06:59 config-4.15.0-76-generic
-rw-r--r--  1 root root   217495 Feb 11 11:53 config-4.15.0-88-generic
drwxr-xr-x  7 root root     1024 Dec 31  1969 efi
drwxr-xr-x  5 root root     4096 Mar  5 08:37 grub
drwxr-xr-x  5 root root     4096 Jul  5  2018 grub.bak
-rw-r--r--  1 root root 58409773 Feb 22  2018 initrd.img-4.13.0-36-generic
-rw-r--r--  1 root root 29349761 May  9  2018 initrd.img-4.13.0-37-generic
-rw-r--r--  1 root root 59796351 Jun 21  2018 initrd.img-4.13.0-45-generic
-rw-r--r--  1 root root 39391724 Feb 28 13:43 initrd.img-4.15.0-76-generic
-rw-r--r--  1 root root 39401888 Feb 28 13:43 initrd.img-4.15.0-88-generic
-rw-r--r--  1 root root   182704 Jan 28  2016 memtest86+.bin
-rw-r--r--  1 root root   184380 Jan 28  2016 memtest86+.elf
-rw-r--r--  1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
-rw-r--r--  1 root root     2860 Feb 16  2018 retpoline-4.13.0-36-generic
-rw-r--r--  1 root root     2860 Mar  7  2018 retpoline-4.13.0-37-generic
-rw-r--r--  1 root root      255 May 28  2018 retpoline-4.13.0-45-generic
-rw-------  1 root root  3880918 Feb 16  2018 System.map-4.13.0-36-generic
-rw-------  1 root root  3880918 Mar  7  2018 System.map-4.13.0-37-generic
-rw-------  1 root root  3884611 May 28  2018 System.map-4.13.0-45-generic
-rw-------  1 root root  4068355 Jan 17 06:59 System.map-4.15.0-76-generic
-rw-------  1 root root  4069510 Feb 11 11:53 System.map-4.15.0-88-generic
-rw-------  1 root root  7870224 Feb 16  2018 vmlinuz-4.13.0-36-generic
-rw-------  1 root root  7872152 Feb 22  2018 vmlinuz-4.13.0-36-generic.efi.signed
-rw-------  1 root root  7870224 Mar  7  2018 vmlinuz-4.13.0-37-generic
-rw-------  1 root root  7872152 Mar 15  2018 vmlinuz-4.13.0-37-generic.efi.signed
-rw-------  1 root root  7870224 May 28  2018 vmlinuz-4.13.0-45-generic
-rw-------  1 root root  7872152 Jun 12  2018 vmlinuz-4.13.0-45-generic.efi.signed
-rw-------  1 root root  8367768 Jan 17 07:27 vmlinuz-4.15.0-76-generic
-rw-------  1 root root  8371864 Feb 11 11:57 vmlinuz-4.15.0-88-generic
tscale:~$ 



tscale:/$ ls -al
total 711520
drwxr-xr-x  26 root root      4096 Feb 19 06:54 .
drwxr-xr-x  26 root root      4096 Feb 19 06:54 ..
drwxr-xr-x   2 root root      4096 Feb 21 11:08 bin
drwxr-xr-x   5 root root      4096 Mar  5 08:36 boot
drwxr-xr-x   5 root root      4096 Jul  5  2018 boot_bak
drwxr-xr-x   2 root root      4096 Dec  4  2017 cdrom
drwxr-xr-x  21 root root      4660 Mar  6 11:12 dev
drwxr-xr-x 161 root root     12288 Mar  3 06:56 etc
drwxr-xr-x   6 root root      4096 Jul  5  2018 home
lrwxrwxrwx   1 root root        33 Feb 19 06:54 initrd.img -> boot/initrd.img-4.15.0-88-generic
lrwxrwxrwx   1 root root        33 Feb 19 06:54 initrd.img.old -> boot/initrd.img-4.15.0-76-generic
drwxr-xr-x  22 root root      4096 Jul  6  2018 lib
drwxr-xr-x   2 root root      4096 Feb 12 11:50 lib32
drwxr-xr-x   2 root root      4096 Jul  6  2018 lib64
drwx------   2 root root     16384 Dec  4  2017 lost+found
drwxr-xr-x   4 root root      4096 Sep  3  2018 media
drwxr-xr-x   4 root root      4096 Jul  4  2018 mnt
drwxr-xr-x   3 root root      4096 Nov 24 19:29 opt
dr-xr-xr-x 363 root root         0 Mar  5 11:37 proc
drwx------  10 root root      4096 Dec 30 13:54 root
drwxr-xr-x  33 root root      1020 Mar  6 11:12 run
drwxr-xr-x   2 root root     12288 Feb 26 10:10 sbin
drwxr-xr-x   5 root root      4096 Feb 14 15:43 snap
drwxr-xr-x   2 root root      4096 Oct 18  2017 srv
-rw-------   1 root root 728458240 Dec  4  2017 swapfile
dr-xr-xr-x  13 root root         0 Mar  6 11:15 sys
drwxrwxrwt  20 root root     16384 Mar  6 11:13 tmp
drwxr-xr-x  12 root root      4096 Feb 15 08:46 usr
drwxr-xr-x  14 root root      4096 Oct 18  2017 var
lrwxrwxrwx   1 root root        30 Feb 19 06:54 vmlinuz -> boot/vmlinuz-4.15.0-88-generic
lrwxrwxrwx   1 root root        30 Feb 19 06:54 vmlinuz.old -> boot/vmlinuz-4.15.0-76-generic


tscale:~$ df
Filesystem     1K-blocks      Used Available Use% Mounted on
udev            16426044         0  16426044   0% /dev
tmpfs            3289692      2072   3287620   1% /run
/dev/sdb1       21835256  18707476   1998976  91% /
tmpfs           16448440     36400  16412040   1% /dev/shm
tmpfs               5120         4      5116   1% /run/lock
tmpfs           16448440         0  16448440   0% /sys/fs/cgroup
/dev/loop0         25344     25344         0 100% /snap/snapd/6434
/dev/loop2         25344     25344         0 100% /snap/snapd/6240
/dev/loop1         56064     56064         0 100% /snap/core18/1668
/dev/sda2          98304     36348     61956  37% /boot/efi
/dev/sdb4      502914096 287878256 189419468  61% /home
tmpfs            3289688        16   3289672   1% /run/user/121
tmpfs            3289688        52   3289636   1% /run/user/1000
/dev/sdc1      976730108 664244408 312485700  69% /media/tscale/NTFS_1Tb

Screeshot of GPARTED, for relevant drive

Gryu
  • 7,559
  • 9
  • 33
  • 52
DrTSPC
  • 67
  • ...related: https://askubuntu.com/questions/18804/what-do-the-various-dpkg-flags-like-ii-rc-mean – mikewhatever Mar 05 '20 at 19:18
  • You are querying your system's database of all known packages. The database includes many more packages than the small subset that you actually have installed. – user535733 Mar 05 '20 at 19:40
  • The proper command to use would be dpkg -l linux-* | grep -i ii to show installed packages. So your real problem is disk full. Do you have a separate / and /home? Show me ls -al /boot, and df, and a screenshot of gparted. – heynnema Mar 05 '20 at 19:49
  • Heynnema: I do have / and /home. – DrTSPC Mar 06 '20 at 18:19
  • Sorry, I didn't know a return would end the comment. I will edit my post. – DrTSPC Mar 06 '20 at 18:20

1 Answers1

2

It shows not only actually installed kernels marked as ii but also kernels or packages installed in the past even if they are removed now. Most probably you've removed them without purge.

Reference

If you've tried to uninstall linux kernel by sudo apt purge linux-image-5.3.0-18-generic, you could get at the end:

Purging configuration files for linux-image-5.3.0-18-generic (5.3.0-18.19+1) ...
rmdir: failed to remove '/lib/modules/5.3.0-18-generic': Directory not empty

This kernel disappeared from grub and have been removed from /boot folder, but remained in /lib/modules/

$ sudo apt purge linux-image-5.3.0-18-generic linux-headers-5.3.0-18
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'linux-image-5.3.0-18-generic' is not installed, so not removed
The following package was automatically installed and is no longer required:
  linux-modules-5.3.0-18-generic
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  linux-headers-5.3.0-18* linux-headers-5.3.0-18-generic*
0 upgraded, 0 newly installed, 2 to remove and 22 not upgraded.
After this operation, 84,8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 353685 files and directories currently installed.)
Removing linux-headers-5.3.0-18-generic (5.3.0-18.19) ...
Removing linux-headers-5.3.0-18 (5.3.0-18.19) ...

After this, linux-headers-5.3.0-18 and linux-image-5.3.0-18-generic are not listed anymore when I run dpkg -l linux-* | grep ii, however I've removed them earlier, but without purge option.

If you want to purge a specific version, use:

sudo apt purge linux-*5.3.0-18*
Gryu
  • 7,559
  • 9
  • 33
  • 52