プロが教えるわが家の防犯対策術!

whiteboxlinuxを利用しています。

apt-getでapacheをインストールしようとしているのですが、下記のエラーがでてインストールできません。
どこが間違っているのでしょうか。
チェックするところなど、教えていただけるとうれしいです。よろしくお願いいたします。

[root@host root]# apt-get install apache
Reading Package Lists... Done
Building Dependency Tree... Done
Package apache has no available version, but exists in the database.
This typically means that the package was mentioned in a dependency and
never uploaded, has been obsoleted or is not available with the contents
of sources.list
However the following packages replace it:
httpd
E: Package apache has no installation candidate

A 回答 (2件)

いきなり、パッケージ名を指定しても、間違っている場合があるので、


ちゃんと検索してから、インストールしましょう。


まずパッケージリストの最新をダウンロードする。
# apt-get update

適当な文字列でパッケージを検索する。
# apt-cache search apache
apache-perl - Versatile, high-performance HTTP server with added Perl support
apache-ssl - Versatile, high-performance HTTP server with SSL support
.......
apache - Versatile, high-performance HTTP server
apache-common - Support files for all Apache webservers
apache-dev - Apache webserver development kit
apache-doc - Apache webserver docs

ほしい物が見つかったら、インストールする
# apt-get install apache apache-common


上記のパッケージ一覧は、Debian/GNU Linux の場合なので、あなたのLinuxではたぶん
httpd などの名前のはずです。

>However the following packages replace it:
>httpd
    • good
    • 0
この回答へのお礼

とても丁寧な解説ありがとうございました。

お礼が遅くなり申し訳ありませんでした。

お礼日時:2004/12/14 01:28

apacheのパッケージ名はhttpdです。



# apt-get install httpd

とするのが正しいのでは?
    • good
    • 0
この回答へのお礼

おっしゃるとおりでした。
勉強不足、調査不足を痛感いたしました。

ありがとうございました。
お礼が遅れて申し訳ありませんでした。

お礼日時:2004/12/14 01:29

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!