CUPSインストールエラー

CUPSインストールエラー

sudo apt-get install cups次のコマンドを使用してCUPSをインストールしようとしましたが、インストールが失敗し、代わりに次のエラーメッセージが表示されます。

sudo apt-get install cups
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:
 cups : Depends: libcups2 (= 2.2.1-8) but 2.2.3-2 is to be installed
        Depends: libcupscgi1 (>= 1.4.2) but it is not going to be installed
        Depends: libcupsmime1 (>= 1.4.0) but it is not going to be installed
        Depends: libcupsppdc1 (>= 1.4.0) but it is not going to be installed
        Depends: cups-core-drivers (>= 2.2.1-8)
        Depends: cups-daemon (>= 2.2.1-8)
        Depends: cups-ppdc
        Recommends: printer-driver-gutenprint but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

メッセージが表示された不満の依存関係をインストールしようとしましたが、まだ変更されていません。私も実行しsudo apt updateて更新して再試行しましたが、同じエラーメッセージが表示されました。オンラインで解決策を見つけて、次の事実を見つけました。 cups:libcups2(= 2.1.3-4)によって異なりますが、インストールには2.1.3-4ubuntu0.2が必要です。、提案されたすべてのことを行いましたが、それらのどれも役に立ちませんでした。

誰でも私を助けてください。

私はKali linux(Debian)を使用しています。 [4.9.0-kali3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux]

事前にありがとう

ベストアンサー1

あなたのsources.list次の行のみを含める必要があります。

deb http://http.kali.org/kali kali-rolling main contrib non-free

Debian リポジトリによってシステムがハングすることがあります。ソースリストを編集するには、次のコマンドを使用します。

echo deb http://http.kali.org/kali kali-rolling main contrib non-free > /etc/apt/sources.list

その後、パッケージをアップグレードし、破損した依存関係を修正してみてください。

apt update ; apt upgrade ; apt dist-upgrade
apt -f install

おすすめ記事