
次のエラーが発生します:
パッケージ情報を初期化できませんでした
パッケージ情報の初期化中に解決できない問題が発生しました。
このバグを '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
当然ながら、私はこの分野に関しては初心者ですので、ご協力いただければ幸いです。
そして、感謝します -エリア・ケイガン- 'の付け方を教えるためにソースリスト' まさに最初にやりたかったことだったのですが、やり方がわからなかったんです。本当にありがとうございます。
答え1
取り除く最後の行の前の行:
deb-src socio http://archive.canonical.com/ precisa
手動で編集してミスをしたようです。この行は具体的な内容 ( main
、partner
など) を示していないため、この行が何であるべきかわかりません。
ファイルを削除して保存した後、パッケージソースを更新するかsudo apt-get update
、チェックシステムアップデートマネージャーで。
ところで、より広い意味で不正な行をsources.listから削除するにはどうすればいいですか?質問ではこの点はカバーされていません。