質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

PowerShell

Windows PowerShellはコマンドラインインターフェースであり、システム管理を含むWindowsタスク自動化のためのスクリプト言語です。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

解決済

1回答

837閲覧

ドットインストールのコマンド ./run.sh で CentOS6 に MySQL5.6 がインストール出来ない

masaki01780504

総合スコア1

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

PowerShell

Windows PowerShellはコマンドラインインターフェースであり、システム管理を含むWindowsタスク自動化のためのスクリプト言語です。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

0グッド

0クリップ

投稿2020/05/22 11:45

ドットインストールのレッスンを見ながらローカル開発環境を構築しています。
下記ドットインストールのコマンド ./run.sh にて
MySQLがインストール出来ません。
そのためMySQLだけでもyumコマンドでインストール出来ないかと試みています。

おわかりになる方いらっしゃいましたらご教示願います。


<開発環境>
Windows10
VirtualBox-6.1.4-136177-Win
PowerShell-6.2.4-win-x64
putty-64bit-0.73-installer
vagrant_2.2.7_x86_64


[vagrant@localhost ~]$ rpm -qa | grep mysql php-mysqlnd-5.6.40-21.el6.remi.x86_64 mysql-community-release-el6-5.noarch [vagrant@localhost ~]$ [vagrant@localhost ~]$ yum info mysql-community-server Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * epel: ftp.iij.ad.jp * extras: ftp-srv2.kddilabs.jp * remi-safe: ftp.riken.jp * updates: ftp-srv2.kddilabs.jp Available Packages Name : mysql-community-server Arch : i686 Version : 5.6.42 Release : 2.el6 Size : 54 M Repo : mysql56-community Summary : A very fast and reliable SQL database server URL : http://www.mysql.com/ License : Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights : reserved. Under GPLv2 license as shown in the Description field. Description : The MySQL(TM) software delivers a very fast, multi-threaded, : multi-user, and robust SQL (Structured Query Language) database : server. MySQL Server is intended for mission-critical, heavy-load : production systems as well as for embedding into mass-deployed : software. MySQL is a trademark of Oracle and/or its affiliates : : The MySQL software has Dual Licensing, which means you can use the : MySQL software free of charge under the GNU General Public License : (http://www.gnu.org/licenses/). You can also purchase commercial : MySQL licenses from Oracle and/or its affiliates if you do not : wish to be bound by the terms of the GPL. See the chapter : "Licensing and Support" in the manual for further info. : : The MySQL web site (http://www.mysql.com/) provides the latest : news and information about the MySQL software. Also please see : the documentation and the manual for more information. : : This package includes the MySQL server binary as well as related : utilities to run and administer a MySQL server. Name : mysql-community-server Arch : x86_64 Version : 5.6.48 Release : 2.el6 Size : 62 M Repo : mysql56-community Summary : A very fast and reliable SQL database server URL : http://www.mysql.com/ License : Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights : reserved. Under GPLv2 license as shown in the Description field. Description : The MySQL(TM) software delivers a very fast, multi-threaded, : multi-user, and robust SQL (Structured Query Language) database : server. MySQL Server is intended for mission-critical, heavy-load : production systems as well as for embedding into mass-deployed : software. MySQL is a trademark of Oracle and/or its affiliates : : The MySQL software has Dual Licensing, which means you can use the : MySQL software free of charge under the GNU General Public License : (http://www.gnu.org/licenses/). You can also purchase commercial : MySQL licenses from Oracle and/or its affiliates if you do not : wish to be bound by the terms of the GPL. See the chapter : "Licensing and Support" in the manual for further info. : : The MySQL web site (http://www.mysql.com/) provides the latest : news and information about the MySQL software. Also please see : the documentation and the manual for more information. : : This package includes the MySQL server binary as well as related : utilities to run and administer a MySQL server. [vagrant@localhost ~]$ sudo yum -y install mysql-community-server Loaded plugins: fastestmirror Setting up Install Process Determining fastest mirrors epel/metalink | 7.4 kB 00:00 * base: ftp-srv2.kddilabs.jp * epel: epel.dionipe.id * extras: ftp-srv2.kddilabs.jp * remi-safe: ftp.riken.jp * updates: ftp-srv2.kddilabs.jp base | 3.7 kB 00:00 base/primary_db | 4.7 MB 00:05 epel | 4.7 kB 00:00 epel/primary_db | 6.1 MB 00:04 extras | 3.4 kB 00:00 extras/primary_db | 29 kB 00:00 mysql-connectors-community | 2.5 kB 00:00 mysql-connectors-community/primary_db | 49 kB 00:00 mysql-tools-community | 2.5 kB 00:00 mysql-tools-community/primary_db | 57 kB 00:00 mysql56-community | 2.5 kB 00:00 mysql56-community/primary_db | 290 kB 00:00 remi-safe | 3.0 kB 00:00 remi-safe/primary_db | 1.2 MB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 9.9 MB 00:03 Resolving Dependencies --> Running transaction check ---> Package mysql-community-server.x86_64 0:5.6.48-2.el6 will be installed --> Processing Dependency: mysql-community-common(x86-64) = 5.6.48-2.el6 for package: mysql-community-server-5.6.48-2.el6.x86_64 --> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.48-2.el6.x86_64 --> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.48-2.el6.x86_64 --> Processing Dependency: libnuma.so.1(libnuma_1.2)(64bit) for package: mysql-community-server-5.6.48-2.el6.x86_64 --> Processing Dependency: libnuma.so.1(libnuma_1.1)(64bit) for package: mysql-community-server-5.6.48-2.el6.x86_64 --> Processing Dependency: libnuma.so.1()(64bit) for package: mysql-community-server-5.6.48-2.el6.x86_64 --> Running transaction check ---> Package mysql-community-client.x86_64 0:5.6.48-2.el6 will be installed --> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.48-2.el6.x86_64 ---> Package mysql-community-common.x86_64 0:5.6.48-2.el6 will be installed ---> Package numactl.x86_64 0:2.0.9-2.el6 will be installed ---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed --> Running transaction check ---> Package mysql-community-libs.x86_64 0:5.6.48-2.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: mysql-community-server x86_64 5.6.48-2.el6 mysql56-community 62 M Installing for dependencies: mysql-community-client x86_64 5.6.48-2.el6 mysql56-community 20 M mysql-community-common x86_64 5.6.48-2.el6 mysql56-community 341 k mysql-community-libs x86_64 5.6.48-2.el6 mysql56-community 2.2 M numactl x86_64 2.0.9-2.el6 base 74 k perl-DBI x86_64 1.609-4.el6 base 705 k Transaction Summary ================================================================================ Install 6 Package(s) Total download size: 86 M Installed size: 353 M Downloading Packages: (1/6): mysql-community-client-5.6.48-2.el6.x86_64.rpm | 20 MB 00:07 http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-client-5.6.48-2.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=mysql56-community clean metadata Trying other mirror. (2/6): mysql-community-common-5.6.48-2.el6.x86_64.rpm | 341 kB 00:00 (3/6): mysql-community-libs-5.6.48-2.el6.x86_64.rpm | 2.2 MB 00:00 http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-libs-5.6.48-2.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=mysql56-community clean metadata Trying other mirror. (4/6): mysql-community-server-5.6.48-2.el6.x86_64.rpm | 62 MB 00:18 http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-server-5.6.48-2.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=mysql56-community clean metadata Trying other mirror. (5/6): numactl-2.0.9-2.el6.x86_64.rpm | 74 kB 00:00 (6/6): perl-DBI-1.609-4.el6.x86_64.rpm | 705 kB 00:00 Error Downloading Packages: mysql-community-libs-5.6.48-2.el6.x86_64: failure: mysql-community-libs-5.6.48-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try. mysql-community-client-5.6.48-2.el6.x86_64: failure: mysql-community-client-5.6.48-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try. mysql-community-server-5.6.48-2.el6.x86_64: failure: mysql-community-server-5.6.48-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try. [vagrant@localhost ~]$

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

ダウンロードしたパッケージファイルがおかしいようです。
まずはエラーログに書かれている通りmetadataのcleanを実施し、再度インストールしてみてください。
以下はsudoで実行すること。

bash

1yum --enablerepo=mysql56-community clean metadata 2yum --enablerepo=mysql56-community clean metadata 3yum --enablerepo=mysql56-community clean metadata

それでもダメだったらyum clean allでキャッシュ全体を削除してから再度インストール。
それでもダメだったら・・・ちょっとお手上げですかね。

追記

ドットインストールの当該教材に不具合情報がありました。
https://dotinstall.com/lessons/basic_localdev_win_v2/38608
記載内容で追試してみましたが、5.6.38でもインストールに失敗します。
ドットインストール側へ問い合わせたほうがよいでしょう。我々にはどうにもできないです。

投稿2020/05/23 03:05

編集2020/05/24 15:11
hope_mucci

総合スコア4447

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

masaki01780504

2020/05/23 09:22

ご回答ありがとうございます。 yum clean all も sudo yum --enablerepo=mysql56-community clean metadata も以前にも 実行を試みていたのですが、やはり結果は変わりませんでした。 おっしゃるように、ダウンロードしたパッケージファイルがおかしいくらいしか考えられないですか。 ドットインストールなど提供元への問い合わせしかないですかね。
masaki01780504

2020/05/24 11:19

ご回答ありあがとうございます。 早速実行してみました。 下記は成功したととらえて良いのでしょうか。 次に、 sudo yum -y install mysql-community-server を実行してみたら、パッケージのダウンロードエラーになってしまいました。 すべきことが違いますか。 [vagrant@localhost ~]$ wget http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-server-5.6.48-2.el6.x86_64.rpm --2020-05-21 16:11:19-- http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-server-5.6.48-2.el6.x86_64.rpm Resolving repo.mysql.com... 23.35.197.183 Connecting to repo.mysql.com|23.35.197.183|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 65035472 (62M) [application/x-redhat-package-manager] Saving to: “mysql-community-server-5.6.48-2.el6.x86_64.rpm” 100%[======================================>] 65,035,472 2.00M/s in 30s 2020-05-21 16:11:54 (2.04 MB/s) - “mysql-community-server-5.6.48-2.el6.x86_64.rpm” saved [65035472/65035472] Error Downloading Packages: mysql-community-libs-5.6.48-2.el6.x86_64: failure: mysql-community-libs-5.6.48-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try. mysql-community-client-5.6.48-2.el6.x86_64: failure: mysql-community-client-5.6.48-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try. mysql-community-server-5.6.48-2.el6.x86_64: failure: mysql-community-server-5.6.48-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try.
hope_mucci

2020/05/24 15:11

回答に追記しました。読んでください。リポジトリ側にmetadataと現物が一致しない不具合があるみたいです。
masaki01780504

2020/05/25 08:56

お忙しい中ご回答ありがとうございます。 MySQL の公式リポジトリに不具合がある、 ネットワーク接続の問題、 こちらの努力だけではどうにもならない可能性があるんですね。 ありがとうございます。 誠に感謝しております。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問