
我收到以下錯誤:
無法初始化包資訊
初始化包資訊時出現無法解決的問題。
請針對「update-manager」套件回報此錯誤,並包含以下錯誤訊息:E:來源清單 /etc/apt/sources.list 中第 56 行格式錯誤(URI 解析),E:無法讀取來源清單., E: 無法解析或開啟套件清單或狀態檔案。
我知道問題是來源清單中的第 56 行,但我做了“如何從我的sources.list中刪除格式錯誤的行?“因為它是我的第一個問題的“[重複]”,但即使提出了每個解決方案,問題仍然存在,我還能做什麼?
當我在終端輸入時,gksu gedit /etc/apt/sources.list
我得到:
# deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mx.archive.ubuntu.com/ubuntu/ quantal main restricted
deb-src http://mx.archive.ubuntu.com/ubuntu/ quantal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mx.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
deb-src http://mx.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mx.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://mx.archive.ubuntu.com/ubuntu/ quantal universe
deb http://mx.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://mx.archive.ubuntu.com/ubuntu/ quantal-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mx.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://mx.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mx.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu quantal-security main restricted
deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu quantal partner
# deb-src http://archive.canonical.com/ubuntu quantal partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu quantal main
deb-src socio http://archive.canonical.com/ precisa
deb-src http://extras.ubuntu.com/ubuntu quantal main
顯然我必須說我是新手,所以我會感謝你的幫助。
並感謝 -埃利亞·卡根- 教我如何把'來源.list’這正是我一開始想做的,但我不知道該怎麼做,非常感謝。
答案1
消除最後一行之前的一行:
deb-src socio http://archive.canonical.com/ precisa
看來您是手動編輯的並且犯了錯誤。該行不指示任何特定內容(main
、partner
等),因此我不知道該行應該是什麼。
刪除並儲存檔案後,更新軟體套件來源,例如sudo apt-get update
,或按一下查看在系統更新管理器中。
順便說一句,我不明白更廣泛的如何從我的sources.list中刪除格式錯誤的行?問題不涉及這一點。