我试图更新计算机中的某些软件包,但现在看来我什至无法运行简单的sudo apt install
命令。
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
gnome-shell : Depends: gnome-shell-common (= 42.1-0ubuntu0.1pop1~1654265234~22.04~d8fe566) but 42.2-0ubuntu0.2pop1~1656366363~22.04~47f8ae4 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
当我运行时,sudo apt --fix-broken install
出现以下错误(即使使用 -f 标志)
dpkg: error processing package gnome-shell-common (--configure):
installed gnome-shell-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
gnome-shell-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
有没有办法解决这个问题而不需要重新安装操作系统?