E: Sub-process /usr/bin/dpkg returned an error code (1)

Asked by Randy Nyle Adamson

randy@randy-Inspiron-518:~$ sudo apt-get updates
[sudo] password for randy:
E: Invalid operation updates
randy@randy-Inspiron-518:~$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Fetched 216 kB in 1s (147 kB/s)
Reading package lists... Done
randy@randy-Inspiron-518:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
4 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 initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-extra-4.4.0-137-generic (4.4.0-137.163) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-137-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-137-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-extra-4.4.0-137-generic; however:
  Package linux-image-extra-4.4.0-137-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 4.4.0.137.143); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-137-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-image-extra-4.4.0-137-generic
 linux-image-generic
 linux-generic
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
randy@randy-Inspiron-518:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-extra-4.4.0-137-generic (4.4.0-137.163) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-137-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-137-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-extra-4.4.0-137-generic; however:
  Package linux-image-extra-4.4.0-137-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 4.4.0.137.143); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-137-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-image-extra-4.4.0-137-generic
 linux-image-generic
 linux-generic
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
randy@randy-Inspiron-518:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu adduser Edit question
Assignee:
No assignee Edit question
Solved by:
Randy Nyle Adamson
Solved:
Last query:
Last reply:
Revision history for this message
Bashing-om (bashing-om) said :
#1

Randy Nyle Adamson - Hello

As you have:
"gzip: stdout: No space left on device"

try terminal command ' sudo apt autoremove ' .

if and when that fails post back:
df -h
df -i
dpkg -l | grep linux-

See what we have to do manually .

-these things happen; when not paying attention-

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#2

This is what came up ?

randy@randy-Inspiron-518:~$ sudo apt autoremove
[sudo] password for randy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-extra-4.4.0-137-generic (4.4.0-137.163) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-137-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-137-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-extra-4.4.0-137-generic; however:
  Package linux-image-extra-4.4.0-137-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 4.4.0.137.143); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-137-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-image-extra-4.4.0-137-generic
 linux-image-generic
 linux-generic
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
randy@randy-Inspiron-518:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 395M 6.3M 388M 2% /run
/dev/mapper/ubuntu--vg-root 583G 56G 498G 11% /
tmpfs 2.0G 9.1M 2.0G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda1 236M 203M 22M 91% /boot
cgmfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs 395M 88K 395M 1% /run/user/1000
/home/randy/.Private 583G 56G 498G 11% /home/randy
randy@randy-Inspiron-518:~$ df -r
df: invalid option -- 'r'
Try 'df --help' for more information.
randy@randy-Inspiron-518:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 498845 522 498323 1% /dev
tmpfs 504434 766 503668 1% /run
/dev/mapper/ubuntu--vg-root 38797312 370531 38426781 1% /
tmpfs 504434 133 504301 1% /dev/shm
tmpfs 504434 7 504427 1% /run/lock
tmpfs 504434 18 504416 1% /sys/fs/cgroup
/dev/sda1 62248 321 61927 1% /boot
cgmfs 504434 14 504420 1% /run/cgmanager/fs
tmpfs 504434 38 504396 1% /run/user/1000
/home/randy/.Private 38797312 370531 38426781 1% /home/randy
randy@randy-Inspiron-518:~$
randy@randy-Inspiron-518:~$ dpkg -l | grep linux-
ii linux-base 4.5ubuntu1~16.04.1 all Linux image base package
ii linux-firmware 1.157.20 all Firmware for Linux kernel drivers
iU linux-generic 4.4.0.137.143 amd64 Complete Generic Linux kernel and headers
ii linux-headers-3.13.0-157 3.13.0-157.207 all Header files related to Linux kernel version 3.13.0
ii linux-headers-3.13.0-157-generic 3.13.0-157.207 amd64 Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii linux-headers-3.13.0-24 3.13.0-24.47 all Header files related to Linux kernel version 3.13.0
ii linux-headers-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel headers for version 3.13.0 on 64 bit x86 SMP

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#3

sudo apt autoremove did not correct this problem ! What I got is above.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

What is the output of the commands

dpkg -l | grep linux-
ls -l /boot

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#5

In answer to your commands this is what I got !

ii syslinux-legacy 2:3.63+dfsg-2ubuntu8 amd64 Bootloader for Linux/i386 using MS-DOS floppies
randy@randy-Inspiron-518:~$ ls -l /boot
total 197835
-rw-r--r-- 1 root root 1169204 Aug 20 11:15 abi-3.13.0-157-generic
-rw-r--r-- 1 root root 1158016 May 2 2014 abi-3.13.0-24-generic
-rw-r--r-- 1 root root 1251923 Aug 15 10:48 abi-4.4.0-134-generic
-rw-r--r-- 1 root root 1251963 Sep 24 09:35 abi-4.4.0-137-generic
-rw-r--r-- 1 root root 166094 Aug 20 11:15 config-3.13.0-157-generic
-rw-r--r-- 1 root root 165510 May 2 2014 config-3.13.0-24-generic
-rw-r--r-- 1 root root 190624 Aug 15 10:48 config-4.4.0-134-generic
-rw-r--r-- 1 root root 190611 Sep 24 09:35 config-4.4.0-137-generic
drwxr-xr-x 5 root root 1024 Oct 29 13:41 grub
-rw-r--r-- 1 root root 35347034 Aug 22 19:57 initrd.img-3.13.0-157-generic
-rw-r--r-- 1 root root 34888565 Aug 22 19:58 initrd.img-3.13.0-24-generic
-rw-r--r-- 1 root root 42409813 Oct 16 19:11 initrd.img-4.4.0-134-generic
-rw-r--r-- 1 root root 42413179 Oct 20 14:10 initrd.img-4.4.0-137-generic
drwx------ 2 root root 12288 Aug 22 16:27 lost+found
-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 254 Aug 20 11:15 retpoline-3.13.0-157-generic
-rw-r--r-- 1 root root 255 Aug 15 10:48 retpoline-4.4.0-134-generic
-rw-r--r-- 1 root root 255 Sep 24 09:35 retpoline-4.4.0-137-generic
-rw------- 1 root root 3416014 Aug 20 11:15 System.map-3.13.0-157-generic
-rw------- 1 root root 3372643 May 2 2014 System.map-3.13.0-24-generic
-rw------- 1 root root 3902867 Aug 15 10:48 System.map-4.4.0-134-generic
-rw------- 1 root root 3903049 Sep 24 09:35 System.map-4.4.0-137-generic
-rw------- 1 root root 5892240 Aug 20 11:15 vmlinuz-3.13.0-157-generic
-rw------- 1 root root 5776416 May 2 2014 vmlinuz-3.13.0-24-generic
-rw------- 1 root root 7161824 Aug 15 10:48 vmlinuz-4.4.0-134-generic
-rw------- 1 root root 7163584 Sep 24 09:35 vmlinuz-4.4.0-137-generic
randy@randy-Inspiron-518:~$

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#6

You can e-mail me your answer to <email address hidden> Thanks !

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

We need the full output of the command
dpkg -l | grep linux-
that we are able to help.

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#8

This is what I got:
randy@randy-Inspiron-518:~$ dpkg -l | grep linux-
ii linux-base 4.5ubuntu1~16.04.1 all Linux image base package
ii linux-firmware 1.157.20 all Firmware for Linux kernel drivers
iU linux-generic 4.4.0.137.143 amd64 Complete Generic Linux kernel and headers
ii linux-headers-3.13.0-157 3.13.0-157.207 all Header files related to Linux kernel version 3.13.0
ii linux-headers-3.13.0-157-generic 3.13.0-157.207 amd64 Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii linux-headers-3.13.0-24 3.13.0-24.47 all Header files related to Linux kernel version 3.13.0
ii linux-headers-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-134 4.4.0-134.160 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-134-generic 4.4.0-134.160 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-137 4.4.0-137.163 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-137-generic 4.4.0-137.163 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-generic 4.4.0.137.143 amd64 Generic Linux kernel headers
ii linux-image-3.13.0-157-generic 3.13.0-157.207 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-4.4.0-134-generic 4.4.0-134.160 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-137-generic 4.4.0-137.163 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-157-generic 3.13.0-157.207 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-134-generic 4.4.0-134.160 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iF linux-image-extra-4.4.0-137-generic 4.4.0-137.163 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iU linux-image-generic 4.4.0.137.143 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 4.4.0-138.164 amd64 Linux Kernel Headers for development
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems
ii syslinux-common 3:6.03+dfsg-11ubuntu1 all collection of bootloaders (common)
ii syslinux-legacy 2:3.63+dfsg-2ubuntu8 amd64 Bootloader for Linux/i386 using MS-DOS floppies
randy@randy-Inspiron-518:~$ ls -l /boot
total 197835
-rw-r--r-- 1 root root 1169204 Aug 20 11:15 abi-3.13.0-157-generic
-rw-r--r-- 1 root root 1158016 May 2 2014 abi-3.13.0-24-generic
-rw-r--r-- 1 root root 1251923 Aug 15 10:48 abi-4.4.0-134-generic
-rw-r--r-- 1 root root 1251963 Sep 24 09:35 abi-4.4.0-137-generic
-rw-r--r-- 1 root root 166094 Aug 20 11:15 config-3.13.0-157-generic
-rw-r--r-- 1 root root 165510 May 2 2014 config-3.13.0-24-generic
-rw-r--r-- 1 root root 190624 Aug 15 10:48 config-4.4.0-134-generic
-rw-r--r-- 1 root root 190611 Sep 24 09:35 config-4.4.0-137-generic
drwxr-xr-x 5 root root 1024 Oct 29 13:41 grub
-rw-r--r-- 1 root root 35347034 Aug 22 19:57 initrd.img-3.13.0-157-generic
-rw-r--r-- 1 root root 34888565 Aug 22 19:58 initrd.img-3.13.0-24-generic
-rw-r--r-- 1 root root 42409813 Oct 16 19:11 initrd.img-4.4.0-134-generic
-rw-r--r-- 1 root root 42413179 Oct 20 14:10 initrd.img-4.4.0-137-generic
drwx------ 2 root root 12288 Aug 22 16:27 lost+found
-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 254 Aug 20 11:15 retpoline-3.13.0-157-generic
-rw-r--r-- 1 root root 255 Aug 15 10:48 retpoline-4.4.0-134-generic
-rw-r--r-- 1 root root 255 Sep 24 09:35 retpoline-4.4.0-137-generic
-rw------- 1 root root 3416014 Aug 20 11:15 System.map-3.13.0-157-generic
-rw------- 1 root root 3372643 May 2 2014 System.map-3.13.0-24-generic
-rw------- 1 root root 3902867 Aug 15 10:48 System.map-4.4.0-134-generic
-rw------- 1 root root 3903049 Sep 24 09:35 System.map-4.4.0-137-generic
-rw------- 1 root root 5892240 Aug 20 11:15 vmlinuz-3.13.0-157-generic
-rw------- 1 root root 5776416 May 2 2014 vmlinuz-3.13.0-24-generic
-rw------- 1 root root 7161824 Aug 15 10:48 vmlinuz-4.4.0-134-generic
-rw------- 1 root root 7163584 Sep 24 09:35 vmlinuz-4.4.0-137-generic
randy@randy-Inspiron-518:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Try the commands

sudo rm /boot/initrd.img-3.13.0-24-generic

sudo dpkg --purge linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic

sudo dpkg --configure -a

and then copy/paste all output back into this question document.

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#10

This is what came up !
randy@randy-Inspiron-518:~$ sudo rm /boot/initrd.img-3.13.0-24-generic
[sudo] password for randy:
randy@randy-Inspiron-518:~$ sudo rm /boot/initrd.img-3.13.0-24-generic
rm: cannot remove '/boot/initrd.img-3.13.0-24-generic': No such file or directory
randy@randy-Inspiron-518:~$ sudo dpkg --purge linux-image-3.13.0-24-generic linux-image-
dpkg: dependency problems prevent removal of linux-image-3.13.0-24-generic:
 linux-image-extra-3.13.0-24-generic depends on linux-image-3.13.0-24-generic.

dpkg: error processing package linux-image-3.13.0-24-generic (--purge):
 dependency problems - not removing
dpkg: warning: ignoring request to remove linux-image- which isn't installed
Errors were encountered while processing:
 linux-image-3.13.0-24-generic
randy@randy-Inspiron-518:~$ extra-3.13.0-24-generic
extra-3.13.0-24-generic: command not found
randy@randy-Inspiron-518:~$ sudo dpkg --configure -a
Setting up linux-image-extra-4.4.0-137-generic (4.4.0-137.163) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-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-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found linux image: /boot/vmlinuz-4.4.0-134-generic
Found initrd image: /boot/initrd.img-4.4.0-134-generic
Found linux image: /boot/vmlinuz-3.13.0-157-generic
Found initrd image: /boot/initrd.img-3.13.0-157-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Setting up initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-generic (4.4.0.137.143) ...
Setting up linux-generic (4.4.0.137.143) ...
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
randy@randy-Inspiron-518:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

If though you have not correctly executed my command, it seems to have worked so far.

Now continue with the commands

sudo apt-get purge linux-image-3.13.0-24-generic
sudo apt-get --purge autoremove

and copy/paste the output again.

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#12

Thanks I now think that I'll reboot and upgrade Thanks !
randy@randy-Inspiron-518:~$ sudo apt-get purge linux-image-3.13.0-24-generic
[sudo] password for randy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-image-3.13.0-24-generic* linux-image-extra-3.13.0-24-generic*
0 upgraded, 0 newly installed, 2 to remove and 66 not upgraded.
After this operation, 193 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 297232 files and directories currently installed.)
Removing linux-image-extra-3.13.0-24-generic (3.13.0-24.47) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-24-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-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-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found linux image: /boot/vmlinuz-4.4.0-134-generic
Found initrd image: /boot/initrd.img-4.4.0-134-generic
Found linux image: /boot/vmlinuz-3.13.0-157-generic
Found initrd image: /boot/initrd.img-3.13.0-157-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-extra-3.13.0-24-generic (3.13.0-24.47) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
Removing linux-image-3.13.0-24-generic (3.13.0-24.47) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-24-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-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-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found linux image: /boot/vmlinuz-4.4.0-134-generic
Found initrd image: /boot/initrd.img-4.4.0-134-generic
Found linux image: /boot/vmlinuz-3.13.0-157-generic
Found initrd image: /boot/initrd.img-3.13.0-157-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-3.13.0-24-generic (3.13.0-24.47) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
randy@randy-Inspiron-518:~$ sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 66 not upgraded.
randy@randy-Inspiron-518:~$

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#13

OK, now I rebooted and upgraded 66 but, when I check with the software updater it says that I still have to update and that I can't because I have no space again ! I've tried sudo apt autoremove, How can I remove all of my old kernels ?

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

Issue the following commands:

sudo apt-get purge linux-image-3.13.0-157-generic
sudo apt-get --purge autoremove
ls -l /boot

and copy/paste the output again.

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#15

Thanks for all of your help
randy@randy-Inspiron-518:~$ sudo apt-get purge linux-image-3.13.0-157-generic
[sudo] password for randy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-image-3.13.0-157-generic* linux-image-extra-3.13.0-157-generic*
0 upgraded, 0 newly installed, 2 to remove and 4 not upgraded.
After this operation, 198 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 292432 files and directories currently installed.)
Removing linux-image-extra-3.13.0-157-generic (3.13.0-157.207) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-157-generic
E: amd64-microcode: unsupported kernel version!
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-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-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found linux image: /boot/vmlinuz-4.4.0-134-generic
Found initrd image: /boot/initrd.img-4.4.0-134-generic
Found linux image: /boot/vmlinuz-3.13.0-157-generic
Found initrd image: /boot/initrd.img-3.13.0-157-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-extra-3.13.0-157-generic (3.13.0-157.207) ...
Removing linux-image-3.13.0-157-generic (3.13.0-157.207) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-157-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-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-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found linux image: /boot/vmlinuz-4.4.0-134-generic
Found initrd image: /boot/initrd.img-4.4.0-134-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-3.13.0-157-generic (3.13.0-157.207) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-157-generic /boot/vmlinuz-3.13.0-157-generic
randy@randy-Inspiron-518:~$ sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
randy@randy-Inspiron-518:~$ ls -l /boot
total 108258
-rw-r--r-- 1 root root 1251923 Aug 15 10:48 abi-4.4.0-134-generic
-rw-r--r-- 1 root root 1251963 Sep 24 09:35 abi-4.4.0-137-generic
-rw-r--r-- 1 root root 190624 Aug 15 10:48 config-4.4.0-134-generic
-rw-r--r-- 1 root root 190611 Sep 24 09:35 config-4.4.0-137-generic
drwxr-xr-x 5 root root 1024 Nov 15 00:13 grub
-rw-r--r-- 1 root root 42409813 Oct 16 19:11 initrd.img-4.4.0-134-generic
-rw-r--r-- 1 root root 42413022 Nov 14 14:37 initrd.img-4.4.0-137-generic
drwx------ 2 root root 12288 Aug 22 16:27 lost+found
-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 255 Aug 15 10:48 retpoline-4.4.0-134-generic
-rw-r--r-- 1 root root 255 Sep 24 09:35 retpoline-4.4.0-137-generic
-rw------- 1 root root 3902867 Aug 15 10:48 System.map-4.4.0-134-generic
-rw------- 1 root root 3903049 Sep 24 09:35 System.map-4.4.0-137-generic
-rw------- 1 root root 7161824 Aug 15 10:48 vmlinuz-4.4.0-134-generic
-rw------- 1 root root 7163584 Sep 24 09:35 vmlinuz-4.4.0-137-generic
randy@randy-Inspiron-518:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

Your latest output looks good.

Now run the commands

sudo apt-get dist-upgrade
df -h
dpkg -l | grep linux-
apt-mark showmanual 'linux-.*'

and copy/paste the output as before.

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#17

Thanks again for all of the help ! I rebooted after the last info and ran the Software updater so my hard drive was already up to date but are your commands and I now think I'm good unless there is any more kernels that can be removed ? I'd like to free up as much as possible on my boot partition !
randy@randy-Inspiron-518:~$ sudo apt-get dist-upgrade
[sudo] password for randy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-134 linux-headers-4.4.0-134-generic
  linux-image-4.4.0-134-generic linux-image-extra-4.4.0-134-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
randy@randy-Inspiron-518:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-4.4.0-134 linux-headers-4.4.0-134-generic
  linux-image-4.4.0-134-generic linux-image-extra-4.4.0-134-generic
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 303 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 320039 files and directories currently installed.)
Removing linux-headers-4.4.0-134-generic (4.4.0-134.160) ...
Removing linux-headers-4.4.0-134 (4.4.0-134.160) ...
Removing linux-image-extra-4.4.0-134-generic (4.4.0-134.160) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-134-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-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-139-generic
Found initrd image: /boot/initrd.img-4.4.0-139-generic
Found linux image: /boot/vmlinuz-4.4.0-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found linux image: /boot/vmlinuz-4.4.0-134-generic
Found initrd image: /boot/initrd.img-4.4.0-134-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Removing linux-image-4.4.0-134-generic (4.4.0-134.160) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-134-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-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-139-generic
Found initrd image: /boot/initrd.img-4.4.0-139-generic
Found linux image: /boot/vmlinuz-4.4.0-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
randy@randy-Inspiron-518:~$ sudo apt-get dist-upgrade
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.
randy@randy-Inspiron-518:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 395M 6.4M 388M 2% /run
/dev/mapper/ubuntu--vg-root 583G 56G 498G 10% /
tmpfs 2.0G 9.5M 2.0G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda1 236M 115M 109M 52% /boot
cgmfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs 395M 64K 395M 1% /run/user/1000
/home/randy/.Private 583G 56G 498G 10% /home/randy
randy@randy-Inspiron-518:~$ dpkg -l | grep linux-
ii linux-base 4.5ubuntu1~16.04.1 all Linux image base package
ii linux-firmware 1.157.20 all Firmware for Linux kernel drivers
ii linux-generic 4.4.0.139.145 amd64 Complete Generic Linux kernel and headers
ii linux-headers-3.13.0-157 3.13.0-157.207 all Header files related to Linux kernel version 3.13.0
ii linux-headers-3.13.0-157-generic 3.13.0-157.207 amd64 Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii linux-headers-3.13.0-24 3.13.0-24.47 all Header files related to Linux kernel version 3.13.0
ii linux-headers-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-137 4.4.0-137.163 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-137-generic 4.4.0-137.163 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-139 4.4.0-139.165 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-139-generic 4.4.0-139.165 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-generic 4.4.0.139.145 amd64 Generic Linux kernel headers
rc linux-image-4.4.0-134-generic 4.4.0-134.160 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-137-generic 4.4.0-137.163 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-139-generic 4.4.0-139.165 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-134-generic 4.4.0-134.160 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-137-generic 4.4.0-137.163 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-139-generic 4.4.0-139.165 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-generic 4.4.0.139.145 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 4.4.0-139.165 amd64 Linux Kernel Headers for development
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems
ii syslinux-common 3:6.03+dfsg-11ubuntu1 all collection of bootloaders (common)
ii syslinux-legacy 2:3.63+dfsg-2ubuntu8 amd64 Bootloader for Linux/i386 using MS-DOS floppies
randy@randy-Inspiron-518:~$ apt-mark showmanual 'linux-.*'
linux-generic
linux-headers-3.13.0-157
linux-headers-3.13.0-157-generic
linux-headers-3.13.0-24
linux-headers-3.13.0-24-generic
linux-headers-generic
linux-libc-dev
linux-sound-base
syslinux-common
syslinux-legacy
randy@randy-Inspiron-518:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

Well done. You correctly identified that you should run the command "sudo apt autoremove".

This is the command which you should re-run whenever the update processes have installed a new version of the kernel packages - or even better: add an option and run the command as

sudo apt --purge autoremove

The free space on your /boot partition now allows installing an additional version of the kernel packages, and if you always care for deletion of the oldest one (with the apt autoremove command), you should not run into the "no space left" problem again.

There are a few additional obsolete packages left, which do not occupy space on /boot, but on the "/" partition. You could clean them up with the commands

sudo apt purge linux-headers-3.13.0-157
sudo apt purge linux-headers-3.13.0-24
sudo apt purge linux-image-4.4.0-134-generic
sudo apt purge linux-image-extra-4.4.0-134-generic

Everything else seems fine to me.

Revision history for this message
Randy Nyle Adamson (adamsonrandy) said :
#19

Thank you so much for all of your help ! I will keep up on reviewing our texts and I'll be saving them to review and be on top of cleaning my kernels !
randy@randy-Inspiron-518:~$ sudo apt-get update
[sudo] password for randy:
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://archive.canonical.com/ubuntu xenial InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
randy@randy-Inspiron-518:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
randy@randy-Inspiron-518:~$ sudo apt purge linux-headers-3.13.0-157
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-3.13.0-157* linux-headers-3.13.0-157-generic*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 77.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 287620 files and directories currently installed.)
Removing linux-headers-3.13.0-157-generic (3.13.0-157.207) ...
Removing linux-headers-3.13.0-157 (3.13.0-157.207) ...
randy@randy-Inspiron-518:~$ sudo apt purge linux-headers-3.13.0-24
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-3.13.0-24* linux-headers-3.13.0-24-generic*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 76.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 262760 files and directories currently installed.)
Removing linux-headers-3.13.0-24-generic (3.13.0-24.47) ...
Removing linux-headers-3.13.0-24 (3.13.0-24.47) ...
randy@randy-Inspiron-518:~$ sudo apt purge linux-image-4.4.0-134-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-image-4.4.0-134-generic*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 237991 files and directories currently installed.)
Removing linux-image-4.4.0-134-generic (4.4.0-134.160) ...
Purging configuration files for linux-image-4.4.0-134-generic (4.4.0-134.160) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-134-generic /boot/vmlinuz-4.4.0-134-generic
randy@randy-Inspiron-518:~$ sudo apt purge linux-image-extra-4.4.0-134-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-image-extra-4.4.0-134-generic*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 237991 files and directories currently installed.)
Removing linux-image-extra-4.4.0-134-generic (4.4.0-134.160) ...
Purging configuration files for linux-image-extra-4.4.0-134-generic (4.4.0-134.160) ...
randy@randy-Inspiron-518:~$ sudo apt --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
randy@randy-Inspiron-518:~$ sudo apt-get update
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
randy@randy-Inspiron-518:~$ exit