Debian Jessieのデフォルトソースリスト(不足していない依存関係)

Debian Jessieのデフォルトソースリスト(不足していない依存関係)

オペレーティングシステムとハードウェア:Lenovo G50-45のDebian Jessie x64cinnamon

私は友達のラップトップに新しいDebian Jessie(Debian 8.7.1 x86_64 Cinnamon)をインストールしました。カーネルといくつかの項目をアップグレードする必要がありました。 #debian IRCチャットの一人が私に次のステップを教えてくれました。これら3つのソフトウェアパッケージを作成するには、Wi-Fiが正常に動作します。

linux-image-4.8.0-0.bpo.2-amd64_4.8.15-2~bpo8+2_amd64.deb
linux-base_4.3~bpo8+1_all.deb
firmwqare-atheros_20161130-2~bpo8+1_all.deb

今私が経験している問題は、何もインストールできないことです。

私がインストールしようとしているすべてのプログラムは、DosBoxのような単純なプログラムであっても満たされていない依存関係に関するエラーを表示します。

この問題の原因と解決策は何ですか?

ターミナル出力ログ:

$ sudo apt-get install wine

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package wine

$ sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo: add-apt-repository: command not found

$ sudo apt-get update
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie InRelease
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie Release.gpg
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie Release
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/contrib amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/main amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/non-free amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/contrib Translation-en_US
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/contrib Translation-en
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/main Translation-en_US
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/main Translation-en
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/non-free Translation-en_US
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:05] jessie/non-free Translation-en
Reading package lists... Done

$ sudo apt-get install software-properties-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package software-properties-common

$ sudo apt-get install dosbox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package dosbox

$ sudo apt-get install python-software-properties
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

ベストアンサー1

その理由は、ソフトウェアソースの内容が正しくないためです。これを解決するには、次のようにします。

  1. 不明な場合は、次のようにして、必要なエディタを使用してソースコードを編集しますnano

    sudo nano /etc/apt/sources.list
    
  2. #すべてのCD行をコメントアウト(使用)します。

  3. 確認してくださいCDに加えて;

  4. 追加の質問がない場合は、以下のリスト全体をコピーして貼り付けてください。

    deb http://httpredir.debian.org/debian jessie main contrib non-free
    deb-src http://httpredir.debian.org/debian jessie main contrib non-free
    
    deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
    deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free
    
    deb http://security.debian.org/ jessie/updates main contrib non-free
    deb-src http://security.debian.org/ jessie/updates main contrib non-free
    
  5. キャッシュの更新:

    sudo apt-get update
    
  6. 必要なものは何でもインストールしてください;)

いくつかの点を考慮するのが賢明かもしれません。つまり、この回答では、次の2つの点を考慮してください。

  • ソフトウェアソースが必要ない場合は、deb-srcこの行を省略できます。これは、現在ソフトウェアを直接コンパイルする必要がない限り、この行を必要としませんが、害はありません。

  • 純粋なGNUフリーソフトウェアのみを使用する予定の場合は、すべてのnon-free行からこれを省略できます。不明な場合や、Linuxを初めて使用する場合は、いくつかのnon-freeソフトウェアが欲しいかもしれませんが...

おすすめ記事