無法在 15.10 上執行軟體更新程式

無法在 15.10 上執行軟體更新程式

我啟動了 Ubuntu 15.10,但無法開啟軟體更新程式應用程式。我不斷收到以下錯誤

SystemError: E:Malformed line 55 in source list /etc/apt/sources.list (dist parse)

我嘗試清除應用程式並重新安裝,但仍然出現相同的錯誤。有什麼建議麼?

答案1

執行以下操作來重新建立您的sources.list.打開終端機 () 並輸入:

sudo su

然後透過將以下區塊複製並貼上到終端中並按回車一次來重新建立來源清單。

cat > /etc/apt/sources.list << EOF
deb http://archive.ubuntu.com/ubuntu wily main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu wily main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu wily-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu wily-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu wily-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu wily-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu wily-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu wily-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu wily partner
deb-src http://archive.canonical.com/ubuntu wily partner
EOF

之後,只需鍵入exit即可返回正常使用者模式。然後一切都應該正常運作。

相關內容