
Ubuntu日本語フォーラム

ログインしていません。
javaをインストールしょうとしたところえらーが発生、
E: ソースリスト /etc/apt/sources.list の 44 行目が不正です (dist parse)
E: パッケージ入手先一覧を読み込めませんでした。
と表示対応が出来ないでいます。
どこに問題があるますか?
オフライン
Ubuntuのバージョンと
$ gedit /etc/apt/sources.list
javaは幾つか候補が有りますがこだわりは有りますか? 機能的に差は無いとおもいます。
オフライン
ubntuは10.04です。
# deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release powerpc (20080703.1)]/ hardy main
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb-src http://archive.ubuntu.com/ubuntu lucid main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb-src http://archive.ubuntu.com/ubuntu lucid-updates main restricted
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb-src http://archive.ubuntu.com/ubuntu lucid universe
deb-src http://archive.ubuntu.com/ubuntu lucid-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-src http://archive.ubuntu.com/ubuntu lucid multiverse
deb-src http://archive.ubuntu.com/ubuntu lucid-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://ports.ubuntu.com/ubuntu-ports/ hardy-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu hardy-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 hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner
deb http://archive.canonical.com/lucid partner
deb http://archive.canonical.com/lucid partner
deb http://archive.canonical.com/lucid partner
deb http://archive.canonical.com/ lucid partner
deb http://archive.canonical.com/ lucid partner
deb http://archive.canonical.com/ lucid partner
deb http://archive.canonical.com/lucid partner
deb http://archive.canonical.com/ lucid partner
deb http://archive.canonical.com/ lucid partner
deb http://java.com/ lucid partner
deb http://archive.canonical.com/ marverick partner
deb http://archive.canonical.com/ marverick partner
deb http://archive.canonical.com/ marverick partner
deb http://ports.ubuntu.com/ubuntu-ports/ lucid main universe restricted multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid main universe restricted multiverse #Added by software-properties
deb http://archive.canonical.com/ marverick partner
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-security universe main multiverse restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-security universe main multiverse restricted
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-updates universe main multiverse restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-updates universe main multiverse restricted
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-proposed universe main multiverse restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-proposed universe main multiverse restricted
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-backports universe main multiverse restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-backports universe main multiverse restricted
deb http://archive.canonical.com/ mar verick partner
deb http://archive.canonical.com/lucid partner
deb http://archive.canonical.com/ lucid partner
こんな感じです。
一応 サンのjavaを入れようとしたのですが。
オフライン
44行目
誤
deb http://archive.canonical.com/lucid partner
正
deb http://archive.canonical.com/ lucid partner
修正するよりは一つだけ残して、重複しているもの全て先頭に半角英数で # をつけてコメントアウトしてください。
marverickの付いた物は全てコメントアウトしてください。
最後から3行目のmar verickも同様です。
オフライン
>deb http://java.com/ lucid partner
大変興味深い1行を見つけてこれが正しいのか確認を取っておりました。
残念ながら確認は取れませんでした。
ただ、もし正しくなければ
$ sudo apt-get update
を行った時、404 file not found が出るはずです。
オフライン
>ありがとうございます
>#は debの前でいいのでしょうか?
はい、そうです。
>入力はどこですればわかりやすいですか
意味が分かりません。
蛇足ですが、システムファイルへの変更は管理者権限が要ります。
Ubuntuでは sudo を使うのが良とされていますのでテキストエディタを管理者権限で開きます。
$ sudo gedit /etc/apt/sources.list
これで変更を保存できます。
私は見落としましたが#7で のんきさんが新に不可思議な記述を発見したみたいです。
オフライン
有難うございました。
エラー解除できました。
次はJAVAのインストールですがんばってみます。
オフライン