Ubuntuを使っています。aptでMySQLをインストールしたいのですが、


apt-cache search mysql

とやっても、

mysql-common
mysql-client

の2つしか、それぽいのが出てきません。
mysql-server
がいるように思うのですが、ソースからインストールする他ないのでしょうか?

回答の条件
  • 1人2回まで
  • 登録:
  • 終了:2010/02/18 00:53:10
※ 有料アンケート・ポイント付き質問機能は2023年2月28日に終了しました。

回答2件)

id:km1967 No.1

回答回数541ベストアンサー獲得回数40

ポイント35pt

パッケージ情報が古いんじゃないの?

sudo apt-cache gencaches

を実行してから、

apt-cache show mysql-server

と実行してみて。

id:rapuntuleru

回答ありがとうございます。

うーん、変わらず、ですね。。。

2010/02/17 20:52:53
id:mjy No.2

回答回数70ベストアンサー獲得回数22

ポイント35pt

とりあえず http://packages.ubuntu.com/ にパッケージはありますので、

(http://packages.ubuntu.com/karmic/mysql-server-5.1)

こういった所からインストールするのも手です。

(http://appnr.com/ も便利です)

依存するパッケージを先にインストールするのが面倒でしょうが。

apt の問題はよく分かりませんが、 apt-get update などでエラーが出たりはしないのですか?

あるいは、 http://d.hatena.ne.jp/saggie/20091217/p1 こういったケースもあるようなので、レポジトリ

の設定を Synaptics パッケージ・マネージャなどで確認してみて下さい。

id:rapuntuleru

回答ありがとうございます。

すみません。初心者なもので…

↓のようなサイトからインストールするのは、どういった手順を踏めばよいのでしょうか?

http://packages.ubuntu.com/karmic/mysql-server-5.1

2010/02/17 21:50:31
  • id:qnighy
    $ cat /etc/apt/sources.list /etc/apt/sources.list.d/*.list
    を行った結果がわかると解決につながるかも?
  • id:rapuntuleru
    以下のようになりました。

    root@ubuntu-vm:/etc/apt# cat source.list /*.list
    # deb cdrom:[Ubuntu 8.04 _Hardy Heron_ Japanese Remix - Release i386 (20080425)]/ hardy main restricted
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.

    deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy main restricted
    deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy main restricted

    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-updates main restricted
    deb-src http://ubuntutym.u-toyama.ac.jp/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://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy universe
    deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy universe
    deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-updates universe
    deb-src http://ubuntutym.u-toyama.ac.jp/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://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy multiverse
    deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy multiverse
    deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-updates multiverse
    deb-src http://ubuntutym.u-toyama.ac.jp/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://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-backports main restricted universe multiverse
    # deb-src http://ubuntutym.u-toyama.ac.jp/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://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-security main restricted
    deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-security main restricted
    deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-security universe
    deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-security universe
    deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-security multiverse
    deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-security multiverse
    cat: /*.list: No such file or directory
  • id:hseisyu
    apt-get update
    は実行しましたか?
    その後もう一度試みてください。
  • id:rapuntuleru
    コメントありがとうございます。
    何回か試してみましたが、apt-cache searchから、発見できませんでした。。。
  • id:mjy
    > ↓のようなサイトからインストールするのは、どういった手順を踏めばよいのでしょうか?
    >http://packages.ubuntu.com/karmic/mysql-server-5.1

    hardy をお使いのようなので、この場合こっちになります。
    http://packages.ubuntu.com/hardy/mysql-server-5.0
    このページの下に「mysql-server-5.0 のダウンロード」とあり、使用しているアーキテクチャを選ぶと、
    ダウンロードのページに移動します。
    このようなメッセージがあります。

    > Ubuntu を使用している場合、パッケージのダウンロードやインストールはこのウェブサイトから手動で行うのではなく、aptitude や synaptic のようなパッケージマネージャを用いて行うことを強くお勧めします。
    > 次のような行を /etc/apt/sources.list に追加して、以下の一覧にあるミラーのうち使いたいものを利用可能にすべきでしょう。
    > deb http://security.ubuntu.com/ubuntu hardy-security main

    基本的には、このメッセージに従うべきです。
    手動でインストールするならば、このページから deb パッケージをダウンロードし、
    dpkg (http://ja.wikipedia.org/wiki/Dpkg) などのツールでインストールすることになります。
    dpkg などは、apt 系のコマンドと違って、依存するパッケージを自動でインストールしたりはしませんので、
    そこらへんも手動になります。

    今後も不便ですので、やはり apt の不具合を直した方が良いでしょうね。

この質問への反応(ブックマークコメント)

「あの人に答えてほしい」「この質問はあの人が答えられそう」というときに、回答リクエストを送ってみてましょう。

これ以上回答リクエストを送信することはできません。制限について

回答リクエストを送信したユーザーはいません