我输入:
$ sudo apt-get update
但是 Google-Chrome InRelease 无法运行!
$ sudo apt-get update
Hit:1 http://opensource.xtdv.net/ubuntu xenial InRelease
Hit:2 http://opensource.xtdv.net/ubuntu xenial-updates InRelease
Hit:3 http://opensource.xtdv.net/ubuntu xenial-backports InRelease
Hit:4 http://opensource.xtdv.net/ubuntu xenial-security InRelease
0% [Connecting to dl.google.com (2404:6800:4005:803::200e)]
三分钟后,我看到:
$ sudo apt-get update
Hit:1 http://opensource.xtdv.net/ubuntu xenial InRelease
Hit:2 http://opensource.xtdv.net/ubuntu xenial-updates InRelease
Hit:3 http://opensource.xtdv.net/ubuntu xenial-backports InRelease
Hit:4 http://opensource.xtdv.net/ubuntu xenial-security InRelease
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Reading package lists... Done
该/etc/apt/sources.list.d/chrome-remote-desktop.list
文件的内容如下:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
我不能只删除更新列表中的第 5 个 Hit 吗?我试过了,但我只能删除 5 和 6!
答案1
为了使 Google Chrome 更新过程正常运行,您必须重新配置 Google 软件源。为此,请打开终端并执行以下命令:
sudo rm /etc/apt/sources.list.d/chrome-remote-desktop.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update
sudo apt upgrade
如果更新过程中仍然遇到问题,请检查文件/etc/apt/sources.list
并通过执行删除可能存在的任何 Google 条目sudo nano /etc/apt/sources.list
。