
Ubuntu日本語フォーラム

ログインしていません。
お世話になります。
環境:WindowsXPとUbuntuのデュアルブートで8.10から9.04に昨日、アップグレードしました。その際、途中で3時間以上ストップしたままだったので、一旦キャンセルして、再実施しました。その後、何回かSynapticパッケージ・マネージャを開いたのですが、今日、下記エラーメッセージが出ました。
***
W: Duplicate sources.list entry http://jp.archive.ubuntu.com jaunty/universe Packages
(/var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_jaunty_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://jp.archive.ubuntu.com jaunty/universe Translation-ja
(/var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_jaunty_universe_i18n_Translation-ja)
W: Duplicate sources.list entry http://jp.archive.ubuntu.com jaunty/multiverse Packages
(/var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_jaunty_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://jp.archive.ubuntu.com jaunty/multiverse Translation-ja
(/var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_jaunty_multiverse_i18n_Translation-ja)
W: Duplicate sources.list entry http://jp.archive.ubuntu.com jaunty-updates/universe Packages
(/var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_jaunty-updates_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://jp.archive.ubuntu.com jaunty-updates/multiverse Packages
(/var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_jaunty-updates_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com jaunty-security/universe Packages
(/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_jaunty-security_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com jaunty-security/multiverse Packages
(/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_jaunty-security_multiverse_binary-i386_Packages)
***
/var/lib/apt/lists/には上記ファイルがありますが、重複はしていません。
https://forums.ubuntulinux.jp/viewtopic.php?id=2149によると
/etc/apt/sources.list
/etc/apt/sources.list.d/ubuntu-ja.list
に問題があるようなのですが、よく分かりません。どうすればいいか教えてください。なお、「コメントアウト」とはどうすることでしょうか?よろしくお願いします。
ファイル: /etc/apt/sources.list
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty-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://jp.archive.ubuntu.com/ubuntu/ jaunty universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty universe
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty-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://jp.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://jp.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://jp.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe 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 intrepid partner
# deb-src http://archive.canonical.com/ubuntu intrepid partner
deb http://security.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse
ファイル: /etc/apt/sources.list.d/ubuntu-ja.list
## Ubuntu Japanese LoCo Team's 3rd party repository for Ubuntu 9.04
## Please report any bug on https://bugs.launchpad.net/ubuntu-jp-improvement
deb http://archive.ubuntulinux.jp/ubuntu jaunty main
deb http://archive.ubuntulinux.jp/ubuntu-ja jaunty-non-free/
オフライン
masayukiさん
masayuki による投稿:
「コメントアウト」とはどうすることでしょうか?
この場合に限っては、不要な行の行頭に#を付与することが「コメントアウト」になります。
Wikipediaの説明「コメントアウト」
それはさておき本題です。
masayuki による投稿:
/etc/apt/sources.list
/etc/apt/sources.list.d/ubuntu-ja.list
に問題があるようなのですが、よく分かりません。どうすればいいか教えてください。
masayukiさんの /etc/apt/sources.list には重複がありますので、以下のように修正すれば直ります。
ソフトウェア・ソースの画面から修正するのは無理っぽいので、テキストエディタでファイルを直接編集するしかないと思います。
以下の枠内が、修正すべき箇所です。
(誤) deb http://jp.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
(正) deb http://jp.archive.ubuntu.com/ubuntu/ jaunty main restricted
(誤) deb http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
(正) deb http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
(誤) deb http://security.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
(正) deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
-----
なお、ubuntu-ja.listに問題はないです。
sources.list と ubuntu-ja.list の間には重複はないです
実際に、masayukiさんの sources.list と ubuntu-ja.list をライブCDで立ち上げたUbuntu 9.04に配置して試してみましたところ、投稿#1と同じメッセージがでます。
ただ、不思議な事に、Synapticパッケージ・マネージャー上ではそのようなメッセージのダイアログは表示されず、端末から $ sudo apt-get update を実行した時にメッセージが出ました。
そして、上記の修正を行うと直る事も確認しています。
今回何故このような状態になってしまったのか、私には理由が分かりません。
-----
ここで、「重複」という意味合いについて、もう少し詳しく説明します。
まず、main restricted universe multiverseのように複数連ねる記法は正しいですが、今の状態だと行レベルの重複はなくとも、論理的な重複が発生しています。
具体例で言うなら、
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
ならば、数行下に
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty universe
という行がありますね。
この場合、universe が重複しています。
-----
以下は、上記の結論を導くまでの細かい過程なので、興味がなければスルーしてください。
まず、9.04をライブCDで立ち上げ、ソフトウェア・ソースでCD-ROMのチェックをOFFにした状態の /etc/apt/sources.list
と
問題のファイル(sources.list.ng) の両者をテキスト比較してみました。
視覚的な比較がし易いように、両者のファイルからは、#で始まるコメント行を除外し、ソートをかけています。
問題のファイルに対しては、次の変換もかけています。
・jp.archive.ubuntu.com を archive.ubuntu.com に変換
・ubuntu/ というURL末尾を ubuntu に変換
cd /etc/apt grep '^[^#]' sources.list \ | sort > /tmp/sources.list grep '^[^#]' sources.list.ng \ | sed -e 's/jp.//g' \ | sed -e 's#ubuntu/#ubuntu#g' \ | sort > /tmp/sources.list.ng diff -U 0 /tmp/sources.list /tmp/sources.list.ng
実行結果:
--- /tmp/sources.list 2009-04-25 18:14:23.517843898 +0000
+++ /tmp/sources.list.ng 2009-04-25 18:14:23.666294701 +0000
@@ -1 +1 @@
-deb http://archive.ubuntu.com/ubuntu jaunty main restricted
+deb http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
@@ -4 +4 @@
-deb http://archive.ubuntu.com/ubuntu jaunty-updates main restricted
+deb http://archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
@@ -7 +7 @@
-deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
+deb http://security.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
- と + がついている行が差異です。
最後の編集者: STGSAGWAN (2009-04-26 04:19:32)
STGSAGWAN さん、
詳しい解説をしていただき有難うございました。訂正後、Synapticパッケージ・マネージャを開いても、再現はありませんでした。
Windows95が出て以来のWindowsユーザーでめったにDOS画面をひらくこともなく、PCを使ってきました。Windowsでは「ブラックボックス」にかくれていたもろもろがUbuntuではエラーメッセージとして出てくるようで大変新鮮です。とはいえ、サイトやこのフォーラムを探し回っても対処法を見つけられないこともおおく、皆さんのお世話になりますがよろしくお願いします。WubiでUbuntuを試したときにこのフォーラムを知らなかったらUbuntuを使いはじめることはなかったと思います。
オフライン
わたしもhardyからのアップグレードで同様の症状が出ました。
リストを見て重複を探すのが面倒くさいので他の方法にしました。
解決方法はSynapticを開いて設定->リポジトリでソフトウエア・ソースを開きUbuntuのソフトウエア、サードパーティのソフトウエアのタブで全部チェックをはずして閉じるを押して、
再度、設定->リポジトリでソフトウエア・ソースを開きチェックを戻すです。こうすると一旦すべてコメントアウトされて必要な物が重複なく再設定されます。
初心者の方は、最初にチェックを外すときどこにチェックが入っていたか記録していた方がいいかもです。
オフライン