当我尝试通过终端升级时sudo apt-get upgrade
出现此错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'linux-image-3.13.0-27-generic' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.13.0-37-generic (3.13.0-37.64) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled
(3.13.0-37.64 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(3.13.0-37.64 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.13.0-37-generic...
P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory
run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-37-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-37-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-37-generic:
linux-image-extra-3.13.0-37-generic depends on linux-image-3.13.0-37-generic; however:
Package linux-image-3.13.0-37-generic is not configured yet.
dpkg: error processing package linux-image-extra-3.13.0-37-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.13.0-37-generic; however:
Package linux-image-3.13.0-37-generic is not configured yet.
linux-image-generic depends on linux-image-extra-3.13.0-37-generic; however:
Package linux-image-extra-3.13.0-37-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.13.0.37.44); 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 MaxReports is reached already
dpkg: dependency problems prevent configuration of linux:
linux depends on linux-generic; however:
Package linux-generic is not configured yet.
dpkg: error processing package linux (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
E: Sub-process /usr/bin/dpkg returned an error code (1)
为了解决这个问题我尝试了
- 升级后我收到此错误。请帮忙
- 意外删除了“linux-image-generic”
- 尝试更新时未满足依赖关系
- dpkg 操作失败:无法运行 depmod,处理 linux-image-generic 时出错
- libpam systemd-安装错误 ubuntu 14.04 无法安装更新
- “apt-get -f install” 失败,并显示“/usr/bin/dpkg 返回错误代码 (1)”
- 修复软件中心目录
- dpkg:错误处理软件包 linux-image-generic (--configure):依赖性问题 - 未配置
这是我的/etc/grub.d/00_header内容。
我应该怎么办?
答案1
问题通过以下方式解决:
apt-get install memtest86+