apt-get不会升级旧的通用Pae


8

运行#apt-get upgrade,我被告知要运行sudo apt-get -f install。我这样做,然后看到:

The following extra packages will be installed:
  linux-generic-pae linux-headers-generic-pae linux-image-generic-pae
The following packages will be upgraded:
  linux-generic-pae linux-headers-generic-pae linux-image-generic-pae
3 upgraded, 0 newly installed, 0 to remove and 138 not upgraded.
3 not fully installed or removed.
Need to get 0 B/6,460 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
 linux-image-generic-pae depends on linux-image-3.2.0-48-generic-pae; however:
  Package linux-image-3.2.0-48-generic-pae is not installed.
dpkg: error processing linux-image-generic-pae (--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-headers-generic-pae:
 linux-headers-generic-pae depends on linux-headers-3.2.0-48-generic-pae; however:
  Package linux-headers-3.2.0-48-generic-pae is not installed.
dpkg: error processing linux-headers-generic-pae (--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-pae:
 linux-generic-pae depends on linux-image-generic-pae (= 3.2.0.48.58); however:
  Package linux-image-generic-pae is not configured yet.
 linux-generic-pae depends on linux-headers-generic-pae (= 3.2.0.48.58); however:
  Package linux-headers-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 linux-image-generic-pae
 linux-headers-generic-pae
 linux-generic-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)

这是我的清单/usr/src

/usr/src:
total used in directory 88 available 19619852
drwxr-xr-x 22 root root 4096 Feb  1 23:21 .
drwxr-xr-x 10 root root 4096 Aug 31  2012 ..
drwxr-xr-x 24 root root 4096 Jan 18  2013 linux-headers-3.2.0-36
drwxr-xr-x  7 root root 4096 Jan 18  2013 linux-headers-3.2.0-36-generic-pae
drwxr-xr-x 24 root root 4096 Feb  1  2013 linux-headers-3.2.0-37
drwxr-xr-x  7 root root 4096 Feb  1  2013 linux-headers-3.2.0-37-generic-pae
drwxr-xr-x 24 root root 4096 Feb 22  2013 linux-headers-3.2.0-38
drwxr-xr-x  7 root root 4096 Feb 22  2013 linux-headers-3.2.0-38-generic-pae
drwxr-xr-x 24 root root 4096 Mar 19  2013 linux-headers-3.2.0-39
drwxr-xr-x  7 root root 4096 Mar 19  2013 linux-headers-3.2.0-39-generic-pae
drwxr-xr-x 24 root root 4096 Apr  9  2013 linux-headers-3.2.0-40
drwxr-xr-x  7 root root 4096 Apr  9  2013 linux-headers-3.2.0-40-generic-pae
drwxr-xr-x 24 root root 4096 May  2  2013 linux-headers-3.2.0-41
drwxr-xr-x  7 root root 4096 May  2  2013 linux-headers-3.2.0-41-generic-pae
drwxr-xr-x 24 root root 4096 May 16  2013 linux-headers-3.2.0-43
drwxr-xr-x  7 root root 4096 May 16  2013 linux-headers-3.2.0-43-generic-pae
drwxr-xr-x 24 root root 4096 May 24  2013 linux-headers-3.2.0-44
drwxr-xr-x  7 root root 4096 May 24  2013 linux-headers-3.2.0-44-generic-pae
drwxr-xr-x 24 root root 4096 May 31  2013 linux-headers-3.2.0-45
drwxr-xr-x  7 root root 4096 May 31  2013 linux-headers-3.2.0-45-generic-pae
drwxr-xr-x 24 root root 4096 Feb  1 23:21 linux-headers-3.2.0-58
drwxr-xr-x  7 root root 4096 Feb  1 23:21 linux-headers-3.2.0-58-generic-pae

我的其他大多数机器上的所有数字也在45到58之间。我认为我甚至不需要这个48版本吗?



您只可以保留运行良好的最新内核。.检查当前与uname -r..一起使用的内核。也可以访问此链接以获取有关删除旧内核的更多信息:如何删除或隐藏旧内核版本,以清理启动菜单?
精确

Answers:


10

针对以下类型的错误,删除或强制删除相应的程序包将解决此问题,

dpkg: error package-name (--configure):
 dependency problems - leaving unconfigured

在此问题中leaving unconfigured,这三个软件包均发生错误,

linux-image-generic-pae
linux-headers-generic-pae
linux-generic-pae

因此,我们必须通过运行来删除软件包,

sudo dpkg -r linux-image-generic-pae
sudo dpkg -r linux-headers-generic-pae
sudo dpkg -r linux-generic-pae

如果删除上面的代码时出现任何依赖问题,请force选择下面的选项,否则跳过它。

注意:仅当所有其他方法均无效时,才使用强制选项。

通过运行以下命令来强制删除上述三个软件包,

sudo dpkg --purge --force-all --force-remove-reinstreq linux-image-generic-pae
sudo dpkg --purge --force-all --force-remove-reinstreq linux-headers-generic-pae
sudo dpkg --purge --force-all --force-remove-reinstreq linux-generic-pae

现在您可以运行升级了,

sudo apt-get -f install
sudo apt-get upgrade

如果要重新安装软件包,请运行以下命令

sudo apt-get install linux-image-generic-pae
sudo apt-get install linux-headers-generic-pae
sudo apt-get install linux-generic-pae

1
有两个问题。首先,旧内核没有被删除,因此我的分区已满。其次,我认为升级严重失败,留下了混乱的依赖关系。
BentFranklin

我已经看到线程显示了这个答案,但是它们是针对应用程序的,而不是系统内部的,因此,我一直害怕过分地删除linux-generic-pae及其同类。
BentFranklin 2014年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.