Dis*_*ame 41 package-management apt grub2 dependencies 22.04
标准apt-get upgrade
并重新启动后,当我尝试apt-get upgrade
在 22.04 LTS 中运行时,出现以下错误:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
grub-efi-amd64-signed : Depends: grub-efi-amd64-bin (= 2.06-2ubuntu7) but 2.06-2ubuntu10 is to be installed
E: Broken packages
Run Code Online (Sandbox Code Playgroud)
这里发生了什么?
小智 75
我遇到了同样的问题,下面的命令解决了这个问题:
sudo apt --only-upgrade install grub-efi-amd64-signed
Run Code Online (Sandbox Code Playgroud)
我的猜测是,这与您的系统未使用安全启动有关,因为我可以看到有一个grub-efi
后缀为unsigned
.
小智 18
升级到grub-efi-amd64-signed
和 时出现了一个小问题grub-efi-amd64-bin
,它们都需要升级,但它们相互依赖并且都不想先升级。你可以等待 Ubuntu 以某种方式解决这个问题,但我能够通过使用以下方法解决这个问题:
apt install grub-efi-amd64-bin
Run Code Online (Sandbox Code Playgroud)
...这会强制升级该软件包(install
在已安装的软件包上使用该标志使其自行升级)。然后重新运行apt upgrade
,您应该会发现其他一切都再次流动。
小智 10
ruffCode和jrggv的方法对我不起作用。下面的代码解决了我的问题
sudo rm /var/lib/dpkg/info/grub*
sudo dpkg --configure -a
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
30710 次 |
最近记录: |