我在 Macbook pro 上安装了 Ubuntu 14.04。但是每次我在终端中执行 apt-get XXXX 时,总是会显示以下错误:
dpkg: dependency problems prevent configuration of linux-signed-image-4.4.0-101-generic:
linux-signed-image-4.4.0-101-generic depends on linux-image-4.4.0-101-generic (= 4.4.0-101.124~14.04.1); however:
Package linux-image-4.4.0-101-generic is not configured yet.
dpkg: error processing package linux-signed-image-4.4.0-101-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-generic-lts-xenial:
linux-signed-image-generic-lts-xenial depends on linux-signed-image-4.4.0-101-generic; however:
Package linux-signed-image-4.4.0-101-generic is not configured yet.
linux-signed-image-generic-lts-xenial depends on linux-image-extra-4.4.0-101-generic; however:
Package linux-image-extra-4.4.0-101-generic is not configured yet.
dpkg: error processing package linux-signed-image-generic-lts-xenial (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic-lts-xenial:
linux-signed-generic-lts-xenial depends on linux-signed-image-generic-lts-xenial (= 4.4.0.101.84); however:
Package linux-signed-image-generic-lts-xenial is not configured yet.
dpkg: error processing package linux-signed-generic-lts-xenial (--configure):
dependency problems - leaving unconfigured
Setting up apport (2.14.1-0ubuntu3.27) ...
apport start/running
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
linux-image-3.13.0-24-generic
grub-efi-amd64
grub-efi-amd64-signed
linux-image-extra-3.13.0-24-generic
linux-image-generic
linux-generic
linux-image-4.4.0-101-generic
linux-image-extra-4.4.0-101-generic
linux-image-generic-lts-xenial
linux-generic-lts-xenial
linux-signed-image-4.4.0-101-generic
linux-signed-image-generic-lts-xenial
linux-signed-generic-lts-xenial
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
尝试
sudo apt-get -f 升级
该选项尝试修复依赖性问题。
如果不成功,我建议安装较新的 16.04 LTS 版本,并提供 5 年支持,除非您有非常好的理由坚持使用 14.04。