ubuntu安装libgtk-3-dev
·
ubuntu20.04安装libgtk-3-dev一直报错如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
libgtk-3-dev : Depends: gir1.2-gtk-3.0 (= 3.24.18-1ubuntu1) but 3.24.20-0ubuntu1 is to be installed
Depends: libatk-bridge2.0-dev but it is not going to be installed
Depends: libgtk-3-0 (= 3.24.18-1ubuntu1) but 3.24.20-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
参考这篇文章的回答,执行如下操作:
/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu focal-updates main
sudo apt update
后续就可以正常安装libgtk-3-dev了。
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)