
Ubuntu日本語フォーラム

ログインしていません。
いつもお世話になっています。
Synapticパッケージ・メネージャを起動すると次のエラーが発生するようになりました。
思い当たるのは、
1 Kubuntuをインストールしたこと。
2 Ubuntuで、日本語環境セットアップヘルパを使っていくつかパッケージをインストールしたこと。
です。2の直後にエラーが発生したような気がします。
このエラーは、どういう意味で、どう対処すればよいのでしょうか?
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)
アドバイスをお願いします。
オフライン
balkan さん
見た限り https://forums.ubuntulinux.jp/viewtopic.php?pid=29540 と全く一緒の現象だと思いますが、
まずは、端末を開き、
for file in /etc/apt/sources.list /etc/apt/sources.list.d/*.list; do echo ファイル:$file; cat $file; echo; done
と
grep -h '^[^#]' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | sort
の結果をそれぞれここに貼り付けて下さい。
最後の編集者: STGSAGWAN (2009-05-05 01:46:46)
お返事ありがとうございます。
さっそくコマンドを実行してみました。
$ for file in /etc/apt/sources.list /etc/apt/sources.list.d/*.list; do echo ファイル:$file; cat $file; echo; done
ファイル:/etc/apt/sources.list
# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 Japanese Remix (20090424.1)]/ jaunty 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/ jaunty-backports main restricted universe multiverse
# deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty-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 jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty 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/
$ grep -h '^[^#]' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | sort
deb http://archive.ubuntulinux.jp/ubuntu jaunty main
deb http://archive.ubuntulinux.jp/ubuntu-ja jaunty-non-free/
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty universe
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb http://security.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
と表示されましたがどうでしょうか?
オフライン
balkan さん
予想通りです。
以前私が書いた修正方法
https://forums.ubuntulinux.jp/viewtopic.php?pid=29538#p29538
の一部を抜粋しますので、今回もそれと同じ修正すれば直ります。
修正の仕方自体でつまづく点・分からない点があれば、また聞いてください。
STGSAGWAN による投稿:
/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
修正方法は以上です。
それにしても同じ現象だったということが気になります。
balkan による投稿:
2 Ubuntuで、日本語環境セットアップヘルパを使っていくつかパッケージをインストールしたこと。
です。2の直後にエラーが発生したような気がします。
私の環境でも再現するか一度試してみます。
記載のとおりに修正したら、エラーは出なくなりました。
どうもありがとうございました。
オフライン
balkan さん、よかったですね。
さて、
STGSAGWAN による投稿:
それにしても同じ現象だったということが気になります。
balkan による投稿:
2 Ubuntuで、日本語環境セットアップヘルパを使っていくつかパッケージをインストールしたこと。
です。2の直後にエラーが発生したような気がします。私の環境でも再現するか一度試してみます。
試してみたら、100%再現します。
9.04では、[日本語環境セットアップヘルパ]から呼ばれている software-properties-gtk の -e オプションが期待通りに動いてないです。
※8.04, 8.10ではsoftware-properties-gtk -e は正常に動作しています。
launchpadに不具合登録してきました。
[Jaunty] "software-properties-gtk -e" brings duplicated components in /etc/apt/sources.list
https://bugs.launchpad.net/ubuntu/+bug/372224
ただし、今回の現象はあくまで「警告」メッセージが出るだけであり、相変わらずパッケージのインストール・削除は問題なく可能です。
最後の編集者: STGSAGWAN (2009-05-05 23:40:37)
(限りなくオフトピックなんですが)STGSAGWANさんへ。
LP側の投稿で気付いたのですが、たぶんリポジトリとして"ja".archive.ubuntu.comを指定されてるようです。それCanonicalのルートサーバーなので、"jp".archive.ubuntu.comを使って頂けると助かります……。
オフライン
hito による投稿:
(限りなくオフトピックなんですが)STGSAGWANさんへ。
LP側の投稿で気付いたのですが、たぶんリポジトリとして"ja".archive.ubuntu.comを指定されてるようです。それCanonicalのルートサーバーなので、"jp".archive.ubuntu.comを使って頂けると助かります……。
実験用のテキスト加工をしているときに、"jp".archive.ubuntu.comを 一旦 archive.ubuntu.comに直した後に、次に誤って"ja".archive.ubuntu.com にしてしまいました。
普段は"jp"ですので大丈夫です・・・。
最後の編集者: STGSAGWAN (2009-05-06 00:31:19)