issues while trying to update to a new kernel version
Hello,
for a while now i can't update to newer kernel versions. I tried with apt-get and the Ubuntu software center as well. The main issue isn't the missing disk space in my boot partition. Whenever i clean up so there is enough space, the update procedure tries to install older kernel image versions filling up my boot partition again and the update fails.
So here's a copy of the commands recommended from the support forum:
user:~$ ubuntu-
Support status summary of 'machine':
You have 4 packages (0.1%) supported until Mai 2020 (3y)
You have 2199 packages (67.2%) supported until Mai 2019 (5y)
You have 21 packages (0.6%) supported until Mai 2017 (3y)
You have 104 packages (3.2%) supported until Februar 2018 (9m)
You have 649 packages (19.8%) that can not/no-longer be downloaded
You have 294 packages (9.0%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more details
user:~$ cat /etc/dpkg/
cat: /etc/dpkg/
user:~$ dpkg --print-
i386
user:~$ sudo grep -R roxy /etc/apt/*
[sudo] password for user:
user:~$ sudo grep -R roxy /etc/apt/*
user:~$ grep roxy /etc/environment
user:~$ echo $http_proxy
user:~$ echo $ftp_proxy
user:~$ grep roxy /etc/bash.bashrc
user:~$ grep roxy ~/.bashrc
user:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
user:~$ sudo fuser -vvv /var/lib/dpkg/lock
user:~$ sudo fuser -vvv /var/cache/
user:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
user:~$ uname -a
Linux machine 3.13.0-117-generic #164-Ubuntu SMP Fri Apr 7 11:05:26 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
user:~$ sudo rm /var/lib/
user:~$ sudo rm /var/cache/
user:~$ sudo rm /var/lib/dpkg/lock
user:~$ sudo cp -arf /var/lib/dpkg /var/lib/
user:~$ sudo mv /var/lib/
user:~$ sudo cp /var/lib/
user:~$ sudo mv /var/lib/
user:~$ sudo cp /var/lib/
user:~$ sudo rm -rf /var/lib/
user:~$ sudo rm -rf /var/lib/apt/lists
user:~$ sudo rm /var/cache/
user:~$ sudo mkdir /var/lib/apt/lists
user:~$ sudo mkdir /var/lib/
user:~$ LANG=C;sudo apt-get clean
user:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
user:~$ sudo dpkg --configure -a
Setting up initramfs-tools (0.103ubuntu4.7) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.
vmlinuz(
) points to /boot/vmlinuz-
(/boot/
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
linux-
Package linux-image-
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
Setting up linux-firmware (1.127.23) ...
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
dpkg: error processing package linux-firmware (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.13.0.117.127); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
linux-
Package linux-signed-
linux-
Package linux-firmware is not configured yet.
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
linux-
Package linux-signed-
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.103ubuntu4.7) ...
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-
linux-
linux-
linux-
linux-firmware
linux-generic
linux-
linux-
linux-
initramfs-tools
user:~$ sudo dpkg --clear-avail
user:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
10 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.103ubuntu4.7) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.
vmlinuz(
) points to /boot/vmlinuz-
(/boot/
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 2
Setting up linux-firmware (1.127.23) ...
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
dpkg: error processing package linux-firmware (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-firmware 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 (= 3.13.0.117.127); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing packageNo apport report written because MaxReports is reached already
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
linux-
Package linux-image-
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
linux-
Package linux-signed-
linux-
Package linux-firmware is not configured yet.
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
linux-
Package linux-signed-
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.103ubuntu4.7) ...
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
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
linux-
linux-firmware
linux-
linux-
linux-generic
linux-
linux-
linux-
linux-
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
user:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
10 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.103ubuntu4.7) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.
vmlinuz(
) points to /boot/vmlinuz-
(/boot/
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 2
Setting up linux-firmware (1.127.23) ...
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
dpkg: error processing package linux-firmware (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-firmware 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 (= 3.13.0.117.127); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
No apport report written because MaxReports is reached already
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
linux-
Package linux-image-
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of linux-signed-
linux-
Package linux-signed-
linux-
Package linux-firmware is not configured yet.
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
linux-
Package linux-signed-
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
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
linux-
linux-firmware
linux-
linux-
linux-generic
linux-
linux-
linux-
linux-
user:~$ LANG=C;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 0 not upgraded.
10 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.103ubuntu4.7) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.
vmlinuz(
) points to /boot/vmlinuz-
(/boot/
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 2
Setting up linux-firmware (1.127.23) ...
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
dpkg: error processing package linux-firmware (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-firmware 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 (= 3.13.0.117.127); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
linux-
Package linux-image-
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
linux-
Package linux-signed-
linux-
Package linux-firmware is not configured yet.
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
linux-
Package linux-signed-
dpkg: error processing package linux-signed-
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
update-initramfs: Generating /boot/initrd.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.
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
linux-
linux-firmware
linux-
linux-
linux-generic
linux-
linux-
linux-
linux-
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
user:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Fetched 9220 kB in 5s (1771 kB/s)
Reading package lists... Done
user:~$ LANG=C;sudo apt-get update -o APT::Cache-
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-
linux-
linux-
The following packages will be upgraded:
bash ghostscript ghostscript-x libgs9 libgs9-common linux-generic
linux-
linux-
thunderbird thunderbird-
19 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
10 not fully installed or removed.
Need to get 111 MB of archives.
After this operation, 281 MB of additional disk space will be used.
Do you want to continue? [Y/n] j
Abort.
user:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 # deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted
2 deb-src http://
3
4 # See http://
5 # newer versions of the distribution.
6 deb http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 deb-src http://
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16
17 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
18 ## team, and may not be under a free licence. Please satisfy yourself as to
19 ## your rights to use the software. Also, please note that software in
20 ## multiverse WILL NOT receive any review or updates from the Ubuntu
21 ## security team.
22
23 ## N.B. software from this repository may not have been tested as
24 ## extensively as that contained in the main release, although it includes
25 ## newer versions of some applications which may provide useful features.
26 ## Also, please note that software in backports WILL NOT receive any review
27 ## or updates from the Ubuntu security team.
28
29 deb http://
30 deb-src http://
31
32 ## Uncomment the following two lines to add software from Canonical's
33 ## 'partner' repository.
34 ## This software is not part of Ubuntu, but is offered by Canonical and the
35 ## respective vendors as a service to Ubuntu users.
36 deb http://
37 deb-src http://
38
39 ## This software is not part of Ubuntu, but is offered by third-party
40 ## developers who want to ship their latest software.
41 # deb http://
42 # deb-src http://
/etc/apt/
1 # deb http://
2 # deb-src http://
3 # deb-src http://
/etc/apt/
1 # deb http://
2 # deb-src http://
3 # deb-src http://
user:~$ sudo dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-
linux-
linux-
linux-
linux-
linux-generic Complete Generic Linux kernel and headers
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
initramfs-tools tools for generating an initramfs
linux-
linux-
linux-firmware Firmware for Linux kernel drivers
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mario Frieden
- Solved:
- Last query:
- Last reply: