LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-01-2012, 08:20 AM   #16
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Angry


As i mentioned in "YUM and RPM dose not do any thing!", i have the same problem with rpm.
And nothing happened
Code:
[root@armansoft ~]# wget http://mirror.vit.com.tr/mirror/CentOS/6.2/os/x86_64/Packages/yum-3.2.29-22.el6.centos.noarch.rpm
--2012-10-01 09:10:33--  http://mirror.vit.com.tr/mirror/CentOS/6.2/os/x86_64/Packages/yum-3.2.29-22.el6.centos.noarch.rpm
Resolving mirror.vit.com.tr... 79.171.16.108
Connecting to mirror.vit.com.tr|79.171.16.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1010148 (986K) [application/x-rpm]
Saving to: قyum-3.2.29-22.el6.centos.noarch.rpmق

100%[======================================>] 1,010,148    437K/s   in 2.3s

2012-10-01 09:10:36 (437 KB/s) - قyum-3.2.29-22.el6.centos.noarch.rpmق

[root@armansoft ~]#  rpm -Uvh yum-3.2.29-22.el6.centos.noarch.rpm
[root@armansoft ~]#
 
Old 10-01-2012, 09:15 AM   #17
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
As i mentioned in "YUM and RPM dose not do any thing!", i have the same problem with rpm.
And nothing happened
Code:
[root@armansoft ~]# wget http://mirror.vit.com.tr/mirror/CentOS/6.2/os/x86_64/Packages/yum-3.2.29-22.el6.centos.noarch.rpm
--2012-10-01 09:10:33--  http://mirror.vit.com.tr/mirror/CentOS/6.2/os/x86_64/Packages/yum-3.2.29-22.el6.centos.noarch.rpm
Resolving mirror.vit.com.tr... 79.171.16.108
Connecting to mirror.vit.com.tr|79.171.16.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1010148 (986K) [application/x-rpm]
Saving to: قyum-3.2.29-22.el6.centos.noarch.rpmق

100%[======================================>] 1,010,148    437K/s   in 2.3s

2012-10-01 09:10:36 (437 KB/s) - قyum-3.2.29-22.el6.centos.noarch.rpmق

[root@armansoft ~]#  rpm -Uvh yum-3.2.29-22.el6.centos.noarch.rpm
[root@armansoft ~]#
so yum list or rpm -qa return nothing still, right?
 
Old 10-01-2012, 09:21 AM   #18
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
Try the following commands and reply (via attachment) the strace files in /tmp. There are a couple of common shared dependencies in each app.

Quote:
strace -o /tmp/yum.strace yum list
strace -o /tmp/rpm.strace rpm -qa
 
Old 10-01-2012, 09:33 AM   #19
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
before you do that, try this.

Quote:
tar cvf /tmp/rpmdb.tar /var/lib/rpm/__db.00*
rm -f /var/lib/rpm/__db.00*
rpm -qa

Last edited by Ginola; 10-01-2012 at 12:59 PM. Reason: I didn't want to advise a use to delete something with a back tar file...
 
Old 10-01-2012, 06:53 PM   #20
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Can you run other commands?

Does the terminal behave normally except for this command?
 
Old 10-01-2012, 08:29 PM   #21
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
At this point with both yum and rpm not even errorring

but giving no output

I would reinstall but with CentOS 6.3 ( centOS 6.2 is End of life)

something is royally messed up
 
Old 10-01-2012, 11:37 PM   #22
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
i don't know what happened but the result is here:
Code:
[root@armansoft apache-tomcat-7.0.25]#  tar cvf /tmp/rpmdb.tar /var/lib/rpm/__db.00*
tar: Removing leading `/' from member names
tar: /var/lib/rpm/__db.00*: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
[root@armansoft apache-tomcat-7.0.25]#  rm -f /var/lib/rpm/__db.00*
[root@armansoft apache-tomcat-7.0.25]#  rpm -qa
[root@armansoft apache-tomcat-7.0.25]#
Quote:
Originally Posted by Ginola View Post
before you do that, try this.
 
Old 10-01-2012, 11:44 PM   #23
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
i attached the result. please remove '.log' from the end of filename.
Quote:
Originally Posted by Ginola View Post
Try the following commands and reply (via attachment) the strace files in /tmp. There are a couple of common shared dependencies in each app.
Attached Files
File Type: log strace.rar.log (16.2 KB, 6 views)

Last edited by parian66; 10-01-2012 at 11:46 PM.
 
Old 10-02-2012, 03:08 AM   #24
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
i attached the result. please remove '.log' from the end of filename.
can you check the state of your /usr/lib/rpm/rpmrc file.

also, what is the contents of /root/.rpmrc ?
 
Old 10-02-2012, 03:21 AM   #25
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
I attached both.
Quote:
Originally Posted by Ginola View Post
can you check the state of your /usr/lib/rpm/rpmrc file.

also, what is the contents of /root/.rpmrc ?
Attached Files
File Type: log attachment.rar.log (2.8 KB, 17 views)
 
Old 10-02-2012, 04:08 AM   #26
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
what is the last entry in your yum log?

Quote:
tail /var/log/yum.log
 
Old 10-02-2012, 04:53 AM   #27
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
A question???

Why are you even trying to back up the rpm database when the program "rpm" is not working ??
if it is not working you can NOT update the rpm database

IF yum and rpm ever worked ( i do not know if they ever did )

if they DID in the past work then you did "something" most likely installed something that was VERY incompatible
( rpmforge and random rpms from the net can do this )

if they NEVER worked
something is VERY VERY WRONG with the install
and the TWO programs needed to fix it are NOT WORKING


i would reinstall with CentOS 6.3
seeing as you would have HAD to upgrade cent anyway , with 6.2 now past it's END OF LIFE

one thing you can try is this
but it is NOT going to fix it
Code:
strace rpm
you "should get a very long output
at the beginning though will be something that looks like this
Code:
execve("/bin/rpm", ["rpm"], [/* 97 vars */]) = 0
brk(0)                                  = 0x604000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x????c????000
if there is then it is installed but broken

Last edited by John VV; 10-02-2012 at 04:58 AM.
 
Old 10-02-2012, 04:55 AM   #28
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Code:
[root@armansoft ~]# tail /var/log/yum.log
Feb 11 15:36:34 Erased: postgresql-plperl
Feb 11 15:36:34 Erased: postgresql-server
Feb 11 15:36:35 Erased: postgresql
Feb 18 07:16:40 Installed: cvs-1.11.23-11.el6_0.1.x86_64
Feb 22 06:00:53 Installed: 2:xinetd-2.3.14-33.el6.x86_64
Sep 25 05:32:04 Installed: miniupnpc-1.5-1.el6.rf.x86_64
Sep 25 05:32:05 Installed: dante-1.3.2-1.el6.rf.x86_64



[root@armansoft ~]#
Quote:
Originally Posted by Ginola View Post
what is the last entry in your yum log?
 
Old 10-02-2012, 05:12 AM   #29
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Yes,they worked in the past. is there any way to upgrade to 6.3 without losing installed program like cvs, tomcat, postgres , ...?
Quote:
Originally Posted by John VV View Post
A question???

Why are you even trying to back up the rpm database when the program "rpm" is not working ??
if it is not working you can NOT update the rpm database

IF yum and rpm ever worked ( i do not know if they ever did )

if they DID in the past work then you did "something" most likely installed something that was VERY incompatible
( rpmforge and random rpms from the net can do this )

if they NEVER worked
something is VERY VERY WRONG with the install
and the TWO programs needed to fix it are NOT WORKING


i would reinstall with CentOS 6.3
seeing as you would have HAD to upgrade cent anyway , with 6.2 now past it's END OF LIFE

one thing you can try is this
but it is NOT going to fix it
Code:
strace rpm
you "should get a very long output
at the beginning though will be something that looks like this
Code:
execve("/bin/rpm", ["rpm"], [/* 97 vars */]) = 0
brk(0)                                  = 0x604000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x????c????000
if there is then it is installed but broken
 
Old 10-02-2012, 06:06 AM   #30
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
Yes,they worked in the past. is there any way to upgrade to 6.3 without losing installed program like cvs, tomcat, postgres , ...?
Since the yum.log suggests this was working a week ago, did you manage to clean the yum cache as a last action? The reason I ask is, it looks like ( from the strace log) that rpm never even gets to those dirs.

Yeah, I'd upgrade as suggested above.
 
  


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
yum remove rpm --> how to reinstall rpm npubudu Linux - Software 5 01-25-2007 08:08 AM
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 04:55 PM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 03:03 PM
i need some help with this apt and yum thing amarillo Fedora 9 10-06-2004 12:04 AM
RPM Problem... What the hell is wrong with this thing? Darx Fedora 9 03-20-2004 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:19 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