ubuntu-如何解決錯誤-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release

ubuntu更新(sudo apt-get update)時,
出現錯誤:
“Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry ‘main/binary-i386/Packages’ in Release file (Wrong sources.list entry or malformed file)”

解決方式:
1,打開 /etc/apt/sources.list.d/google-chrome.list 文件(用vim或者gedit等均可):
sudo vim /etc/apt/sources.list.d/google-chrome.list

2,修改文件內容:
原來是:
deb http://dl.google.com/linux/chrome/deb/ stable main
改爲:
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

3,再次執行 更新命令即可通過了
sudo apt-get update

參考:
http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章