CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  yum hang on 5.4 after manually remove / add packages with force

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  oas_public
      oas_public
yum hang on 5.4 after manually remove / add packages with force
#1
Newbie
Joined: 2009/9/10
From
Posts: 7
Hi List,

for a x problem I reinstall the complete x packages. I remove some packages with force.
Before this yum works perfect. Exact at this time we have problem with our internet connections and yum hangs somewhere when yum load the repositories and or start the update process.

Now yum hangs at start from the command. I can start yum some times and no locking error is rise.

strace brings:

stat("/var/lib/rpm/Packages", {st_mode=S_IFREG|0644, st_size=79855616, ...}) = 0
open("/var/lib/rpm/Packages", O_RDONLY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
read(4, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10\0\0\306K\0\0"..., 512) = 512
close(4) = 0
open("/var/lib/rpm/Packages", O_RDONLY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=79855616, ...}) = 0
futex(0x2b72ede63934, FUTEX_WAIT, 1, NULL <unfinished ...>


when i execute yum update

System:
Linux kbhws18 2.6.18-164.2.1.el5.plus #1 SMP Fri Oct 9 12:27:45 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 5.4 (Final)

I found a bug:
https://bugzilla.redhat.com/show_bug.cgi?id=444321


can someone help me or give me a hint?

thanks for all

regards Dietmar
Posted on: 2009/11/6 14:32
Create PDF from Post Print
Top
  •  oas_public
      oas_public
Re: yum hang on 5.4 after manually remove / add packages with force
#2
Newbie
Joined: 2009/9/10
From
Posts: 7
If I try to rebuild the rpm db it run might into the same problem:

stat("/var/lib/rpm/Packages", {st_mode=S_IFREG|0644, st_size=79855616, ...}) = 0
open("/var/lib/rpm/Packages", O_RDONLY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
read(4, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10\0\0\306K\0\0"..., 512) = 512
close(4) = 0
open("/var/lib/rpm/Packages", O_RDONLY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=79855616, ...}) = 0
futex(0x2b45b4542ef4, FUTEX_WAIT, 1, NULL

It seems to be more a rpm related problem instead yum?

regards Dietmar
Posted on: 2009/11/6 15:43
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: yum hang on 5.4 after manually remove / add packages with force
#3
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Did you do
rm /var/lib/rpm/__db.00*
rpm --rebuilddb
?
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/7 0:23
Create PDF from Post Print
Top
  •  oas_public
      oas_public
Re: yum hang on 5.4 after manually remove / add packages with force
#4
Newbie
Joined: 2009/9/10
From
Posts: 7
Hi,

this is the solution.

With remove some files and rebuild db yum update works like expected :-)

Thanks for the tip

regards Dietmar
Posted on: 2009/11/8 9:59
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com