E:問題を解決できず、破損したパッケージがあります。 (Debian 9.13)

E:問題を解決できず、破損したパッケージがあります。 (Debian 9.13)

マザーボードにQtをインストールするには、複数のパッケージをダウンロードする必要がありますが、毎回libxi-devパッケージでこのエラーが発生します。依存関係を個別にダウンロードしようとしましたが、まだ機能しません。ソースからダウンロードしようとしました。 /etc/apt/sources.listファイルを変更しましたが、このエラーは解決しません。

私が使用しているボードにはDebian 9.13がインストールされていますが、変更することはできません。しかし、それ以前は同じOSのカードを使用していましたが、このようなエラーは発生しませんでした。現在、次のような結果が表示されます。問題の原因が見つからないため解決されません。

sudo apt インストール libxi-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:  libxi-dev : Depends:
> libxext-dev but it is not going to be installed
>              Depends: libxfixes-dev but it is not going to be installed
>              Depends: x11proto-input-dev (>= 2.1.99.6) 
> E: Unable to correct problems, you have held broken packages.

これは私のsource.listファイルです。

deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free

source.listに問題があると思い、下部にsource.listも使用しましたが、結果は変わりませんでした。

deb http://http.debian.net/debian/ stretch main contrib non-free
deb-src http://http.debian.net/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
deb http://http.debian.net/debian/ stretch-updates main contrib non-free
deb-src http://http.debian.net/debian/ stretch-updates main contrib non-free

ベストアンサー1

このソリューションは私の問題を解決しました。

https://askubuntu.com/questions/804246/cant-install-libxi-dev-and-libxmu-dev-on-ubuntu-16-04-because-of-unmet-dependenten

つまりsudo apt install aptitudesudo aptitude install libxi-dev libxmu-dev

aptitude解像度依存性の異なるアルゴリズムがあり、apt受け入れたり拒否したりするためのいくつかのソリューションがあります。

おすすめ記事