ubuntu apt install 错误

错误信息

root@ecdbtt:~# apt-get install gparted
Reading package lists... Done
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:
 gir1.2-javascriptcoregtk-4.0 : Depends: libjavascriptcoregtk-4.0-18 (= 2.38.5-0ubuntu0.22.04.1) but 2.38.4-0ubuntu0.22.04.1 is to be installed
 gparted : Depends: gparted-common (= 1.3.1-1ubuntu1) but it is not going to be installed
 libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.38.5-0ubuntu0.22.04.1) but 2.38.4-0ubuntu0.22.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

解决方法:

sudo apt --fix-broken install
sudo apt-get update
sudo apt-get upgrade
posted @ 2023-03-01 15:45  寻梦99  阅读(196)  评论(0编辑  收藏  举报