
Ubuntu日本語フォーラム

ログインしていません。
8.04ですが、gnu系のコンパイラをインストールしようとしたら、
http://jp.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.24-23.46_i386.deb の取得に失敗しました 404 Not Found
となり、インストールできません。
sudo apt-get install gfortran
sudo apt-get install g++
sudo aptitude install gfortran
sudo aptitude install g++
のいずれも同じでした。どのような対処方法があるでしょうか。
付帯的な質問ですが、apt-getとaptitudeの違いは何でしょうか。レポジトリが異なるのでしょうか。
オフライン
sudo apt-get updateを最初に行って、インデックスを更新してください。
インデックスがかなり古いものになったままのようです。
また、apt-get と aptitude は同じ作業(パッケージの追加・削除などなど)をする別のソフトウェアです。ただし、細かなところで管理方法が違ってくるので、どちらか片方に縛る方がいいでしょう。
オフライン
回答有難うございました。
sudo apt-get updateを実行してから同様のコマンドを入力したのですが、経過は同じでした。
私はこのコマンドをまじないのように割と頻繁に入力しております。
依然、問題が継続しております。
オフライン
(1)下記内容をここにアップしてください。
アプリケーションー>アクセサリー>端末 起動から
cat /etc/apt/sources.list
(2)リポジトリに目的のパッケージがあるか下記の方法で確認してください。
システムー>システム管理ー>synaptic
検索ー>g++ ー>OK
検索結果が下段の窓にパッケージ名として表示されますので有るか無いか
確認してください。
この結果で良いアドバイスが得られると思います。
最後の編集者: のんき (2009-04-03 17:38:42)
オフライン
回答有難うございます。また、こちらの作業が遅れて済みません。
(1)の結果です。
#deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1)]/ hardy 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/ hardy main restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ hardy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://jp.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ hardy-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 http://jp.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ hardy universe
deb http://jp.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ hardy-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/ hardy multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ hardy-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/ hardy-backports main restricted universe multiverse
# deb-src http://jp.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://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
(2)の結果ですが、操作を正確に書きますと、
システムー>システム管理ー>synaptic
検索ー>g++ ー>検索をクリック
”検索結果が右段上部付近の窓にパッケージ名として表示される” ということでしょうか。
g++, gfortranで試しましたが表示されます。gfortranではver.4.1なども出てきて、対応物がこまごまとあるみたいです。
以上、よろしくお願いします。
オフライン
2の結果はこれで良いんでしょうか?
linux-libc-dev_2.6.24-23.46_i386.debをダウンロードしようとしていますが、ダウンロード先にそのバージョンは存在していないです。
linux-libc-dev_2.6.24-23.48_i386.debになっています。
#2のご指摘で $ sudo apt-get update を行ってもダメと言う事はシステムにインデックスが新しいものに更新されない障害があるみたいですね。
8.04のバージョンはgfortran (4:4.2.3-1ubuntu3) もしくはgfortran (4:4.2.3-1ubuntu6) です。
なぜ更新されないのかが不思議ですが システム->システム管理-> ソフトウェア.ソースの設定はどうでしょうか。
「ubuntuのソフトウェア」タブのインターネットからダウンロードのページにチェックマークは付いているでしょうか。
関係なかったらすみません。
オフライン