免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3827 | 回复: 14
打印 上一主题 下一主题

[系统管理] 【已解决】有关yum的奇怪现象 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-03-10 16:16 |只看该作者 |倒序浏览
本帖最后由 flyinweb_cu 于 2014-03-10 17:05 编辑

下载了MySQL-server-5.6.16-1.el6.i686.rpm安装包,通过yum安装并解决相关依赖关系,两台相同操作系统服务器,结果却不一样,不知为何?

不正常的一台(就算是相同的镜像上,也会是一样的提示):
# yum install MySQL-server-5.6.16-1.el6.i686.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Examining MySQL-server-5.6.16-1.el6.i686.rpm: MySQL-server-5.6.16-1.el6.i686
Error: Nothing to do

正常的一台:
yum install MySQL-server-5.6.16-1.el6.i686.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
Setting up Install Process
Examining MySQL-server-5.6.16-1.el6.i686.rpm: MySQL-server-5.6.16-1.el6.i686
Marking MySQL-server-5.6.16-1.el6.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package MySQL-server.i686 0:5.6.16-1.el6 will be installed
--> Processing Dependency: libaio.so.1 for package: MySQL-server-5.6.16-1.el6.i686
--> Processing Dependency: libaio.so.1(LIBAIO_0.1) for package: MySQL-server-5.6.16-1.el6.i686
--> Processing Dependency: libaio.so.1(LIBAIO_0.4) for package: MySQL-server-5.6.16-1.el6.i686
--> Processing Dependency: libstdc++.so.6 for package: MySQL-server-5.6.16-1.el6.i686
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3) for package: MySQL-server-5.6.16-1.el6.i686
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4) for package: MySQL-server-5.6.16-1.el6.i686
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.11) for package: MySQL-server-5.6.16-1.el6.i686
--> Running transaction check
---> Package libaio.i686 0:0.3.107-10.el6 will be installed
---> Package libstdc++.x86_64 0:4.4.6-4.el6 will be updated
--> Processing Dependency: libstdc++ = 4.4.6-4.el6 for package: gcc-c++-4.4.6-4.el6.x86_64
--> Processing Dependency: libstdc++(x86-64) = 4.4.6-4.el6 for package: libstdc++-devel-4.4.6-4.el6.x86_64
---> Package libstdc++.i686 0:4.4.7-4.el6 will be installed
---> Package libstdc++.x86_64 0:4.4.7-4.el6 will be an update
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.4.6-4.el6 will be updated
---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be an update
--> Processing Dependency: gcc = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
---> Package libstdc++-devel.x86_64 0:4.4.6-4.el6 will be updated
---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be an update
--> Running transaction check
---> Package gcc.x86_64 0:4.4.6-4.el6 will be updated
--> Processing Dependency: gcc = 4.4.6-4.el6 for package: gcc-gfortran-4.4.6-4.el6.x86_64
---> Package gcc.x86_64 0:4.4.7-4.el6 will be an update
--> Processing Dependency: libgomp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: libgcc >= 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.4.6-4.el6 will be updated
---> Package cpp.x86_64 0:4.4.7-4.el6 will be an update
---> Package gcc-gfortran.x86_64 0:4.4.6-4.el6 will be updated
---> Package gcc-gfortran.x86_64 0:4.4.7-4.el6 will be an update
--> Processing Dependency: libgfortran = 4.4.7-4.el6 for package: gcc-gfortran-4.4.7-4.el6.x86_64
---> Package libgcc.i686 0:4.4.6-4.el6 will be updated
---> Package libgcc.x86_64 0:4.4.6-4.el6 will be updated
---> Package libgcc.i686 0:4.4.7-4.el6 will be an update
---> Package libgcc.x86_64 0:4.4.7-4.el6 will be an update
---> Package libgomp.x86_64 0:4.4.6-4.el6 will be updated
---> Package libgomp.x86_64 0:4.4.7-4.el6 will be an update
--> Running transaction check
---> Package libgfortran.x86_64 0:4.4.6-4.el6 will be updated
---> Package libgfortran.x86_64 0:4.4.7-4.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
Package                      Arch                Version                        Repository                                    Size
====================================================================================================================================
Installing:
MySQL-server                 i686                5.6.16-1.el6                   /MySQL-server-5.6.16-1.el6.i686              211 M
Installing for dependencies:
libaio                       i686                0.3.107-10.el6                 base                                          21 k
libstdc++                    i686                4.4.7-4.el6                    base                                         300 k
Updating for dependencies:
cpp                          x86_64              4.4.7-4.el6                    base                                         3.7 M
gcc                          x86_64              4.4.7-4.el6                    base                                          10 M
gcc-c++                      x86_64              4.4.7-4.el6                    base                                         4.7 M
gcc-gfortran                 x86_64              4.4.7-4.el6                    base                                         4.7 M
libgcc                       i686                4.4.7-4.el6                    base                                         112 k
libgcc                       x86_64              4.4.7-4.el6                    base                                         101 k
libgfortran                  x86_64              4.4.7-4.el6                    base                                         265 k
libgomp                      x86_64              4.4.7-4.el6                    base                                         118 k
libstdc++                    x86_64              4.4.7-4.el6                    base                                         293 k
libstdc++-devel              x86_64              4.4.7-4.el6                    base                                         1.6 M

Transaction Summary
====================================================================================================================================
Install       3 Package(s)
Upgrade      10 Package(s)

Total size: 237 M
Total download size: 26 M
Is this ok [y/N]:

论坛徽章:
0
2 [报告]
发表于 2014-03-10 16:20 |只看该作者
两个机器的yum源不一样吧,看看这个文件/etc/yum.repos.d/CentOS-Base.repo里面的设置

论坛徽章:
0
3 [报告]
发表于 2014-03-10 16:22 |只看该作者
完全一样的

论坛徽章:
0
4 [报告]
发表于 2014-03-10 16:22 |只看该作者
shaka202 发表于 2014-03-10 16:20
两个机器的yum源不一样吧,看看这个文件/etc/yum.repos.d/CentOS-Base.repo里面的设置


完全一样,系统默认的

论坛徽章:
1
戌狗
日期:2014-08-05 13:32:44
5 [报告]
发表于 2014-03-10 16:24 |只看该作者
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
正常的一台:
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
2台输出这里不一样 不知道有没有影响

论坛徽章:
0
6 [报告]
发表于 2014-03-10 16:34 |只看该作者
deelaaay 发表于 2014-03-10 16:24
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn


不正常那台用正常那台的镜像也是一样的出错,不正常的是阿里云服务器

论坛徽章:
0
7 [报告]
发表于 2014-03-10 16:37 |只看该作者
回复 4# flyinweb_cu


    但是你的两台机器的更新源显示不是一样的。
   一台源是centos.ustc.edu.cn,失败
   另一台源是mirror.bit.edu.cn。
   你可以yum --disablerepo=\* --enablerepo=【###】 install MySQL-server-5.6.16-1.el6.i686.rpm 试试
   【###】的地方指定你想用的yum源的名字,这个名字在/etc/yum.repos.d/*.repo里看查看。

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
8 [报告]
发表于 2014-03-10 16:49 |只看该作者
uname -a 发上来看看.

阿里云的服务器, 默认应该是 64位的 OS.

论坛徽章:
0
9 [报告]
发表于 2014-03-10 16:55 |只看该作者
q1208c 发表于 2014-03-10 16:49
uname -a 发上来看看.

阿里云的服务器, 默认应该是 64位的 OS.


Linux alihost 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Linux testhost 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
10 [报告]
发表于 2014-03-10 16:56 |只看该作者
在 64位的机器上装32位的mysql, I服了U.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP