将我的 MATE 16.04 Ubuntu 更新到内核版本 4.6 后,我得到了这个奇怪的依赖关系,到目前为止一切都没有解决。我无法启动到另一个内核,每当我尝试这样做时,一切都会冻结。
uname -a
Linux der-desktop 4.6.2-040602-generic #201606100516 SMP Fri Jun 10 09:18:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
分布升级:
der@der-desktop:~$ sudo apt-get dist-upgrade
[sudo] password for der:
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.
8 not fully installed or removed.
Need to get 0 B/39,0 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-image-4.4.0-040400-generic (4.4.0-040400.201601101930) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-36-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-040400-generic
cp: cannot stat '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf': No such file or directory
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-040400-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-040400-generic.postinst line 1025.
dpkg: error processing package linux-image-4.4.0-040400-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-34-generic (4.4.0-34.53) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-040400-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-34-generic /boot/vmlinuz-4.4.0-34-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-34-generic /boot/vmlinuz-4.4.0-34-generic
dkms: WARNING: Linux headers are missing, which may explain the above failures.
please install the linux-headers-4.4.0-34-generic package to fix this.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-34-generic /boot/vmlinuz-4.4.0-34-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-34-generic
cp: cannot stat '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf': No such file or directory
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-34-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-34-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-34-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-36-generic (4.4.0-36.55) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-34-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-36-generic /boot/vmlinuz-4.4.0-36-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-36-generic /boot/vmlinuz-4.4.0-36-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-36-generic /boot/vmlinuz-4.4.0-36-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-36-generic
cp: cannot stat '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf': No such file or directory
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-36-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-36-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-36-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: error processing package linux-image-extra-4.4.0-34-generic (--configure):
package linux-image-extra-4.4.0-34-generic is not ready for configuration
cannot configure (current status 'half-installed')
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-36-generic:
linux-image-extra-4.4.0-36-generic depends on linux-image-4.4.0-36-generic; however:
Package linux-image-4.4.0-36-generic is not configured yet.
dpkg: error processing package linux-image-extra-4.4.0-36-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-4.4.0-36-generic:
linux-signed-image-4.4.0-36-generic depends on linux-image-4.4.0-36-generic (= 4.4.0-36.55); however:
Package linux-image-4.4.0-36-generic is not configured yet.
dpkg: error processing package linux-signed-image-4.4.0-36-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-sigNo apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
ned-image-generic:
linux-signed-image-generic depends on linux-signed-image-4.4.0-36-generic; however:
Package linux-signed-image-4.4.0-36-generic is not configured yet.
linux-signed-image-generic depends on linux-image-extra-4.4.0-36-generic; however:
Package linux-image-extra-4.4.0-36-generic is not configured yet.
dpkg: error processing package linux-signed-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic:
linux-signed-generic depends on linux-signed-image-generic (= 4.4.0.36.38); however:
Package linux-signed-image-generic is not configured yet.
dpkg: error processing package linux-signed-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-4.4.0-040400-generic
linux-image-4.4.0-34-generic
linux-image-4.4.0-36-generic
linux-image-extra-4.4.0-34-generic
linux-image-extra-4.4.0-36-generic
linux-signed-image-4.4.0-36-generic
linux-signed-image-generic
linux-signed-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Apt-缓存:
apt-cache policy linux-generic linux-image-generic linux-headers-generic
linux-generic:
Installed: (none)
Candidate: 4.4.0.36.38
Version table:
4.4.0.36.38 500
500 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
4.4.0.21.22 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
linux-image-generic:
Installed: (none)
Candidate: 4.4.0.36.38
Version table:
4.4.0.36.38 500
500 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
4.4.0.21.22 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
linux-headers-generic:
Installed: 4.4.0.36.38
Candidate: 4.4.0.36.38
Version table:
*** 4.4.0.36.38 500
500 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
4.4.0.21.22 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
好像缺少了一些东西,但我无法重新安装任何东西……:(
答案1
这修复了它:
mkdir -p ~/Downloads/kernel64bit/4.4.0-34.53/
cd ~/Downloads/kernel64bit/4.4.0-34.53/
wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.4.0-34_4.4.0-34.53_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.4.0-34-generic_4.4.0-34.53_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-4.4.0-34-generic_4.4.0-34.53_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-extra-4.4.0-34-generic_4.4.0-34.53_amd64.deb
sudo dpkg -i *.deb
sudo apt-get -f install
sudo apt-get install --reinstall ttf-dejavu
sudo apt-get -f install