无法安装 Chrome

无法安装 Chrome

我一直在电脑上使用 Chrome,今天遇到了一些问题,所以我决定卸载并重新安装该软件。我现在陷入困境,因为我无法再次安装 Chrome。我从终端得到这个结果;我使用以下 4 个命令:

$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
$ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
$ sudo apt-get update && sudo apt-get dist-upgrade
E: Malformed entry 4 in list file /etc/apt/sources.list.d/google-chrome.list (URI parse)
E: The list of sources could not be read.

$ sudo apt-get install google-chrome-stable
E: Malformed entry 4 in list file /etc/apt/sources.list.d/google-chrome.list (URI parse)
E: The list of sources could not be read.
E: Malformed entry 4 in list file /etc/apt/sources.list.d/google-chrome.list (URI parse)
E: The list of sources could not be read.

见下文:

图像

/etc/apt/sources.list.d/有 2 个 chorme 文件

进入google-chorme.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
deb <a class=vglnk href=http://dl.google.com/linux/chrome/deb/ rel=nofollow><span>http</span><span>://</span><span>dl</span><span>.</span><span>google</span><span>.</span><span>com</span><span>/</span><span>linux</span><span>/</span><span>chrome</span><span>/</span><span>deb</span><span>/</span></a> stable main
deb <a class=vglnk href=http://dl.google.com/linux/chrome/deb/ rel=nofollow><span>http</span><span>://</span><span>dl</span><span>.</span><span>google</span><span>.</span><span>com</span><span>/</span><span>linux</span><span>/</span><span>chrome</span><span>/</span><span>deb</span><span>/</span></a> stable main
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://dl.google.com/linux/chrome/deb/ stable main
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ xenial stable main
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ xenial stable main

进入google-chrome.list.save

### 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

答案1

您忘记添加发布代号。

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

答案2

  1. /etc/apt/sources.list.d/google-chorme.list名称拼写错误,且有大量虚假或重复内容;删除它。如果拼写错误只出现在您的问题中,而不是实际文件名中,则出于其他原因,请将其删除。

  2. /etc/apt/sources.list.d/google-chrome.list.save应该是一种备份google-chrome.list,但是因为我刚刚建议删除后者,并且即将建议从头开始,所以我们也删除这个。

  3. 执行以下任一 Chrome 安装程序:如何安装 Google Chrome”。我特别推荐获得第二多票数的答案; 这第三仅在命令行上执行基本相同的操作。

相关内容