一、rpm -ivh Mysql-commUnity-server-8.0.28-1.el6.x86_64.rpm时报错 在执行rpm -ivh mysql-community-server-8.0.28-1.el6.x86_64.rpm
在执行rpm -ivh mysql-community-server-8.0.28-1.el6.x86_64.rpm时报错
只需执行
rpm -ivh mysql-community-server-5.7.26-1.el6.x86_64.rpm --force --nodeps
这是由于yum安装了旧版本的GPG keys所造成,从rpm版本4.1后,在安装或升级软件包时会自动检查软件包的签名。
出现错误
由出错提示可以知道,安装该包时与系统中那个存在的一个文件有冲突
通过 rpm -qa | grep mysql查看
[root@shizhan mysql-8.0.28]# rpm -qa | grep mysql
mysql-community-common-8.0.28-1.el6.x86_64
mysql-community-libs-8.0.28-1.el6.x86_64
mysql-community-client-8.0.28-1.el6.x86_64
mysql-community-server-8.0.28-1.el6.x86_64
mysql-libs-5.1.73-7.el6.x86_64
mysql-community-client-plugins-8.0.28-1.el6.x86_64
mysql-community-devel-8.0.28-1.el6.x86_64
果然多出来个mysql-libs-5.1.73-7.el6.x86_64
所以通过卸载指令卸载该文件时又发生报错
[root@shizhan mysql-8.0.28]# rpm -e mysql-libs-5.1.73-7.el6.x86_64
error: Failed dependencies:
libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-6.el6_7.1.x86_64
libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-6.el6_7.1.x86_64
这时通过上网查询后在文件前加上 --nodeps即可解决
rpm -e --nodeps mysql-libs-5.1.73-7.el6.x86_64
再次执行rpm -ivh mysql-community-libs-compat-8.0.28-1.el6.x86_64.rpm
发现执行成功
成功解决!!
来源地址:https://blog.csdn.net/weixin_50334395/article/details/128952864
--结束END--
本文标题: Linux安装MySQL时的常见错误(rpm)
本文链接: https://lsjlt.com/news/393676.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0