1、yum配置文件
1 |
[root@rh168 yum.repos.d]# cat yum.repo |
4 |
baseurl=file:///media/Server |
7 |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora |
2、安装故障
[root@rh168 yum.repos.d]# yum install -y unix*
01 |
Loaded plugins: security |
03 |
base/primary | 795 kB 00:00 |
05 |
Setting up Install Process |
06 |
Package unix2dos-2.2-26.2.3.el5.i386 already installed and latest version |
07 |
Resolving Dependencies |
08 |
--> Running transaction check |
09 |
---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated |
10 |
---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated |
11 |
---> Package unixODBC-kde.i386 0:2.2.11-7.1 set to be updated |
12 |
--> Finished Dependency Resolution |
14 |
====================================================================================================================================== |
15 |
Package Arch Version Repository Size |
16 |
====================================================================================================================================== |
18 |
unixODBC i386 2.2.11-7.1 base 830 k |
19 |
unixODBC-devel i386 2.2.11-7.1 base 743 k |
20 |
unixODBC-kde i386 2.2.11-7.1 base 560 k |
22 |
====================================================================================================================================== |
26 |
Total download size: 2.1 M |
28 |
-------------------------------------------------------------------------------------------------------------------------------------- |
29 |
Total 1.0 GB/s | 2.1 MB 00:00 |
错误提示:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159
base/gpgkey | 1.5 kB 00:00
Public key for unixODBC-kde-2.2.11-7.1.i386.rpm is not installed
--安装失败!
3、解决方法
从 RPM 版本 4.1 开始,在安装或升级软件包时会检查软件包的签名。如果签名校验失败,你就会看到如下所示
的错误消息:
error: V3 DSA signature: BAD, key ID 0352860f
如果它是新的、只针对文件头的签名,你会看到如下所示的错误消息:
error: Header V3 DSA signature: BAD, key ID 0352860f
如果你没有安装合适的钥匙来校验签名,消息中就会包含 NOKEY ,如:
warning: V3 DSA signature: NOKEY, key ID 0352860f
在CentOS下有的时候用yum安装软件的时候最后会提示:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID*****
这是由于yum安装了旧版本的GPG keys造成的,解决办法就是
#rpm --import /etc/pki/rpm-gpg/RPM*
[root@rh168 yum.repos.d]# rpm --import /etc/pki/rpm-gpg/RPM*
4、重新安装
[root@rh168 yum.repos.d]# yum install -y unix*
01 |
Loaded plugins: security |
02 |
Setting up Install Process |
03 |
Package unix2dos-2.2-26.2.3.el5.i386 already installed and latest version |
04 |
Resolving Dependencies |
05 |
--> Running transaction check |
06 |
---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated |
07 |
---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated |
08 |
---> Package unixODBC-kde.i386 0:2.2.11-7.1 set to be updated |
09 |
--> Finished Dependency Resolution |
11 |
====================================================================================================================================== |
12 |
Package Arch Version Repository Size |
13 |
====================================================================================================================================== |
15 |
unixODBC i386 2.2.11-7.1 base 830 k |
16 |
unixODBC-devel i386 2.2.11-7.1 base 743 k |
17 |
unixODBC-kde i386 2.2.11-7.1 base 560 k |
19 |
====================================================================================================================================== |
23 |
Total download size: 2.1 M |
25 |
-------------------------------------------------------------------------------------------------------------------------------------- |
26 |
Total 1.2 GB/s | 2.1 MB 00:00 |
27 |
Running rpm_check_debug |
28 |
Running Transaction Test |
29 |
Finished Transaction Test |
30 |
Transaction Test Succeeded |
32 |
Installing : unixODBC 1/3 |
33 |
Installing : unixODBC-kde 2/3 |
34 |
Installing : unixODBC-devel 3/3 |
36 |
unixODBC.i386 0:2.2.11-7.1 unixODBC-devel.i386 0:2.2.11-7.1 unixODBC-kde.i386 0:2.2.11-7.1 |
--至此,软件包安装成功!
转:http://www.51itong.net/linux-study-yum-install-8388.html
- apt-get install安装软件时出现依赖错误解决方式
在使用apt-get install安装软件时,常常会遇到如上图所看到的错误.该错误的意思为缺少依赖软件.解决方式为: aptitude install golang-go
- 安装软件时出现这样错误:文件“proe50-1a.bin”无法在“C:\User\ZFTL\Desktop\proe50”定位,请插入正确的磁盘或选择其他文件夹
把里面的文件改成proe50-1a.bin就可以了.
- yum命令安装软件时,出现--centos 7 安装apache 出现 Could not resolve host: mirrorlist.centos.org; 未知的错误"--CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决
CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决 今天在虚拟机上安装完CentOS6.5之后,首次使用时yum命令安装软件时,出现 ...
- CentOS yum安装软件时保留安装包及依赖包或者自动下载安装包及相关依赖包
CentOS上安装某个软件一般都有很多相关的依赖包,当然,这也与我们安装时software selection步骤中选择的版本有关系,我们服务器在安装CentOS时一般选择Basic Web Serv ...
- 安装node-sass时出现的错误解决方案(Mac自用,也可以借鉴)
安装node-sass时出现一下错误: gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir ...
- 安装APK时引发INSTALL_PARSE_FAILED_MANIFEST_MALFORMED错误的几种可能(申明:来源于网络)
安装APK时引发INSTALL_PARSE_FAILED_MANIFEST_MALFORMED错误的几种可能(申明:来源于网络) 地址:https://my.oschina.net/freestyle ...
- 在ubuntu中我们使用sudo apt-get install 或者dpkg -i *.deb安装软件时,常常提示“有未能满足的依赖关系“,解决方法
很早之前在ubuntu安装软件时遇到的问题,今天打开ubuntu看到了,总结如下: 在ubuntu中我们使用sudo apt-get install 或者dpkg -i *.deb安装软件常常提示“有 ...
- yum install --downloadonly 下载依赖包到本地 但不安装
如果手动去一个个找依赖是很困难的,即便已经知道名字.版本,下面就依赖系统自带的命令完成该步骤 以java为例,其他安装包只要替换包名 yum install --downloadonly --down ...
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)
新安装了redhat6.5.安装后,登录系统,使用yum update 更新系统.提示: This system is not registered to Red Hat Subscription M ...
随机推荐
- Mac OS X 快捷键(完整篇) 转载
转载自:http://www.nooidea.com/2011/01/mac-os-x-keyboard-shortcuts.html 快捷键是通过按下键盘上的组合键来调用 Mac OS X 功能的一 ...
- 深入浅出ES6(六):解构 Destructuring
作者 Jason Orendorff github主页 https://github.com/jorendorff 什么是解构赋值? 解构赋值允许你使用类似数组或对象字面量的语法将数组和对象的属性 ...
- Intent (一)
1,简介 Intent 是一种消息传递机制,可以理解为一种对消息的封装,执行某操作的抽象描述,可用于应用程序内部及应用程序之间 其组成包括: 要执行的动作(action) 如VIEW_ACTION(查 ...
- asp.net后台获取路径的各种方法归纳
asp.net后台获取路径的各种方法归纳 1.Request.CurrentExecutionFilePath 获取当前请求的虚拟路径,不同于 FilePath,差别在于如果请求已在服务器代 ...
- jquery控制按钮的禁用与启用
jquery禁用a标签方法1: $(document).ready(function () { $("a").each(function () { var textValue = ...
- jQuery对象与Dom对象的相互转换
1.jQuery对象转换为Dom对象 [index] var $d = $("#id"); ]; get(index) var $d = $("#id"); ) ...
- *[hackerrank]Consecutive Subsequences
https://www.hackerrank.com/contests/w6/challenges/consecutive-subsequences 求数组中被k整除的子段和有几个.这个要利用sum[ ...
- *[codility]MinAvgTwoSlice
https://codility.com/demo/take-sample-test/min_avg_two_slice 此题要求一个数组子段的最小的平均数(返回第一个数字的index).刚开始想记录 ...
- Filter(过滤器)常见应用
孤傲苍狼 只为成功找方法,不为失败找借口! javaweb学习总结(四十六)——Filter(过滤器)常见应用 一.统一全站字符编码 通过配置参数charset指明使用何种字符编码,以处理Html F ...
- ADO.NET基础02(语句参数化,配置文件,DataSet与DataTable)
ADO.NET连接池 ado.net默认启用了连接池 *如何清空连接池?Connection的静态方法ClearAllPools(). ClearPool() Ado.net连接池使用总结: 1.第一 ...