解決Malformed line 1 in source list /etc/apt/sources.list.d/google-chrome.list (type)

昨天我安裝chrome瀏覽器時,最後源出了點問題,導致apt-get update不能使用了,報錯如下:

```neal@ubuntu:~$ apt-get update
E: Malformed line 1 in source list /etc/apt/sources.list.d/google-chrome.list (type)
E: The list of sources could not be read.```

其實解決方法很簡單:

```$sudo rm /etc/apt/sources.list.d/google-chrome.list```

然後就OK了。

當然有時候問題是出在source list /etc/apt/sources.list裏,那麼你就把出問題的那一項用#註釋掉就好了。

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