如何修復 ubuntu

如何修復 ubuntu
W: Failed to fetch cdrom://Ubuntu 10.04.4 LTS _Lucid Lynx_ - Release i386 (20120214.2)/dists/lucid/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 10.04.4 LTS _Lucid Lynx_ - Release i386 (20120214.2)/dists/lucid/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

答案1

這描述如何使用圖形介面修復 CD-ROM 問題:由於缺少 CDROM,無法下載存儲庫信息

這是命令列版本:

編輯你的/etc/apt/sources.list.你(可能)會發現類似的行

deb cdrom:[Ubuntu 10.04 ...

在那裡。要么#在每個這樣的行的開頭添加一個:

# deb cdrom:[Ubuntu 10.04 ...

或完全刪除這些行。

$ sudo apt-get update

然後應該可以工作。


另請注意,不再支援 lucid。您將不會再獲得任何安全性更新。我建議您升級到當前版本,例如 14.04 trusty。

如果你還想使用 lucid 也可以。但您必須更改/etc/apt/sources.list指向的所有條目http://old-releases.ubuntu.com/ubuntu/:

/etc/apt/sources.list 更改以下行

deb http://archive.ubuntu.com/ubuntu/ ...

http://old-releases.ubuntu.com/ubuntu/

相關內容