Centos添加yum源
centos刚装完的时候搜不到什么软件,具体yum的源怎么设置也还没弄明白,网上查,好多都让改/etc/yum.repos.d/目录里的东西,不过改了之后不太管用。
结果找了俩有用的,
http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
975 2011-03-29 00:15:43 wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
976 2011-03-29 00:16:03 rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Running rpm_check_debug
error: rpmdbNextIterator: skipping h# 461 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 461 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
error: rpmdbNextIterator: skipping h# 983 Header V3 DSA signature: BAD, key ID e8562897
ERROR with rpm_check_debug vs depsolve:
/usr/bin/perl is needed by samba-client-3.0.33-3.29.el5_5.x86_64
/usr/bin/perl is needed by samba-3.0.33-3.29.el5_5.x86_64
perl(Carp) is needed by samba-3.0.33-3.29.el5_5.x86_64
perl(Getopt::Long) is needed by samba-3.0.33-3.29.el5_5.x86_64
perl(Getopt::Std) is needed by samba-3.0.33-3.29.el5_5.x86_64
perl(IO::Socket) is needed by samba-3.0.33-3.29.el5_5.x86_64
perl(POSIX) is needed by samba-3.0.33-3.29.el5_5.x86_64
perl(Time::Local) is needed by samba-3.0.33-3.29.el5_5.x86_64
perl(strict) is needed by samba-3.0.33-3.29.el5_5.x86_64
/usr/bin/perl is needed by lftp-4.0.9-1.el5.rf.x86_64
perl(Digest::MD5) is needed by lftp-4.0.9-1.el5.rf.x86_64
perl(strict) is needed by lftp-4.0.9-1.el5.rf.x86_64
Complete!
(1, [u'Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Red Hat Enterprise Linux 5&component=yum'])
Additional info:
I think I fixed the issue by rebuilding the rpm database.
init 1
cd /var/lib/rpm
mv Pubkeys Pubkeys.old
rpm --rebuilddb