在源列表 /etc/apt/sources.list.d/google-chrome.list 中第 1 行有误 (类型) E: 无法读取源列表。

来源:互联网 发布:数控切割机床软件 编辑:程序博客网 时间:2024/05/22 05:11

遇到这个问题,google一下解决了,以下是原文:

在bash中敲击

sudo apt-get update
出现了错误如下:

在源列表 /etc/apt/sources.list.d/google-chrome.list 中第 1 行有误 (类型)



解决方法:
1>sudo vim /etc/apt/sources.list.d/google-chrome.list 打开文件

2>删除文件中的所有字符

3>写入内容:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
4>sudo apt-get update

5>应该是不会再出现错误提示了。


转载出处:

http://www.infocool.net/kb/Other/201611/229642.html

0 0