Debian:由于软件包损坏,无法安装qtcreator

胶体

我正在尝试安装qtcreator或任何其他qt开发软件包,但由于软件包损坏而无法正常工作。然后,我尝试从qt网站手动安装qtcreator,但由于此错误,我无法编译任何内容cannot find -lGL

然后,我尝试安装libgl1-mesa-dev,并且得到与安装qtcreator时相同的错误:

> sudo apt-get install libgl1-mesa-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:
 libgl1-mesa-dev : Depends: mesa-common-dev (= 13.0.6-1+b2) but it is not going to be installed
                   Depends: libdrm-dev (>= 2.4.69) but it is not going to be installed
                   Depends: libxcb-dri3-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这可能与我的sources.list有关,我添加了以下内容:

deb http://ftp.fr.debian.org/debian testing main non-free contrib
deb-src http://ftp.fr.debian.org/debian testing main non-free contrib

我使用的是debian 9.9稳定版,我使用 sudo apt-get -t testing install <package>

我破坏了系统吗?有什么办法可以修复它,还是应该重新安装它?

GAD3R

我破坏了系统吗?

是的。

有什么办法可以修复它,还是应该重新安装它?

是的,删除测试源,然后按照debian wiki上描述的说明进行操作:系统降级以及如何从“测试”恢复为“稳定”-内核降级

qtcreator可在Debian舒展,您可以通过安装它:

apt install qtcreator 

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章