dpkg:错误处理软件包 linux-image-generic(--configure):依赖性问题 - 未配置

dpkg:错误处理软件包 linux-image-generic(--configure):依赖性问题 - 未配置

dpkg --configure -a

Setting up linux-image-3.13.0-35-generic (3.13.0-35.62) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-35-generic
vmlinuz(/boot/vmlinuz-3.13.0-35-generic
) points to /boot/vmlinuz-3.13.0-35-generic
 (/boot/vmlinuz-3.13.0-35-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-35-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-35-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-35-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-3.13.0-35-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-35-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-35-generic:
 linux-image-extra-3.13.0-35-generic depends on linux-image-3.13.0-35-generic; however:
  Package linux-image-3.13.0-35-generic is not configured yet.

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

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.13.0-35-generic
 linux-image-extra-3.13.0-35-generic
 linux-image-generic

答案1

我刚刚遇到了这个问题。我所做的是清除错误的软件包,dpkg然后更新并强制重新安装:

sudo dpkg --purge linux-image-3.13.0-35-generic
sudo apt-get update
sudo apt-get -f install

安装过程可能会花费更长的时间,但最终还是成功了。

答案2

你的问题是:

update-initramfs: Generating /boot/initrd.img-3.16.0-43-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1

解决方案:

apt-get autoremove

答案3

对我来说,解决方案有所不同。

我使用了命令sudo aptitude,当图形菜单出现时,我习惯于/弹出搜索字段并找到所有linux-header, linux-image, linux-server版本,然后按删除除当前未使用的版本之外的所有版本-

为了找到我使用的当前内核版本uname -r

linux-{header, image, server}最后,我按照指定的顺序通过选择它们并按下来安装了较新版本+

为了确认我所使用的更新u

最后我重新启动后,一切都修复了。

答案4

对我来说,解决方案是使用 Synaptic 包管理器重新安装冲突的包(如果它不需要任何未安装的依赖项)。其他一切都失败了,只有 Synaptic 完成了这项工作。希望这能有所帮助。

相关内容