centos7 | All matches were filtered out by modular filtering for argument: mysql-community-server
阿新 • • 發佈:2020-12-11
技術標籤:docker疑難雜症特效處方centosdockerrpmyummysql
問題場景:在嘗試使用docker安裝自定義centos環境時,使用dockfile檔案建立映象容器,在centos7映象中使用yum安裝mysql5.7。
在安裝過程中報錯:All matches were filtered out by modular filtering for argument: mysql-community-server
隨後通過檢視資訊,並且在網上查閱資料最終解決問題。
解決方案!!!:
先執行:yum module disable mysql 再執行:yum install mysql-community-server
yum module disable mysql執行過程:
[[email protected] /]# yum module disable mysql Failed to set locale, defaulting to C.UTF-8 Last metadata expiration check: 0:01:08 ago on Thu Dec 10 13:08:31 2020. Dependencies resolved. ====================================================================================================================================================== Package Architecture Version Repository Size ====================================================================================================================================================== Disabling modules: mysql Transaction Summary ====================================================================================================================================================== Is this ok [y/N]: y Complete!
再執行:yum install mysql-community-server
[[email protected] /]# yum -y install mysql-community-server
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:01:16 ago on Thu Dec 10 13:08:31 2020.
Dependencies resolved.
======================================================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================================================
Installing:
mysql-community-server x86_64 5.7.32-1.el7 mysql57-community 173 M
Installing dependencies:
groff-base x86_64 1.22.3-18.el8 BaseOS 1.0 M
libaio x86_64 0.3.112-1.el8 BaseOS 33 k
mysql-community-client x86_64 5.7.32-1.el7 mysql57-community 25 M
mysql-community-common x86_64 5.7.32-1.el7 mysql57-community 308 k
mysql-community-libs x86_64 5.7.32-1.el7 mysql57-community 2.3 M
ncurses x86_64 6.1-7.20180224.el8 BaseOS 387 k
ncurses-compat-libs x86_64 6.1-7.20180224.el8 BaseOS 331 k
net-tools x86_64 2.0-0.52.20160912git.el8 BaseOS 322 k
numactl-libs x86_64 2.0.12-11.el8 BaseOS 36 k
perl-Carp noarch 1.42-396.el8 BaseOS 30 k
perl-Encode x86_64 4:2.97-3.el8 BaseOS 1.5 M
perl-Errno x86_64 1.28-416.el8 BaseOS 76 k
perl-Exporter noarch 5.72-396.el8 BaseOS 34 k
perl-File-Path noarch 2.15-2.el8 BaseOS 38 k
perl-File-Temp noarch 0.230.600-1.el8 BaseOS 63 k
perl-Getopt-Long noarch 1:2.50-4.el8 BaseOS 63 k
perl-HTTP-Tiny noarch 0.074-1.el8 BaseOS 58 k
perl-IO x86_64 1.38-416.el8 BaseOS 141 k
perl-MIME-Base64 x86_64 3.15-396.el8 BaseOS 31 k
perl-PathTools x86_64 3.74-1.el8 BaseOS 90 k
perl-Pod-Escapes noarch 1:1.07-395.el8 BaseOS 20 k
perl-Pod-Perldoc noarch 3.28-396.el8 BaseOS 86 k
perl-Pod-Simple noarch 1:3.35-395.el8 BaseOS 213 k
perl-Pod-Usage noarch 4:1.69-395.el8 BaseOS 34 k
perl-Scalar-List-Utils x86_64 3:1.49-2.el8 BaseOS 68 k
perl-Socket x86_64 4:2.027-3.el8 BaseOS 59 k
perl-Storable x86_64 1:3.11-3.el8 BaseOS 98 k
perl-Term-ANSIColor noarch 4.06-396.el8 BaseOS 46 k
perl-Term-Cap noarch 1.17-395.el8 BaseOS 23 k
perl-Text-ParseWords noarch 3.30-395.el8 BaseOS 18 k
perl-Text-Tabs+Wrap noarch 2013.0523-395.el8 BaseOS 24 k
perl-Time-Local noarch 1:1.280-1.el8 BaseOS 34 k
perl-Unicode-Normalize x86_64 1.25-396.el8 BaseOS 82 k
perl-constant noarch 1.33-396.el8 BaseOS 25 k
perl-interpreter x86_64 4:5.26.3-416.el8 BaseOS 6.3 M
perl-libs x86_64 4:5.26.3-416.el8 BaseOS 1.6 M
perl-macros x86_64 4:5.26.3-416.el8 BaseOS 72 k
perl-parent noarch 1:0.237-1.el8 BaseOS 20 k
perl-podlators noarch 4.11-1.el8 BaseOS 118 k
perl-threads x86_64 1:2.21-2.el8 BaseOS 61 k
perl-threads-shared x86_64 1.58-2.el8 BaseOS 48 k
Installing weak dependencies:
perl-IO-Socket-IP noarch 0.39-5.el8 AppStream 47 k
perl-Mozilla-CA noarch 20160104-7.module_el8.3.0+416+dee7bcef AppStream 15 k
Enabling module streams:
perl 5.26
perl-IO-Socket-SSL 2.066
perl-libwww-perl 6.34
Transaction Summary
======================================================================================================================================================
Install 44 Packages
Total download size: 214 M
Installed size: 915 M
Downloading Packages:
(1/44): perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch.rpm 231 kB/s | 15 kB 00:00
(2/44): perl-IO-Socket-IP-0.39-5.el8.noarch.rpm 492 kB/s | 47 kB 00:00
(3/44): libaio-0.3.112-1.el8.x86_64.rpm 362 kB/s | 33 kB 00:00
(4/44): groff-base-1.22.3-18.el8.x86_64.rpm 4.4 MB/s | 1.0 MB 00:00
(5/44): net-tools-2.0-0.52.20160912git.el8.x86_64.rpm 5.5 MB/s | 322 kB 00:00
(6/44): ncurses-compat-libs-6.1-7.20180224.el8.x86_64.rpm 2.0 MB/s | 331 kB 00:00
(7/44): perl-Carp-1.42-396.el8.noarch.rpm 1.1 MB/s | 30 kB 00:00
(8/44): ncurses-6.1-7.20180224.el8.x86_64.rpm 1.5 MB/s | 387 kB 00:00
(9/44): numactl-libs-2.0.12-11.el8.x86_64.rpm 449 kB/s | 36 kB 00:00
(10/44): perl-Errno-1.28-416.el8.x86_64.rpm 2.1 MB/s | 76 kB 00:00
(11/44): perl-Exporter-5.72-396.el8.noarch.rpm 1.0 MB/s | 34 kB 00:00
(12/44): perl-File-Path-2.15-2.el8.noarch.rpm 1.3 MB/s | 38 kB 00:00
(13/44): perl-File-Temp-0.230.600-1.el8.noarch.rpm 2.0 MB/s | 63 kB 00:00
(14/44): perl-Getopt-Long-2.50-4.el8.noarch.rpm 1.1 MB/s | 63 kB 00:00
(15/44): perl-HTTP-Tiny-0.074-1.el8.noarch.rpm 1.0 MB/s | 58 kB 00:00
(16/44): perl-Encode-2.97-3.el8.x86_64.rpm 7.8 MB/s | 1.5 MB 00:00
(17/44): perl-IO-1.38-416.el8.x86_64.rpm 1.9 MB/s | 141 kB 00:00
(18/44): perl-MIME-Base64-3.15-396.el8.x86_64.rpm 484 kB/s | 31 kB 00:00
(19/44): perl-PathTools-3.74-1.el8.x86_64.rpm 2.8 MB/s | 90 kB 00:00
(20/44): perl-Pod-Escapes-1.07-395.el8.noarch.rpm 711 kB/s | 20 kB 00:00
(21/44): perl-Pod-Perldoc-3.28-396.el8.noarch.rpm 2.6 MB/s | 86 kB 00:00
(22/44): perl-Pod-Simple-3.35-395.el8.noarch.rpm 4.9 MB/s | 213 kB 00:00
(23/44): perl-Pod-Usage-1.69-395.el8.noarch.rpm 896 kB/s | 34 kB 00:00
(24/44): perl-Scalar-List-Utils-1.49-2.el8.x86_64.rpm 1.7 MB/s | 68 kB 00:00
(25/44): perl-Socket-2.027-3.el8.x86_64.rpm 2.0 MB/s | 59 kB 00:00
(26/44): perl-Term-ANSIColor-4.06-396.el8.noarch.rpm 1.4 MB/s | 46 kB 00:00
(27/44): perl-Storable-3.11-3.el8.x86_64.rpm 2.5 MB/s | 98 kB 00:00
(28/44): perl-Term-Cap-1.17-395.el8.noarch.rpm 906 kB/s | 23 kB 00:00
(29/44): perl-Text-ParseWords-3.30-395.el8.noarch.rpm 748 kB/s | 18 kB 00:00
(30/44): perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch.rpm 886 kB/s | 24 kB 00:00
(31/44): perl-Time-Local-1.280-1.el8.noarch.rpm 1.2 MB/s | 34 kB 00:00
(32/44): perl-constant-1.33-396.el8.noarch.rpm 617 kB/s | 25 kB 00:00
(33/44): perl-Unicode-Normalize-1.25-396.el8.x86_64.rpm 1.7 MB/s | 82 kB 00:00
(34/44): perl-macros-5.26.3-416.el8.x86_64.rpm 926 kB/s | 72 kB 00:00
(35/44): perl-parent-0.237-1.el8.noarch.rpm 225 kB/s | 20 kB 00:00
(36/44): perl-podlators-4.11-1.el8.noarch.rpm 354 kB/s | 118 kB 00:00
(37/44): perl-libs-5.26.3-416.el8.x86_64.rpm 3.0 MB/s | 1.6 MB 00:00
(38/44): perl-threads-shared-1.58-2.el8.x86_64.rpm 864 kB/s | 48 kB 00:00
(39/44): perl-threads-2.21-2.el8.x86_64.rpm 408 kB/s | 61 kB 00:00
(40/44): perl-interpreter-5.26.3-416.el8.x86_64.rpm 8.1 MB/s | 6.3 MB 00:00
(41/44): mysql-community-common-5.7.32-1.el7.x86_64.rpm 294 kB/s | 308 kB 00:01
(42/44): mysql-community-libs-5.7.32-1.el7.x86_64.rpm 1.1 MB/s | 2.3 MB 00:02
(43/44): mysql-community-client-5.7.32-1.el7.x86_64.rpm 2.4 MB/s | 25 MB 00:10
(44/44): mysql-community-server-5.7.32-1.el7.x86_64.rpm 4.6 MB/s | 173 MB 00:37
------------------------------------------------------------------------------------------------------------------------------------------------------
Total 5.2 MB/s | 214 MB 00:41
warning: /var/cache/dnf/mysql57-community-65b9ecb4cc6a2553/packages/mysql-community-client-5.7.32-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
MySQL 5.7 Community Server 27 MB/s | 27 kB 00:00
Importing GPG key 0x5072E1F5:
Userid : "MySQL Release Engineering < [email protected]>"
Fingerprint: A4A9 4068 76FC BD3C 4567 70C8 8C71 8D3B 5072 E1F5
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : perl-Exporter-5.72-396.el8.noarch 1/44
Installing : perl-libs-4:5.26.3-416.el8.x86_64 2/44
Installing : perl-Carp-1.42-396.el8.noarch 3/44
Installing : perl-parent-1:0.237-1.el8.noarch 4/44
Installing : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 5/44
Installing : perl-Text-ParseWords-3.30-395.el8.noarch 6/44
Installing : mysql-community-common-5.7.32-1.el7.x86_64 7/44
Installing : mysql-community-libs-5.7.32-1.el7.x86_64 8/44
Running scriptlet: mysql-community-libs-5.7.32-1.el7.x86_64 8/44
Installing : perl-Term-ANSIColor-4.06-396.el8.noarch 9/44
Installing : perl-macros-4:5.26.3-416.el8.x86_64 10/44
Installing : perl-Errno-1.28-416.el8.x86_64 11/44
Installing : perl-Socket-4:2.027-3.el8.x86_64 12/44
Installing : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 13/44
Installing : perl-Unicode-Normalize-1.25-396.el8.x86_64 14/44
Installing : perl-File-Path-2.15-2.el8.noarch 15/44
Installing : perl-IO-1.38-416.el8.x86_64 16/44
Installing : perl-PathTools-3.74-1.el8.x86_64 17/44
Installing : perl-constant-1.33-396.el8.noarch 18/44
Installing : perl-threads-1:2.21-2.el8.x86_64 19/44
Installing : perl-threads-shared-1.58-2.el8.x86_64 20/44
Installing : perl-interpreter-4:5.26.3-416.el8.x86_64 21/44
Installing : perl-MIME-Base64-3.15-396.el8.x86_64 22/44
Installing : perl-IO-Socket-IP-0.39-5.el8.noarch 23/44
Installing : perl-File-Temp-0.230.600-1.el8.noarch 24/44
Installing : perl-Pod-Escapes-1:1.07-395.el8.noarch 25/44
Installing : perl-Storable-1:3.11-3.el8.x86_64 26/44
Installing : perl-Time-Local-1:1.280-1.el8.noarch 27/44
Installing : perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch 28/44
Installing : perl-HTTP-Tiny-0.074-1.el8.noarch 29/44
Installing : numactl-libs-2.0.12-11.el8.x86_64 30/44
Running scriptlet: numactl-libs-2.0.12-11.el8.x86_64 30/44
Installing : net-tools-2.0-0.52.20160912git.el8.x86_64 31/44
Running scriptlet: net-tools-2.0-0.52.20160912git.el8.x86_64 31/44
Installing : ncurses-compat-libs-6.1-7.20180224.el8.x86_64 32/44
Installing : mysql-community-client-5.7.32-1.el7.x86_64 33/44
Installing : ncurses-6.1-7.20180224.el8.x86_64 34/44
Installing : perl-Term-Cap-1.17-395.el8.noarch 35/44
Installing : libaio-0.3.112-1.el8.x86_64 36/44
Installing : groff-base-1.22.3-18.el8.x86_64 37/44
Installing : perl-Encode-4:2.97-3.el8.x86_64 38/44
Installing : perl-Pod-Simple-1:3.35-395.el8.noarch 39/44
Installing : perl-Getopt-Long-1:2.50-4.el8.noarch 40/44
Installing : perl-podlators-4.11-1.el8.noarch 41/44
Installing : perl-Pod-Perldoc-3.28-396.el8.noarch 42/44
Installing : perl-Pod-Usage-4:1.69-395.el8.noarch 43/44
Running scriptlet: mysql-community-server-5.7.32-1.el7.x86_64 44/44
Installing : mysql-community-server-5.7.32-1.el7.x86_64 44/44
Running scriptlet: mysql-community-server-5.7.32-1.el7.x86_64 44/44
Verifying : perl-IO-Socket-IP-0.39-5.el8.noarch 1/44
Verifying : perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch 2/44
Verifying : groff-base-1.22.3-18.el8.x86_64 3/44
Verifying : libaio-0.3.112-1.el8.x86_64 4/44
Verifying : ncurses-6.1-7.20180224.el8.x86_64 5/44
Verifying : ncurses-compat-libs-6.1-7.20180224.el8.x86_64 6/44
Verifying : net-tools-2.0-0.52.20160912git.el8.x86_64 7/44
Verifying : numactl-libs-2.0.12-11.el8.x86_64 8/44
Verifying : perl-Carp-1.42-396.el8.noarch 9/44
Verifying : perl-Encode-4:2.97-3.el8.x86_64 10/44
Verifying : perl-Errno-1.28-416.el8.x86_64 11/44
Verifying : perl-Exporter-5.72-396.el8.noarch 12/44
Verifying : perl-File-Path-2.15-2.el8.noarch 13/44
Verifying : perl-File-Temp-0.230.600-1.el8.noarch 14/44
Verifying : perl-Getopt-Long-1:2.50-4.el8.noarch 15/44
Verifying : perl-HTTP-Tiny-0.074-1.el8.noarch 16/44
Verifying : perl-IO-1.38-416.el8.x86_64 17/44
Verifying : perl-MIME-Base64-3.15-396.el8.x86_64 18/44
Verifying : perl-PathTools-3.74-1.el8.x86_64 19/44
Verifying : perl-Pod-Escapes-1:1.07-395.el8.noarch 20/44
Verifying : perl-Pod-Perldoc-3.28-396.el8.noarch 21/44
Verifying : perl-Pod-Simple-1:3.35-395.el8.noarch 22/44
Verifying : perl-Pod-Usage-4:1.69-395.el8.noarch 23/44
Verifying : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 24/44
Verifying : perl-Socket-4:2.027-3.el8.x86_64 25/44
Verifying : perl-Storable-1:3.11-3.el8.x86_64 26/44
Verifying : perl-Term-ANSIColor-4.06-396.el8.noarch 27/44
Verifying : perl-Term-Cap-1.17-395.el8.noarch 28/44
Verifying : perl-Text-ParseWords-3.30-395.el8.noarch 29/44
Verifying : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 30/44
Verifying : perl-Time-Local-1:1.280-1.el8.noarch 31/44
Verifying : perl-Unicode-Normalize-1.25-396.el8.x86_64 32/44
Verifying : perl-constant-1.33-396.el8.noarch 33/44
Verifying : perl-interpreter-4:5.26.3-416.el8.x86_64 34/44
Verifying : perl-libs-4:5.26.3-416.el8.x86_64 35/44
Verifying : perl-macros-4:5.26.3-416.el8.x86_64 36/44
Verifying : perl-parent-1:0.237-1.el8.noarch 37/44
Verifying : perl-podlators-4.11-1.el8.noarch 38/44
Verifying : perl-threads-1:2.21-2.el8.x86_64 39/44
Verifying : perl-threads-shared-1.58-2.el8.x86_64 40/44
Verifying : mysql-community-client-5.7.32-1.el7.x86_64 41/44
Verifying : mysql-community-common-5.7.32-1.el7.x86_64 42/44
Verifying : mysql-community-libs-5.7.32-1.el7.x86_64 43/44
Verifying : mysql-community-server-5.7.32-1.el7.x86_64 44/44
Installed:
groff-base-1.22.3-18.el8.x86_64 libaio-0.3.112-1.el8.x86_64
mysql-community-client-5.7.32-1.el7.x86_64 mysql-community-common-5.7.32-1.el7.x86_64
mysql-community-libs-5.7.32-1.el7.x86_64 mysql-community-server-5.7.32-1.el7.x86_64
ncurses-6.1-7.20180224.el8.x86_64 ncurses-compat-libs-6.1-7.20180224.el8.x86_64
net-tools-2.0-0.52.20160912git.el8.x86_64 numactl-libs-2.0.12-11.el8.x86_64
perl-Carp-1.42-396.el8.noarch perl-Encode-4:2.97-3.el8.x86_64
perl-Errno-1.28-416.el8.x86_64 perl-Exporter-5.72-396.el8.noarch
perl-File-Path-2.15-2.el8.noarch perl-File-Temp-0.230.600-1.el8.noarch
perl-Getopt-Long-1:2.50-4.el8.noarch perl-HTTP-Tiny-0.074-1.el8.noarch
perl-IO-1.38-416.el8.x86_64 perl-IO-Socket-IP-0.39-5.el8.noarch
perl-MIME-Base64-3.15-396.el8.x86_64 perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch
perl-PathTools-3.74-1.el8.x86_64 perl-Pod-Escapes-1:1.07-395.el8.noarch
perl-Pod-Perldoc-3.28-396.el8.noarch perl-Pod-Simple-1:3.35-395.el8.noarch
perl-Pod-Usage-4:1.69-395.el8.noarch perl-Scalar-List-Utils-3:1.49-2.el8.x86_64
perl-Socket-4:2.027-3.el8.x86_64 perl-Storable-1:3.11-3.el8.x86_64
perl-Term-ANSIColor-4.06-396.el8.noarch perl-Term-Cap-1.17-395.el8.noarch
perl-Text-ParseWords-3.30-395.el8.noarch perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch
perl-Time-Local-1:1.280-1.el8.noarch perl-Unicode-Normalize-1.25-396.el8.x86_64
perl-constant-1.33-396.el8.noarch perl-interpreter-4:5.26.3-416.el8.x86_64
perl-libs-4:5.26.3-416.el8.x86_64 perl-macros-4:5.26.3-416.el8.x86_64
perl-parent-1:0.237-1.el8.noarch perl-podlators-4.11-1.el8.noarch
perl-threads-1:2.21-2.el8.x86_64 perl-threads-shared-1.58-2.el8.x86_64
Complete!
另外在centos中安裝mysql的dockfile指令碼如下:
#test dockerfile
FROM centos
MAINTAINER Dockertest
RUN yum -y install wget
RUN wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
RUN yum -y install mysql57-community-release-el7-10.noarch.rpm
RUN yum -y install mysql-community-server
RUN systemctl start mysqld.service
RUN systemctl status mysqld.service