最新のGoogle Chrome Debianをインストールするときに重複ソース警告の問題を解決するには?

最新のGoogle Chrome Debianをインストールするときに重複ソース警告の問題を解決するには?

apt現在、google-chrome-stable を使用して Google Chrome を 53.x から 56.x に更新しています。以前のChromeバージョンで何をすべきかわからなかったので、何もしませんでした。私の/etc/apt/sources.listDebian 8.5

#

deb http://ftp.fi.debian.org/debian/ jessie main
#deb http://ftp.us.debian.org/debian/ jessie main
deb-src http://ftp.fi.debian.org/debian/ jessie main
#deb-src http://ftp.us.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://ftp.fi.debian.org/debian/ jessie-updates main contrib
#deb http://ftp.us.debian.org/debian/ jessie-updates main contrib
deb-src http://ftp.fi.debian.org/debian/ jessie-updates main contrib
#deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib

# jessie backports
deb http://http.debian.net/debian jessie-backports main contrib non-free

# Debian 8 "Jessie"
deb http://httpredir.debian.org/debian/ jessie main contrib

deb http://cran.wu.ac.at/bin/linux/debian jessie-cran3/

この方法apt-get update

Reading package lists... Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems

新しいChromeをrootとしてインストールしました。

# http://askubuntu.com/questions/510056/how-to-install-google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
apt-get update 
apt-get install google-chrome-stable

オペレーティングシステム:Debian 8.5
Linuxカーネル:4.7
ハードウェア:ASUS Zenbook UX303UB

ベストアンサー1

次のコマンド:

sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

google-chrome.list確認し/etc/apt/sources.list.dls /etc/apt/sources.list.d重複したアイテムを削除します。

項目が 1 つしかない場合は、google-chrome.listファイルを確認し、以下の重複 URL をコメントアウトする必要があります。/etc/apt/sources.list.d/google-chrome.list

おすすめ記事