未满足的依赖项:linux-generic

今天我去找奶奶,因为她的电脑有些问题,运行Xubuntu 12.04LTS。 修复’问题’后(Firefox设置为全屏..)我运行了通常的apt-get update && apt-get dist-upgrade来立即更新所有内容。 相反,我遇到了一些错误,一些包没有正确安装。 所以我跑了dpkg --configure -a 。 我的猜测是,因为Firefox是全屏的,她无法弄清楚如何关闭她的计算机并且只是简单地转过它,可能是在安装自动安全更新的那一刻。 然而,运行dpkg --configure -a只会给我留下关于linux-generic unmet依赖关系的错误消息。 当再次运行apt-get dist-upgrade时,它告诉我同样的情况,我应该尝试使用-f选项。 但是,即使在尝试强制升级时,它仍然不会安装它们。

这是命令的输出(添加了LANG = C,因为默认语言是荷兰语)。

 jeroen@Bomma:/home/bomma$ LANG=C sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-generic : Depends: linux-image-generic (= 3.2.0.37.45) but 3.2.0.38.46 is installed Depends: linux-headers-generic (= 3.2.0.37.45) but 3.2.0.38.46 is installed E: Unmet dependencies. Try using -f. 

-f运行它:

 jeroen@Bomma:/home/bomma$ LANG=C sudo apt-get -f dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done Calculating upgrade... Done The following packages will be upgraded: linux-generic 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/1.722 B of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 3.2.0.37.45); however: Version of linux-image-generic on system is 3.2.0.38.46. linux-generic depends on linux-headers-generic (= 3.2.0.37.45); however: Version of linux-headers-generic on system is 3.2.0.38.46. dpkg: error processing linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing: linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 

我没有关于如何解决这个问题的想法(除了快速重新安装她漂亮的默认xubuntu)? 试图删除并重新安装linux-generic软件包似乎风险很大,但也许这会解决它?

删除linux-generic将毫无伤害。 它只是一个“元包”,取决于linux-image-genericlinux-headers-generic 。 这两个本身是元包,取决于各自的最新图像/标题包。

您可以通过发布apt-cache show linux-genericapt-cache show linux-image-genericapt-cache show linux-headers-generic

元数据包的目的是引入它们所依赖的包,它们根本没有任何function。 另一方面,删除一个不会删除它的依赖 – 所以没有系统的危险。

修复了原始问题后,您当然可以再次安装linux-generic