Debian: パッケージが壊れているため qtcreator をインストールできません

Debian: パッケージが壊れているため qtcreator をインストールできません

qtcreator またはその他の qt 開発パッケージをインストールしようとしていますが、パッケージが壊れているために機能しません。次に、qt Web サイトから 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>

システムを壊してしまったのでしょうか? 修復する方法はありますか? それとも再インストールしたほうがよいでしょうか?

答え1

システムを壊してしまったのでしょうか?

はい。

修正する方法はありますか、それとも再インストールする必要がありますか?

はい、テストソースを削除してから、Debian wiki に記載されている手順に従ってください:システムダウングレードそして「テスト」から「安定」に戻す方法 - カーネルのダウングレード

qtcreatorDebian Stretch で利用可能で、次の方法でインストールできます。

apt install qtcreator 

関連情報