• ベストアンサー

apt-getによるapacheのインストールができません。

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

質問者が選んだベストアンサー

  • ベストアンサー
  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.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

yoidon
質問者

お礼

とても丁寧な解説ありがとうございました。 お礼が遅くなり申し訳ありませんでした。

その他の回答 (1)

  • koozou
  • ベストアンサー率41% (73/176)
回答No.1

apacheのパッケージ名はhttpdです。 # apt-get install httpd とするのが正しいのでは?

yoidon
質問者

お礼

おっしゃるとおりでした。 勉強不足、調査不足を痛感いたしました。 ありがとうございました。 お礼が遅れて申し訳ありませんでした。

関連するQ&A

  • apt-get install apache2

    Debianにapache2をインストールしてみたいのですが KURO-BOX:~# apt-cache search apache apache - Versatile, high-performance HTTP server apache-common - Support files for all Apache webservers apache-dev - Apache webserver development kit ・ ・ パッケージのapache2は存在しないようです。 KURO-BOX:~# apt-cache search apache2      # apache2のapt-getコマンドでのインストールの準備はなされていないのでしょうか?

  • eclipse がインストールできない!

    eclipse を使いたくて、ネットの情報を参考に  apt-get update  apt-get upgrade  apt-get install eclipse-sdk としたのですが、  Reading package lists... Done  Building dependency tree... Done  E: Couldn't find package eclipse-sdk となってインストールできません。 方法はないでしょうか?

  • apt-getについて

    apt-getについて Ubuntuを使い始めたばかりのものです。 UbuntuにGitというソフトウェアをソースからインストールしたいと思っています。 Gitの書籍によると、次のコマンドを実行して、必要なパッケージをすべてインストールするように記載されています。 $ sudo apt-get build-dep git-core また、パッケージをインストールする時に、次のように apt-get(aptitude?) install を利用する場合があると思います。 $ sudo apt-get install mailutils パッケージをインストール場合で、 "apt-get install"とinstallなしの"apt-get"を利用する場合がありますが、 何が違い、どのように使い分けるのでしょうか?

  • finkでwgetをインストールできない

    macかったのでfinkをインストールしたのですが wgetがインストールできません。 Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package wget レポジトリの設定などが別途必要ですか。 linuxをつかっているときはapt-getの設定なんてとくに 意識しなかったのですがfink用の設定を紹介しているサイトがあれば教えてください。

    • 締切済み
    • Mac
  • aptがどうしてもインストールできないです

    皆さんこんにちわ。 本日は、「apt-get」に関して分からない事がありまして、 アドバイスをいただきたく 質問させていただきました。 とあるインストール作業の途中でエラーがでて、 エラー文に表示されていた不足分のツールを、 「apt-get」でダウンロードしようとしました。 すると、 「-bash: apt-get: command not found」と表示されました。 「apt」が入っていないのだと判断し、 googleなどで調べ、 次のようにaptのインストールを試みました。 # yum install apt Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * updates: www.ftp.ne.jp * addons: www.ftp.ne.jp * extras: www.ftp.ne.jp Setting up Install Process Parsing package install arguments No package apt available. Nothing to do しかし、うまく行かないようです。 次にaptの配布サイト(http://ayo.freshrpms.net/)から、 rpmを拾ってきてインストールしようとしたら、 次のように警告は出つつもインストールに成功しますが、 「apt-get」を使おうとするとえらーになってしまいます。 どうしていいかわからないでいます。 「yum install apt」でうまくいかない理由も、 rpmのインストール後に成功しない理由も実は分からないでいます。 周囲にLinuxできる人がいなく、 質問できる人もいなく、 どんな小さなものでも アドバイスなどいただけるようでしたら、とてもありがたいです。 どうぞ宜しくお願い致します。 # rpm -ivh apt-0.5.5cnc6-fr1.src.rpm 1:apt warning: user dude does not exist - using root warning: group dude does not exist - using root warning: user dude does not exist - using root warning: group dude does not exist - using root warning: user dude does not exist - using root warning: group dude does not exist - using root warning: user dude does not exist - using root warning: group dude does not exist - using root warning: user dude does not exist - using root warning: group dude does not exist - using root warning: user dude does not exist - using root97%) warning: group dude does not exist - using root warning: user dude does not exist - using root warning: group dude does not exist - using root ########################################### [100%] warning: user dude does not exist - using root warning: group dude does not exist - using root warning: user dude does not exist - using root warning: group dude does not exist - using root warning: user dude does not exist - using root warning: group dude does not exist - using root # apt-get update -bash: apt-get: command not found

  • apt-getの参照先を CDドライブから root に変更する方法を教えてください。

    Linuxの超初心者です。 REDHAT9.0にapt.rpmをインストールし それを使ってphp-4.4.8とmysql-standard-4.1.22を入れようとしています。 この2つのpackageは 取りあえずrootにDLして (どこに置けばいいかも解らないため)解凍・バイナリ展開済みです。 現在"apt-get"を実行すると、  Reading Package List...Done  Building Dependency Tree ...Done  E: Couldn't find package XXXXX と出ます。 どこの何を どのように書き換えれば参照先を変更できるのでしょうか。 具体的に教えてください。 aptを落とす前に"make install"や "yum install"も試してみましたが 微動だにしてくれませんでした。。 また私が使えるEditerは viだけです。 お手数をかけますが どうぞよろしくお願いします。

  • apt-getでgccインストール

    Turbolinux 10です。 ディストリビューションインストール時に開発環境を入れ忘れてしまったので、apt-getを試みているのですがうまくいきません。 apt-cache search gccとしても、それらしいパッケージが見つからないのです。 Turbolinuxでは、この方法は使えないのでしょうか?

  • centos5 apt-get

    レンタルサーバでcentos5の最小構成で申し込んだら、ライブライが足りず、mysqlがインストール出来ない状況です。 調べてみたところ、apt-getを使用してパッケージをダウンロードすれば可能みたいなのですが、apt-getも使用出来ない(インストールされていない)ので、行き詰っております。 centos5で、aptをソースからダウンロードするといった事は可能なのでしょうか、ご教授お願いします。

  • aptのエラー

    FedoraCore1のサーバーで、aptを使用したアップグレードを行おうとするのですが、エラーが出ます。 ---- # apt-get -y install httpd Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: httpd-devel The following packages will be upgraded httpd httpd-devel 2 upgraded, 0 newly installed, 0 removed and 40 not upgraded. Need to get 1204kB of archives. After unpacking 28.7kB disk space will be freed. Get:1 http://ayo.freshrpms.net fedora/linux/1/i386/updates httpd-devel 2.0.49-1.1 [145kB] Get:2 http://ayo.freshrpms.net fedora/linux/1/i386/updates httpd 2.0.49-1.1 [1059kB] Fetched 1204kB in 11s (107kB/s) apr-util-devel is needed by httpd-devel-2.0.49-1.1 gawk is needed by httpd-2.0.49-1.1 libaprutil-0.so.0 is needed by httpd-2.0.49-1.1 E: Transaction set check failed ----- 上記の、apr-util-devel, gawk は確認したところインストール済み、libaprutil-0.so.0 も $ ls -la libaprutil-0.so.0 lrwxrwxrwx 1 root root 21 5月 8 13:08 libaprutil-0.so.0 -> libaprutil-0.so.0.9.4 ということでちゃんとあるようです。 どうしたらうまくアップグレードできるのでしょう。ご存知でしたら教えてください。

  • apt-get install でのインストール先

    基本的な質問ですが、 apt-get install でインストールしたアプリケーションのインストール先(設定ファイル、ドキュメント、実行ファイルなどそれぞれ)を調べる方法はないでしょうか? (実行ファイルは、たとえば which emacs などとすれば分かる場合がありますが・・・) apt-cache show でパッケージの情報が見れると書いてあったので試しに apt-cache show emacs としたのですが、何も出てきません!