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

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 stable,我使用安装了一些软件包sudo apt-get -t testing install <package>

我破坏了我的系统吗?有办法修复它还是我应该重新安装它?

答案1

我破坏了我的系统吗?

是的。

有办法修复它还是我应该重新安装它?

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

该软件qtcreator在 debianstretch 上可用,您可以通过以下方式安装它:

apt install qtcreator 

相关内容