Ubuntu

如何擺脫 aptitude safe-upgrade 上的 grub 錯誤

  • May 17, 2011

這是主機上的一個新的 ubuntu 10.04 根伺服器。我做了最初的

sudo aptitude update && sudo aptitude safe-upgrade

現在我每次跑步時都會遇到這個消息sudo aptitude safe-upgrade

root@Ubuntu-1004-lucid-64-minimal ~ # sudo aptitude safe-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
The following partially installed packages will be configured:
 grub-pc 
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up grub-pc (1.98-1ubuntu8) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up grub-pc (1.98-1ubuntu8) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
grub-pc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done

我該如何解決這個問題/讓消息以安全的方式消失?

我寫信支持,他們修好了。我相信他們沒有正確管理他們的包鏡像。

引用自:https://serverfault.com/questions/207204