centos 6 4 不能使用yum install 的问题

在青云上创建centos 6.4后,习惯性的安装emacs. 结果遇到报错信息:

# yum install emacs
Loaded plugins: fastestmirror
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

解决方法是更新ca-certificates

# yum upgrade ca-certificates --disablerepo=epel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.skyshe.cn
 * extras: ftp.sjtu.edu.cn
 * rpmfusion-free-updates: ftp.sjtu.edu.cn
 * rpmfusion-nonfree-updates: ftp.sjtu.edu.cn
 * updates: mirrors.skyshe.cn
base                                                                                                                                                                   | 3.7 kB     00:00
base/primary_db                                                                                                                                                        | 4.6 MB     00:04
emacs                                                                                                                                                                  | 2.9 kB     00:02
emacs/primary_db                                                                                                                                                       |  37 kB     00:01
extras                                                                                                                                                                 | 3.4 kB     00:00
extras/primary_db                                                                                                                                                      |  37 kB     00:00
rpmfusion-free-updates                                                                                                                                                 | 2.7 kB     00:00
rpmfusion-free-updates/primary_db                                                                                                                                      | 272 kB     00:00
rpmfusion-nonfree-updates                                                                                                                                              | 2.2 kB     00:00
rpmfusion-nonfree-updates/primary_db                                                                                                                                   |  65 kB     00:00
updates                                                                                                                                                                | 3.4 kB     00:00
updates/primary_db                                                                                                                                                     | 5.2 MB     00:05
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package ca-certificates.noarch 0:2010.63-3.el6_1.5 will be updated
---> Package ca-certificates.noarch 0:2015.2.6-65.0.1.el6_7 will be an update
--> Processing Dependency: p11-kit-trust >= 0.18.4-2 for package: ca-certificates-2015.2.6-65.0.1.el6_7.noarch
--> Processing Dependency: p11-kit >= 0.18.4-2 for package: ca-certificates-2015.2.6-65.0.1.el6_7.noarch
--> Running transaction check
---> Package p11-kit.x86_64 0:0.18.5-2.el6_5.2 will be installed
--> Processing Dependency: libtasn1.so.3(LIBTASN1_0_3)(64bit) for package: p11-kit-0.18.5-2.el6_5.2.x86_64
--> Processing Dependency: libtasn1.so.3()(64bit) for package: p11-kit-0.18.5-2.el6_5.2.x86_64
---> Package p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2 will be installed
--> Running transaction check
---> Package libtasn1.x86_64 0:2.3-6.el6_5 will be installed
--> Processing Conflict: p11-kit-trust-0.18.5-2.el6_5.2.x86_64 conflicts nss < 3.14.3-33
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package nss.x86_64 0:3.14.0.0-12.el6 will be updated
--> Processing Dependency: nss = 3.14.0.0-12.el6 for package: nss-tools-3.14.0.0-12.el6.x86_64
--> Processing Dependency: nss = 3.14.0.0-12.el6 for package: nss-sysinit-3.14.0.0-12.el6.x86_64
---> Package nss.x86_64 0:3.21.0-0.3.el6_7 will be an update
--> Processing Dependency: nss-util >= 3.21.0 for package: nss-3.21.0-0.3.el6_7.x86_64
--> Processing Dependency: nss-softokn(x86-64) >= 3.14.3-22 for package: nss-3.21.0-0.3.el6_7.x86_64
--> Processing Dependency: nspr >= 4.11.0 for package: nss-3.21.0-0.3.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.21)(64bit) for package: nss-3.21.0-0.3.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.17.1)(64bit) for package: nss-3.21.0-0.3.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.15)(64bit) for package: nss-3.21.0-0.3.el6_7.x86_64
--> Running transaction check
---> Package nspr.x86_64 0:4.9.2-1.el6 will be updated
---> Package nspr.x86_64 0:4.11.0-0.1.el6_7 will be an update
---> Package nss-softokn.x86_64 0:3.12.9-11.el6 will be updated
---> Package nss-softokn.x86_64 0:3.14.3-23.el6_7 will be an update
--> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.14.3-23.el6_7 for package: nss-softokn-3.14.3-23.el6_7.x86_64
---> Package nss-sysinit.x86_64 0:3.14.0.0-12.el6 will be updated
---> Package nss-sysinit.x86_64 0:3.21.0-0.3.el6_7 will be an update
---> Package nss-tools.x86_64 0:3.14.0.0-12.el6 will be updated
---> Package nss-tools.x86_64 0:3.21.0-0.3.el6_7 will be an update
---> Package nss-util.x86_64 0:3.14.0.0-2.el6 will be updated
---> Package nss-util.x86_64 0:3.21.0-0.3.el6_7 will be an update
--> Running transaction check
---> Package nss-softokn-freebl.x86_64 0:3.12.9-11.el6 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.14.3-23.el6_7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                           Arch                                  Version                                                 Repository                              Size
==============================================================================================================================================================================================
Updating:
 ca-certificates                                   noarch                                2015.2.6-65.0.1.el6_7                                   updates                                1.2 M
 nss                                               x86_64                                3.21.0-0.3.el6_7                                        updates                                858 k
Installing for dependencies:
 libtasn1                                          x86_64                                2.3-6.el6_5                                             base                                   238 k
 p11-kit                                           x86_64                                0.18.5-2.el6_5.2                                        base                                    94 k
 p11-kit-trust                                     x86_64                                0.18.5-2.el6_5.2                                        base                                    71 k
Updating for dependencies:
 nspr                                              x86_64                                4.11.0-0.1.el6_7                                        updates                                114 k
 nss-softokn                                       x86_64                                3.14.3-23.el6_7                                         updates                                262 k
 nss-softokn-freebl                                x86_64                                3.14.3-23.el6_7                                         updates                                167 k
 nss-sysinit                                       x86_64                                3.21.0-0.3.el6_7                                        updates                                 46 k
 nss-tools                                         x86_64                                3.21.0-0.3.el6_7                                        updates                                435 k
 nss-util                                          x86_64                                3.21.0-0.3.el6_7                                        updates                                 67 k

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

Total download size: 3.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/11): ca-certificates-2015.2.6-65.0.1.el6_7.noarch.rpm                                                                                                               | 1.2 MB     00:01
(2/11): libtasn1-2.3-6.el6_5.x86_64.rpm                                                                                                                                | 238 kB     00:00
(3/11): nspr-4.11.0-0.1.el6_7.x86_64.rpm                                                                                                                               | 114 kB     00:00
(4/11): nss-3.21.0-0.3.el6_7.x86_64.rpm                                                                                                                                | 858 kB     00:00
(5/11): nss-softokn-3.14.3-23.el6_7.x86_64.rpm                                                                                                                         | 262 kB     00:00
(6/11): nss-softokn-freebl-3.14.3-23.el6_7.x86_64.rpm                                                                                                                  | 167 kB     00:00
(7/11): nss-sysinit-3.21.0-0.3.el6_7.x86_64.rpm                                                                                                                        |  46 kB     00:00
(8/11): nss-tools-3.21.0-0.3.el6_7.x86_64.rpm                                                                                                                          | 435 kB     00:00
(9/11): nss-util-3.21.0-0.3.el6_7.x86_64.rpm                                                                                                                           |  67 kB     00:00
(10/11): p11-kit-0.18.5-2.el6_5.2.x86_64.rpm                                                                                                                           |  94 kB     00:00
(11/11): p11-kit-trust-0.18.5-2.el6_5.2.x86_64.rpm                                                                                                                     |  71 kB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         601 kB/s | 3.5 MB     00:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : nspr-4.11.0-0.1.el6_7.x86_64                                                                                                                                              1/19
  Updating   : nss-util-3.21.0-0.3.el6_7.x86_64                                                                                                                                          2/19
  Updating   : nss-softokn-freebl-3.14.3-23.el6_7.x86_64                                                                                                                                 3/19
  Updating   : nss-softokn-3.14.3-23.el6_7.x86_64                                                                                                                                        4/19
  Updating   : nss-sysinit-3.21.0-0.3.el6_7.x86_64                                                                                                                                       5/19
  Updating   : nss-3.21.0-0.3.el6_7.x86_64                                                                                                                                               6/19
  Installing : libtasn1-2.3-6.el6_5.x86_64                                                                                                                                               7/19
  Installing : p11-kit-0.18.5-2.el6_5.2.x86_64                                                                                                                                           8/19
  Installing : p11-kit-trust-0.18.5-2.el6_5.2.x86_64                                                                                                                                     9/19
  Updating   : ca-certificates-2015.2.6-65.0.1.el6_7.noarch                                                                                                                             10/19
  Updating   : nss-tools-3.21.0-0.3.el6_7.x86_64                                                                                                                                        11/19
  Cleanup    : ca-certificates-2010.63-3.el6_1.5.noarch                                                                                                                                 12/19
  Cleanup    : nss-tools-3.14.0.0-12.el6.x86_64                                                                                                                                         13/19
  Cleanup    : nss-3.14.0.0-12.el6.x86_64                                                                                                                                               14/19
  Cleanup    : nss-sysinit-3.14.0.0-12.el6.x86_64                                                                                                                                       15/19
  Cleanup    : nss-softokn-3.12.9-11.el6.x86_64                                                                                                                                         16/19
  Cleanup    : nss-util-3.14.0.0-2.el6.x86_64                                                                                                                                           17/19
  Cleanup    : nspr-4.9.2-1.el6.x86_64                                                                                                                                                  18/19
  Cleanup    : nss-softokn-freebl-3.12.9-11.el6.x86_64                                                                                                                                  19/19
  Verifying  : p11-kit-0.18.5-2.el6_5.2.x86_64                                                                                                                                           1/19
  Verifying  : nss-util-3.21.0-0.3.el6_7.x86_64                                                                                                                                          2/19
  Verifying  : nss-softokn-3.14.3-23.el6_7.x86_64                                                                                                                                        3/19
  Verifying  : nss-softokn-freebl-3.14.3-23.el6_7.x86_64                                                                                                                                 4/19
  Verifying  : nss-sysinit-3.21.0-0.3.el6_7.x86_64                                                                                                                                       5/19
  Verifying  : libtasn1-2.3-6.el6_5.x86_64                                                                                                                                               6/19
  Verifying  : nss-3.21.0-0.3.el6_7.x86_64                                                                                                                                               7/19
  Verifying  : ca-certificates-2015.2.6-65.0.1.el6_7.noarch                                                                                                                              8/19
  Verifying  : nspr-4.11.0-0.1.el6_7.x86_64                                                                                                                                              9/19
  Verifying  : nss-tools-3.21.0-0.3.el6_7.x86_64                                                                                                                                        10/19
  Verifying  : p11-kit-trust-0.18.5-2.el6_5.2.x86_64                                                                                                                                    11/19
  Verifying  : nss-tools-3.14.0.0-12.el6.x86_64                                                                                                                                         12/19
  Verifying  : nss-3.14.0.0-12.el6.x86_64                                                                                                                                               13/19
  Verifying  : ca-certificates-2010.63-3.el6_1.5.noarch                                                                                                                                 14/19
  Verifying  : nss-softokn-freebl-3.12.9-11.el6.x86_64                                                                                                                                  15/19
  Verifying  : nss-util-3.14.0.0-2.el6.x86_64                                                                                                                                           16/19
  Verifying  : nss-sysinit-3.14.0.0-12.el6.x86_64                                                                                                                                       17/19
  Verifying  : nspr-4.9.2-1.el6.x86_64                                                                                                                                                  18/19
  Verifying  : nss-softokn-3.12.9-11.el6.x86_64                                                                                                                                         19/19 

Dependency Installed:
  libtasn1.x86_64 0:2.3-6.el6_5                             p11-kit.x86_64 0:0.18.5-2.el6_5.2                             p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2                            

Updated:
  ca-certificates.noarch 0:2015.2.6-65.0.1.el6_7                                                         nss.x86_64 0:3.21.0-0.3.el6_7                                                        

Dependency Updated:
  nspr.x86_64 0:4.11.0-0.1.el6_7              nss-softokn.x86_64 0:3.14.3-23.el6_7         nss-softokn-freebl.x86_64 0:3.14.3-23.el6_7         nss-sysinit.x86_64 0:3.21.0-0.3.el6_7
  nss-tools.x86_64 0:3.21.0-0.3.el6_7         nss-util.x86_64 0:3.21.0-0.3.el6_7          

Complete!

现在可以了。

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

原文地址:https://www.cnblogs.com/skiwnywh/p/10321440.html

时间: 2024-10-17 05:39:33

centos 6 4 不能使用yum install 的问题的相关文章

【CentOS】yum install --downloadonly 下载依赖包研究

在CentOS中可以使用yum自动安装软件,在离线环境中却行不通. Linux localhost 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 对于同一版本CentOS,我们可以事先下载离线依赖包,后面用命令手动安装. Java 自动安装命令: yum install -y java 安装结果: Installed: java-1.8.0-openjdk.x86_

centos yum install redis

centos yum install redis linux下yum安装redis以及使用 1.yum install redis      --查看是否有redis   yum 源 [[email protected] ~]# yum install redis 已加载插件:fastestmirror base | 3.6 kB 00:00 docker-ce-edge | 2.9 kB 00:00 docker-ce-stable | 2.9 kB 00:00 extras | 3.4 kB

CentOS 7 yum install cobbler

需要关闭selinux.(重要) centos官方源中无cobbler软件包,需要先安装epel源.然后清理yum缓存. 安装cobbler 和 cobbler-web等,启动相关服务,并且添加为开机启动.最后运行cobbler 常规检查 setenforce 0 yum install http://mirrors.163.com/centos/7/extras/x86_64/Packages/epel-release-7-9.noarch.rpm yum clean all yum inst

CentOS 7 Yum install * 报错

1.修改vim /etc/yum.repos.d/CentOS-Base.repo ,把http协议修改为https 2. cat /etc/redhat-release 查询CentOS版本安装对应版本的epel CentOS7使用yum需要安装epel epel安装 sudo yum install -y epel-release stress安装 sudo yum install -y stress查询yum list installed|grep epel 最后输入:stress --v

ntsysv --打开系统服务器管理器(需要先安装yum install ntsysv),选择要关闭或者打开的服务,centos中查看系统服务。

ntsysv            #打开系统服务器管理器(需要先安装yum install ntsysv),选择要关闭或者打开的服务. 1. 2. 原文地址:https://www.cnblogs.com/yong-heng/p/10493674.html

解决:CentOS 7下yum install mysql-server无包可用问题

问题:[[email protected] ~]# yum install mysql-server已加载插件:fastestmirrorLoading mirror speeds from cached hostfile base: ap.stykers.moe extras: ap.stykers.moe updates: ap.stykers.moe没有可用软件包 mysql-server.错误:无须任何处理解决方法:[[email protected] ~]# yum -y instal

Centos下自建本地yum仓库

Centos系统中安装软件主要有yum安装和源码安装两种,源码安装的优势在于你可以根据你的需要自定义很多安装参数,但是他有个缺点就是每次都需要执行./configure && make && make install 以及当你需要卸载某个软件的时候你可能无法完全卸载干净,于是对于大多数情况来说,yum安装就成了最好的选择.centos官方的源一般是很慢的,因为是国外的,所以你可以选择用国内一些著名的比较官方的源,比如新浪,阿里,等等,当然你还可以选择自己搭建你的yum仓库,

yum install zabbix

环境: centos 6.5 下载并安装epel源 links  http://fedoraproject.org/wiki/EPEL rpm -ivh epel-* 2.安装amp环境 yum install httpd mysql mysql-server php php-mysql -y 3.安装zabbix yum install zabbix22.x86_64 zabbix22-agent.x86_64 zabbix22-server.noarch zabbix22-server-my

Centos 6/ 7下通过yum安装php7环境

本文转自:云溪社区 2015年12月初PHP7正式版发布,迎来自2004年以来最大的版本更新.PHP7最显著的变化就是性能的极大提升,已接近Facebook开发的PHP执行引擎HHVM.在WordPress基准性能测试中,速度比5.6版本要快2~3倍,大大减少了内存占用.PHP7在语言上也有一些变化,比如添加返回类型声明.增加了一些新的保留关键字等.在安全方面,去除了PHP安全模式,添加魔术引号等.不仅如此,新版还支持64位,而且包含最新版Zend引擎. 查看 centos 版本 # cat /