Grub2 相互依赖问题

Grub2 相互依赖问题

dpkg由于各种原因,我直接使用(而不是)为 grub2 安装 .deb 依赖项apt-get

root@ubuntu:/dl# dpkg -i grub-gfxpayload-lists_0.6_amd64.deb 
Selecting previously unselected package grub-gfxpayload-lists.
(Reading database ... 249808 files and directories currently installed.)
Preparing to unpack grub-gfxpayload-lists_0.6_amd64.deb ...
Unpacking grub-gfxpayload-lists (0.6) ...
dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
 grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
  Package grub-pc is not configured yet.

dpkg: error processing package grub-gfxpayload-lists (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1) ...
Errors were encountered while processing:
 grub-gfxpayload-lists

我假设配置意味着安装+配置,所以我尝试:

root@ubuntu:/dl# dpkg -i grub-pc_2.02~beta2-9_amd64.deb 
(Reading database ... 249818 files and directories currently installed.)
Preparing to unpack grub-pc_2.02~beta2-9_amd64.deb ...
Unpacking grub-pc (2.02~beta2-9) over (2.02~beta2-9) ...
dpkg: dependency problems prevent configuration of grub-pc:
 grub-pc depends on grub2-common (= 2.02~beta2-9); however:
  Package grub2-common is not installed.
 grub-pc depends on grub-pc-bin (= 2.02~beta2-9); however:
  Package grub-pc-bin is not installed.
 grub-pc depends on grub-gfxpayload-lists; however:
  Package grub-gfxpayload-lists is not configured yet.

dpkg: error processing package grub-pc (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1) ...
Errors were encountered while processing:
 grub-pc

我该如何解决这个问题?

答案1

让它工作起来,并且我的 GRUB 现在已经修复(能够update-grubchroot我的 live cd 上的 ed mount 运行)。

gdebi 不起作用(同样的错误),起作用的是给出dpkg这个参数:

--force-depends

相关内容