プログラミング初心者です。
ドットインストールを見ながら仮想マシンの設定中です。
下記ドットインストールの手順にて
./run.sh を実行すると何故か mysql だけインストールされません。
最後のTASK [install mysql] だけエラーになってしまいます。
下記に
- sudo yum -y install mysql-server を実行で出たエラー、
- ./run.sh を実行で出たエラー
を載せております。
結果、長文になってしまいました。
どこが重要ポイントかわからず全て載せさせていただきました。
お解りになる方、お教えください。
よろしくお願い致します。
<ドットインストール手順>
sudo yum -y update
sudo yum -y install git
git clone https://github.com/dotinstallres/centos6.git
cd centos6
./run.sh
exec $SHELL -l
下記が sudo yum -y install mysql-server を実行後のパッケージのダウンロードでエラーの画面です。
================================================================================
インストール 6 パッケージ
合計容量: 115 M
総ダウンロード容量: 114 M
インストール済み容量: 480 M
パッケージをダウンロードしています:
(1/3): mysql-community-client-5.6.47-2.el6.x86_64.rpm | 34 MB 00:21
http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-client-5.6.47-2.el6.x86_64.rpm: [Errno -1] パッケージは予定したダウンロードと一致しません。 提案: 「yum --enablerepo=mysql56-community clean metadata」の実行
他のミラーを試します。
(2/3): mysql-community-libs-5.6.47-2.el6.x86_64.rpm | 3.6 MB 00:02
http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-libs-5.6.47-2.el6.x86_64.rpm: [Errno -1] パッケージは予定したダウンロードと一致しません。 提案: 「yum --enablerepo=mysql56-community clean metadata」の実行
他のミラーを試します。
(3/3): mysql-community-server-5.6.47-2.el6.x86_64.rpm | 77 MB 00:47
http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-server-5.6.47-2.el6.x86_64.rpm: [Errno -1] パッケージは予定したダウンロードと一致しません。 提案: 「yum --enablerepo=mysql56-community clean metadata」の実行
他のミラーを試します。
パッケージのダウンロードでエラー:
mysql-community-server-5.6.47-2.el6.x86_64: failure: mysql-community-server-5.6.47-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try.
mysql-community-libs-5.6.47-2.el6.x86_64: failure: mysql-community-libs-5.6.47-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try.
mysql-community-client-5.6.47-2.el6.x86_64: failure: mysql-community-client-5.6.47-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try.
下記が ./run.sh を実行後の画面です。
[vagrant@localhost centos6]$ ./run.sh
読み込んだプラグイン:fastestmirror
更新処理の設定をしています
Loading mirror speeds from cached hostfile
- base: ftp-srv2.kddilabs.jp
- extras: ftp-srv2.kddilabs.jp
- remi-safe: ftp.riken.jp
- updates: ftp-srv2.kddilabs.jp
更新と設定されたパッケージがありません。
[WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'
TASK [install remi repository] *************************************************
[WARNING]: Consider using the yum, dnf or zypper module rather than running
rpm. If you need to use command because yum, dnf or zypper is insufficient you
can add warn=False to this command task or set command_warnings=False in
ansible.cfg to get rid of this message.
changed: [localhost]
TASK [install man] *************************************************************
ok: [localhost]
TASK [install apache] **********************************************************
ok: [localhost]
TASK [start apache and enabled] ************************************************
ok: [localhost]
TASK [change owner] ************************************************************
ok: [localhost]
TASK [copy httpd.conf] *********************************************************
ok: [localhost]
TASK [install gd-last] *********************************************************
ok: [localhost]
TASK [install php] *************************************************************
ok: [localhost]
TASK [copy php.ini.custom] *****************************************************
ok: [localhost]
TASK [install mysql repository] ************************************************
changed: [localhost]
TASK [install mysql] ***********************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-client-5.6.47-2.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=mysql56-community clean metadata\nTrying other mirror.\nhttp://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-devel-5.6.47-2.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=mysql56-community clean metadata\nTrying other mirror.\nhttp://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-libs-5.6.47-2.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=mysql56-community clean metadata\nTrying other mirror.\nhttp://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-server-5.6.47-2.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=mysql56-community clean metadata\nTrying other mirror.\nhttp://repo.mysql.com/yum/mysql-tools-community/el/6/x86_64/mysql-utilities-1.6.5-1.el6.noarch.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=mysql-tools-community clean metadata\nTrying other mirror.\n\n\nError Downloading Packages:\n mysql-community-server-5.6.47-2.el6.x86_64: failure: mysql-community-server-5.6.47-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try.\n mysql-utilities-1.6.5-1.el6.noarch: failure: mysql-utilities-1.6.5-1.el6.noarch.rpm from mysql-tools-community: [Errno 256] No more mirrors to try.\n mysql-community-devel-5.6.47-2.el6.x86_64: failure: mysql-community-devel-5.6.47-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try.\n mysql-community-libs-5.6.47-2.el6.x86_64: failure: mysql-community-libs-5.6.47-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try.\n mysql-community-client-5.6.47-2.el6.x86_64: failure: mysql-community-client-5.6.47-2.el6.x86_64.rpm from mysql56-community: [Errno 256] No more mirrors to try.\n\n", "rc": 1, "results": ["Loaded plugins: fastestmirror\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: ftp-srv2.kddilabs.jp\n * extras: ftp-srv2.kddilabs.jp\n * remi-safe: ftp.riken.jp\n * updates: ftp-srv2.kddilabs.jp\nPackage mysql is obsoleted by mysql-community-client, trying to install mysql-community-client-5.6.47-2.el6.x86_64 instead\nPackage mysql-devel is obsoleted by mysql-community-devel, trying to install mysql-community-devel-5.6.47-2.el6.x86_64 instead\nPackage mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.47-2.el6.x86_64 instead\nResolving Dependencies\n--> Running transaction check\n---> Package mysql-community-client.x86_64 0:5.6.47-2.el6 will be installed\n--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.47-2.el6.x86_64\n---> Package mysql-community-devel.x86_64 0:5.6.47-2.el6 will be installed\n---> Package mysql-community-server.x86_64 0:5.6.47-2.el6 will be installed\n--> Processing Dependency: mysql-community-common(x86-64) = 5.6.47-2.el6 for package: mysql-community-server-5.6.47-2.el6.x86_64\n--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.47-2.el6.x86_64\n--> Processing Dependency: libnuma.so.1(libnuma_1.2)(64bit) for package: mysql-community-server-5.6.47-2.el6.x86_64\n--> Processing Dependency: libnuma.so.1(libnuma_1.1)(64bit) for package: mysql-community-server-5.6.47-2.el6.x86_64\n--> Processing Dependency: libnuma.so.1()(64bit) for package: mysql-community-server-5.6.47-2.el6.x86_64\n---> Package mysql-utilities.noarch 0:1.6.5-1.el6 will be installed\n--> Processing Dependency: mysql-connector-python >= 2.0.0 for package: mysql-utilities-1.6.5-1.el6.noarch\n--> Running transaction check\n---> Package mysql-community-common.x86_64 0:5.6.47-2.el6 will be installed\n---> Package mysql-community-libs.x86_64 0:5.6.47-2.el6 will be installed\n---> Package mysql-connector-python.x86_64 0:2.1.7-1.el6 will be installed\n---> Package numactl.x86_64 0:2.0.9-2.el6 will be installed\n---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n mysql-community-client x86_64 5.6.47-2.el6 mysql56-community 34 M\n mysql-community-devel x86_64 5.6.47-2.el6 mysql56-community 5.9 M\n mysql-community-server x86_64 5.6.47-2.el6 mysql56-community 77 M\n mysql-utilities noarch 1.6.5-1.el6 mysql-tools-community 883 k\nInstalling for dependencies:\n mysql-community-common x86_64 5.6.47-2.el6 mysql56-community 341 k\n mysql-community-libs x86_64 5.6.47-2.el6 mysql56-community 3.6 M\n mysql-connector-python x86_64 2.1.7-1.el6 mysql-connectors-community 257 k\n numactl x86_64 2.0.9-2.el6 base 74 k\n perl-DBI x86_64 1.609-4.el6 base 705 k\n\nTransaction Summary\n================================================================================\nInstall 9 Package(s)\n\nTotal size: 122 M\nTotal download size: 121 M\nInstalled size: 515 M\nDownloading Packages:\n"]}
to retry, use: --limit @/home/vagrant/centos6/main.retry
PLAY RECAP *********************************************************************
localhost : ok=17 changed=4 unreachable=0 failed=1
[vagrant@localhost centos6]$
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2020/03/28 04:02
2020/03/28 06:14
退会済みユーザー
2020/03/28 08:27
退会済みユーザー
2020/03/29 04:42
2020/03/29 14:34
退会済みユーザー
2020/03/30 01:39
2020/03/30 03:49
退会済みユーザー
2020/03/30 06:29