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.

これは私のsource.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に記載されている指示に従ってください。システムダウングレードそして「テスト」から「安定」に戻る方法 - カーネルダウングレード

ソフトウェアはqtcreatordebianstretchで利用可能で、以下からインストールできます。

apt install qtcreator 

おすすめ記事