Torプロジェクトの後、Debian 8.11にTorをインストールしようとしています。指示する、システムを更新すると、この警告が表示されます。
W: Duplicate sources.list entry http://security.debian.org/ jessie/updates/main amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_jessie_updates_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
これは私の/etc/apt/sources.listです。
deb http://ftp.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb http://ftp.us.debian.org/debian jessie main contrib
deb http://security.debian.org jessie/updates main contrib non-free
deb http://ftp.us.debian.org/debian jessie-updates main
deb https://deb.torproject.org/torproject.org jessie main
deb-src https://deb.torproject.org/torproject.org jessie main
この問題をどのように安全に解決できますか?ソースリストの2行目を削除またはコメントアウトする必要がありますか?
私は何が起こっているのか分かりません。
ベストアンサー1
実際にコメントを付けたり、完全に削除したりできますsources.list
。明確ではない別の重複項目があるため、次のようsources.list
に変更することをお勧めします。
deb http://ftp.us.debian.org/debian jessie main contrib
deb http://security.debian.org jessie/updates main contrib
deb http://ftp.us.debian.org/debian jessie-updates main
deb https://deb.torproject.org/torproject.org jessie main
deb-src https://deb.torproject.org/torproject.org jessie main
(放棄しnon-free
、ftp.debian.org
サポートを放棄しなさいftp.us.debian.org
)。
次のいずれかのコマンドでバックアップコピーを作成し、ファイルを編集できます。
sudo sed -i.bak '1,2d;s/ non-free//' /etc/apt/sources.list
これはになります/etc/apt/sources.list.bak
。