LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-15-2012, 06:25 AM   #1
gopikrish14
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
yum always fails to install the packages after the download


I have server with Cent 6.3 and yum is configured with default settings. When i perform yum install "package", it always fails after downloading the packages. Proxy setting also fine, but not sure it fails to install the packages. Please help me to solve this issue. Below is the output of "yum install pam.i686".

=============================================================
#yum install pam.i686
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* extras: centos-hcm.viettelidc.com.vn
* updates: centos-hcm.viettelidc.com.vn
base | 3.7 kB 00:00
base/primary_db | 4.5 MB 00:10
extras | 3.0 kB 00:00
extras/primary_db | 6.3 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 3.0 MB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package pam.i686 0:1.1.1-10.el6_2.1 will be installed
--> Processing Dependency: libutil.so.1(GLIBC_2.0) for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libutil.so.1 for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libselinux.so.1 for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libnsl.so.1(GLIBC_2.0) for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libnsl.so.1 for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libdb-4.7.so for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libcrack.so.2 for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libc.so.6(GLIBC_2.8) for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: pam-1.1.1-10.el6_2.1.i686
--> Processing Dependency: libaudit.so.1 for package: pam-1.1.1-10.el6_2.1.i686
--> Running transaction check
---> Package audit-libs.i686 0:2.2-2.el6 will be installed
---> Package cracklib.i686 0:2.8.16-4.el6 will be installed
---> Package db4.i686 0:4.7.25-17.el6 will be installed
---> Package glibc.i686 0:2.12-1.80.el6_3.5 will be installed
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.80.el6_3.5.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.80.el6_3.5.i686
---> Package libselinux.i686 0:2.0.94-5.3.el6 will be installed
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.12.9-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== =========================================================
Package Arch Version Repository Size
==================================================================================================== =========================================================
Installing:
pam i686 1.1.1-10.el6_2.1 base 656 k
Installing for dependencies:
audit-libs i686 2.2-2.el6 base 60 k
cracklib i686 2.8.16-4.el6 base 70 k
db4 i686 4.7.25-17.el6 base 580 k
glibc i686 2.12-1.80.el6_3.5 updates 4.3 M
libselinux i686 2.0.94-5.3.el6 base 108 k
nss-softokn-freebl i686 3.12.9-11.el6 base 116 k

Transaction Summary
==================================================================================================== =========================================================
Install 7 Package(s)

Total download size: 5.9 M
Installed size: 18 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): audit-libs-2.2-2.el6.i686.rpm | 60 kB 00:00
(2/7): cracklib-2.8.16-4.el6.i686.rpm | 70 kB 00:00
(3/7): db4-4.7.25-17.el6.i686.rpm | 580 kB 00:02
(4/7): glibc-2.12-1.80.el6_3.5.i686.rpm | 4.3 MB 00:13
(5/7): libselinux-2.0.94-5.3.el6.i686.rpm | 108 kB 00:00
(6/7): nss-softokn-freebl-3.12.9-11.el6.i686.rpm | 116 kB 00:00
(7/7): pam-1.1.1-10.el6_2.1.i686.rpm | 656 kB 00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 282 kB/s | 5.9 MB 00:21
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
audit-libs-2.2-2.el6.i686 was supposed to be installed but is not!
Verifying : audit-libs-2.2-2.el6.i686 1/7
glibc-2.12-1.80.el6_3.5.i686 was supposed to be installed but is not!
Verifying : glibc-2.12-1.80.el6_3.5.i686 2/7
cracklib-2.8.16-4.el6.i686 was supposed to be installed but is not!
Verifying : cracklib-2.8.16-4.el6.i686 3/7
db4-4.7.25-17.el6.i686 was supposed to be installed but is not!
Verifying : db4-4.7.25-17.el6.i686 4/7
libselinux-2.0.94-5.3.el6.i686 was supposed to be installed but is not!
Verifying : libselinux-2.0.94-5.3.el6.i686 5/7
pam-1.1.1-10.el6_2.1.i686 was supposed to be installed but is not!
Verifying : pam-1.1.1-10.el6_2.1.i686 6/7
nss-softokn-freebl-3.12.9-11.el6.i686 was supposed to be installed but is not!
Verifying : nss-softokn-freebl-3.12.9-11.el6.i686 7/7
Verifying : audit-libs-2.2-2.el6.i686 8/7
Verifying : glibc-2.12-1.80.el6_3.5.i686 9/7
Verifying : cracklib-2.8.16-4.el6.i686 1/7
Verifying : db4-4.7.25-17.el6.i686 1/7
Verifying : libselinux-2.0.94-5.3.el6.i686 1/7
Verifying : pam-1.1.1-10.el6_2.1.i686 1/7
Verifying : nss-softokn-freebl-3.12.9-11.el6.i686 1/7

Failed:
audit-libs.i686 0:2.2-2.el6 cracklib.i686 0:2.8.16-4.el6 db4.i686 0:4.7.25-17.el6 glibc.i686 0:2.12-1.80.el6_3.5
libselinux.i686 0:2.0.94-5.3.el6 nss-softokn-freebl.i686 0:3.12.9-11.el6 pam.i686 0:1.1.1-10.el6_2.1

Complete!
=============================================================

I am getting this same error for all the packages. I have other server with same CENT 6.3 OS and it is working fine.
 
Old 10-15-2012, 09:53 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
try these command first

Code:
# yum clean all
# yum update
then try to install
 
Old 10-15-2012, 11:56 PM   #3
gopikrish14
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Deepak,

I have tried that also, but still same issue....
 
Old 10-16-2012, 12:07 AM   #4
sanjay87
Member
 
Registered: Oct 2011
Posts: 164

Rep: Reputation: Disabled
Hi

1. I Guess your rpm Db had been corrupted .To fix follow the link


http://forums.fedoraforum.org/showthread.php?t=269029
 
Old 10-16-2012, 02:49 AM   #5
gopikrish14
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your reply Sanjay.

The above link did not helped for me. Issue is not resolved and getting the same error. Below is the output

=======================================================================
[######## ~]# cd /var/lib/rpm/
[######## rpm]# ls -lrt
total 25644
-rw-r--r--. 1 root root 12288 Oct 12 21:38 Pubkeys
-rw-r--r--. 1 root root 12288 Oct 13 10:41 Triggername
-rw-r--r--. 1 root root 12288 Oct 13 16:17 Conflictname
-rw-r--r--. 1 root root 24576 Oct 15 13:41 Sigmd5
-rw-r--r--. 1 root root 40960 Oct 15 13:41 Sha1header
-rw-r--r--. 1 root root 69632 Oct 15 13:41 Requireversion
-rw-r--r--. 1 root root 106496 Oct 15 13:41 Requirename
-rw-r--r--. 1 root root 647168 Oct 15 13:41 Provideversion
-rw-r--r--. 1 root root 1351680 Oct 15 13:41 Providename
-rw-r--r--. 1 root root 18403328 Oct 15 13:41 Packages
-rw-r--r--. 1 root root 12288 Oct 15 13:41 Obsoletename
-rw-r--r--. 1 root root 12288 Oct 15 13:41 Name
-rw-r--r--. 1 root root 12288 Oct 15 13:41 Installtid
-rw-r--r--. 1 root root 12288 Oct 15 13:41 Group
-rw-r--r--. 1 root root 2605056 Oct 15 13:41 Filedigests
-rw-r--r--. 1 root root 376832 Oct 15 13:41 Dirnames
-rw-r--r--. 1 root root 1511424 Oct 15 13:41 Basenames
-rw-r--r-- 1 root root 770048 Oct 16 13:03 __db.004
-rw-r--r-- 1 root root 1318912 Oct 16 13:03 __db.003
-rw-r--r-- 1 root root 253952 Oct 16 13:03 __db.002
-rw-r--r-- 1 root root 24576 Oct 16 13:03 __db.001
[######## rpm]#
[######## rpm]#
[######## rpm]# rm -rf __db*
[######## rpm]# ls -lrt
total 23492
-rw-r--r--. 1 root root 12288 Oct 12 21:38 Pubkeys
-rw-r--r--. 1 root root 12288 Oct 13 10:41 Triggername
-rw-r--r--. 1 root root 12288 Oct 13 16:17 Conflictname
-rw-r--r--. 1 root root 24576 Oct 15 13:41 Sigmd5
-rw-r--r--. 1 root root 40960 Oct 15 13:41 Sha1header
-rw-r--r--. 1 root root 69632 Oct 15 13:41 Requireversion
-rw-r--r--. 1 root root 106496 Oct 15 13:41 Requirename
-rw-r--r--. 1 root root 647168 Oct 15 13:41 Provideversion
-rw-r--r--. 1 root root 1351680 Oct 15 13:41 Providename
-rw-r--r--. 1 root root 18403328 Oct 15 13:41 Packages
-rw-r--r--. 1 root root 12288 Oct 15 13:41 Obsoletename
-rw-r--r--. 1 root root 12288 Oct 15 13:41 Name
-rw-r--r--. 1 root root 12288 Oct 15 13:41 Installtid
-rw-r--r--. 1 root root 12288 Oct 15 13:41 Group
-rw-r--r--. 1 root root 2605056 Oct 15 13:41 Filedigests
-rw-r--r--. 1 root root 376832 Oct 15 13:41 Dirnames
-rw-r--r--. 1 root root 1511424 Oct 15 13:41 Basenames
[######## rpm]#
[######## rpm]#
[######## rpm]# rpm --rebuilddb
[######## rpm]# ls -lrt
total 23480
-rw-r--r-- 1 root root 12288 Oct 12 21:38 Pubkeys
-rw-r--r-- 1 root root 12288 Oct 13 10:41 Triggername
-rw-r--r-- 1 root root 12288 Oct 13 16:17 Conflictname
-rw-r--r-- 1 root root 24576 Oct 15 13:41 Sigmd5
-rw-r--r-- 1 root root 24576 Oct 15 13:41 Sha1header
-rw-r--r-- 1 root root 73728 Oct 15 13:41 Requireversion
-rw-r--r-- 1 root root 106496 Oct 15 13:41 Requirename
-rw-r--r-- 1 root root 643072 Oct 15 13:41 Provideversion
-rw-r--r-- 1 root root 1331200 Oct 15 13:41 Providename
-rw-r--r-- 1 root root 18382848 Oct 15 13:41 Packages
-rw-r--r-- 1 root root 12288 Oct 15 13:41 Obsoletename
-rw-r--r-- 1 root root 12288 Oct 15 13:41 Name
-rw-r--r-- 1 root root 12288 Oct 15 13:41 Installtid
-rw-r--r-- 1 root root 12288 Oct 15 13:41 Group
-rw-r--r-- 1 root root 2617344 Oct 15 13:41 Filedigests
-rw-r--r-- 1 root root 393216 Oct 15 13:41 Dirnames
-rw-r--r-- 1 root root 1495040 Oct 15 13:41 Basenames
[######## rpm]#
[######## rpm]# echo $?
0
[######## rpm]#
[######## rpm]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[######## rpm]#
[######## rpm]#
===========================================================================================
 
Old 10-16-2012, 03:08 AM   #6
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Hi


#rpm --rebuilddb -I Never find any db file created after rebuilding YUM

Check your /etc/yum.conf whether you had excluded package from installing

Last edited by jsaravana87; 10-16-2012 at 03:11 AM.
 
Old 10-16-2012, 03:14 AM   #7
gopikrish14
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi
I have pasted the yum.conf file below. Also i have tried with "gpgcheck=0" but still no luck.
==================================================================================================== ===========================
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
==================================================================================================== ======================
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reposync fails when trying to download packages from Red Hat sam.m Linux - Newbie 9 05-22-2012 10:20 AM
[SOLVED] Can't use yum to install packages. jimtony Fedora 5 01-11-2012 09:18 PM
Yum can't install packages mickeyboa Fedora 1 12-06-2009 12:38 PM
Uninstalled one of two kernels, yum keeps trying to download packages for it ttnunam Linux - General 3 11-16-2006 01:09 AM
After using yum to download packages I couldn't upgrade because of lack of space on / Worksman Linux - Software 2 07-26-2005 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration