Unable to update kernel files after installation error
At some point a failure occurred (unfortunately unknown) and since then I am unable to remove the packages linux-image-
I am now at a loss to know how to repair my system as nothing I could find will work.
jonathan@
Support status summary of 'Aristotle':
You have 49 packages (2.2%) supported until enero 2017 (9m)
You have 6 packages (0.3%) supported until abril 2019 (3y)
You have 10 packages (0.5%) supported until abril 2017 (9m)
You have 1980 packages (89.5%) supported until abril 2021 (5y)
You have 167 packages (7.5%) that can not/no-longer be downloaded
You have 0 packages (0.0%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more details
jonathan@
cat: /etc/dpkg/
jonathan@
i386
jonathan@
[sudo] password for jonathan:
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
cat: /etc/apt/apt.conf: No such file or directory
jonathan@
jonathan@
jonathan@
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
jonathan@
Linux Aristotle 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
cp: cannot stat '/var/lib/
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
jonathan@
Reading package lists... Done
Building dependency tree
Reading state information... Done
jonathan@
Setting up linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: not a directory.
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-
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.28.30); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-
linux-
linux-generic
jonathan@
jonathan@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 217 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 235952 files and directories currently installed.)
Removing linux-image-
depmod: FATAL: could not load /boot/System.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
WARNING: missing /lib/modules/
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/
depmod: WARNING: could not open /var/tmp/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: not a directory.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: not a directory.
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
jonathan@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 217 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 235952 files and directories currently installed.)
Removing linux-image-
depmod: FATAL: could not load /boot/System.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
WARNING: missing /lib/modules/
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/
depmod: WARNING: could not open /var/tmp/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: not a directory.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: not a directory.
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
jonathan@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 217 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 235952 files and directories currently installed.)
Removing linux-image-
depmod: FATAL: could not load /boot/System.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 4.4.0-22-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
WARNING: missing /lib/modules/
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/
depmod: WARNING: could not open /var/tmp/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: not a directory.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: not a directory.
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
jonathan@
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://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Fetched 6 903 kB in 5s (1 347 kB/s)
Reading package lists... Done
jonathan@
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
liboxideqt-
The following packages will be upgraded:
libappstream-
3 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 57.7 MB of archives.
After this operation, 1 024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Fetched 57.7 MB in 33s (1 736 kB/s)
(Reading database ... 235953 files and directories currently installed.)
Preparing to unpack .../lsb-
Unpacking lsb-base (9.20160110ubun
Setting up lsb-base (9.20160110ubun
(Reading database ... 235953 files and directories currently installed.)
Preparing to unpack .../lsb-
Unpacking lsb-release (9.20160110ubun
Preparing to unpack .../libappstrea
Unpacking libappstream-
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: not a directory.
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-
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.28.30); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: error processing package linux-image-
package linux-image-
cannot configure (current status 'half-installed')
dpkg: error processing package linux-image-
package linux-image-
cannot configure (current statNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
Setting up lsb-release (9.20160110ubun
Setting up libappstream-
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
linux-
linux-
linux-generic
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
jonathan@
/etc/apt/
1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
2 # You may comment out this entry, but any other modifications may be lost.
3 # deb [arch=amd64] http://
/etc/apt/
1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
2 # You may comment out this entry, but any other modifications may be lost.
3 # deb http://
/etc/apt/
/etc/apt/
1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial 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, and may not be under a free licence. Please satisfy yourself as to
15 ## your rights to use the software. Also, please note that software in
16 ## universe WILL NOT receive any review or updates from the Ubuntu security
17 ## team.
18 # deb-src http://
19 # deb-src http://
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 # deb-src http://
27 # deb-src http://
28
29 ## N.B. software from this repository may not have been tested as
30 ## extensively as that contained in the main release, although it includes
31 ## newer versions of some applications which may provide useful features.
32 ## Also, please note that software in backports WILL NOT receive any review
33 ## or updates from the Ubuntu security team.
34 deb http://
35 deb-src http://
36
37 ## Uncomment the following two lines to add software from Canonical's
38 ## 'partner' repository.
39 ## This software is not part of Ubuntu, but is offered by Canonical and the
40 ## respective vendors as a service to Ubuntu users.
41 # deb http://
42 # deb-src http://
43
44 deb http://
45 deb-src http://
46 # deb-src http://
47 # deb-src http://
48 # deb http://
49 # deb-src http://
jonathan@
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-generic Complete Generic Linux kernel and headers
linux-
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:
linux-
The following packages are only half installed, due to problems during
installation. The installation can probably be completed by retrying it;
the packages can be removed using dselect or dpkg --remove:
linux-
linux-
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: