無法更新

無法更新

當我輸入sudo apt-get update命令列時,我得到以下資訊:

E: Type 'new' is not known on line 67 in source list /etc/apt/sources.list
E: The list of sources could not be read.

在看到此錯誤行之前,我曾嘗試按照以下步驟安裝 Spotify(https://www.spotify.com/us/download/previews/),添加deb http://repository.spotify.com stable non-free到我的source.list(通過“軟體和更新”選項卡、“其他軟體”和“添加...”)Failed to load the package list

E:Type 'new' is not known on line 67 in source list /etc/apt/sources.list, E:The list of sources could not be read
E:The package lists or status file could not be parsed or opened."

我正在運行 Ubuntu 14.04.1 LTS。

謝謝。

答案1

您需要使用 gedit 等文字編輯器編輯檔案:/etc/apt/sources.list,並刪除第 67 行中的錯誤來源並儲存檔案。

然後運行以下命令:

sudo apt-get update

答案2

您下載的檔案的 HTML 程式碼有一些錯誤,這可能是錯誤「無法讀取來源清單」的原因。

因此,請刪除該檔案或資料夾,然後使用「受信任的」進行嘗試。

相關內容