LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-03-2012, 08:29 AM   #46
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled

Before you do any of the above, do you have a /etc/rpm/platform file?
 
Old 10-03-2012, 04:17 PM   #47
John VV
Guru
 
Registered: Aug 2005
Posts: 13,452

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
It would have been a VERY good idea to have informed us in the FIRST post
that yum was working UNTIL you installed rpmforge repo and installed Dante

rpmforge is KNOWN to be incompatible with some rhel/cent base system files

now rpmforge on centos 6 is A LOT better than on 5

But it will still REPLACE base SYSTEM FILES with DIFFERENT versions


it would have been nice to know that AND AND that you are sshing into a remote server in the first post

now autotools ( including make) are NORMALLY NOT NOT INSTALLED on a server

and are only installed for as long as needed to build software then UNINSTALLED

so HOW did you install rpmforge ?
like this ?
Code:
su -
yum install rpmforge-release
or
some other way
http://wiki.centos.org/AdditionalRes...ories/RPMForge

DID you also install AND CONFIGURE
"yum-plugin-priorities"
and configure it!!!
http://wiki.centos.org/PackageManagement/Yum/Priorities
adding a line to the rpmforge repo file to make rpmforge a lower prioritie
SEE:
http://wiki.centos.org/AdditionalResources/Repositories
and heed all the warnings
or better yet on a remote server it is better to use "ProtectBase"
http://wiki.centos.org/PackageManage...um/ProtectBase
and lock the system from changing some files

( on my Scientific linux 6.3 os rpmforge wants to replace 1300 -- yes 1,300 programs with different versions)

contact your hosting company and use the tech support that they have
you will be needing to change system files that you might need to have physical access to do

or as has been suggested taring up extracted rpms and manually coping them over to the remote machine
and manually copy/paste them in the correct places
 
Old 10-03-2012, 05:02 PM   #48
Terminator3000
Member
 
Registered: Jun 2012
Distribution: Centos 6 & Fluxbox
Posts: 86

Rep: Reputation: Disabled
You can do a net install of Centos 6 which is now on 6.3. If you follow the process as described you will have no problems getting your yum working.
 
Old 10-04-2012, 05:33 AM   #49
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
Before you do any of the above, do you have a /etc/rpm/platform file?
From your straces provided, it looks like you dont.


Code:
rpm.strace:open("/etc/rpm/platform", O_RDONLY)     = -1 ENOENT (No such file or directory)
yum.strace:open("/etc/rpm/platform", O_RDONLY)     = -1 ENOENT (No such file or directory)
run the following, and see what happens.

Code:
echo "ia32e-redhat-linux" > /etc/rpm/platform
 
Old 10-04-2012, 06:54 AM   #50
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
From your straces provided, it looks like you dont.


Code:
rpm.strace:open("/etc/rpm/platform", O_RDONLY)     = -1 ENOENT (No such file or directory)
yum.strace:open("/etc/rpm/platform", O_RDONLY)     = -1 ENOENT (No such file or directory)
run the following, and see what happens.

Code:
echo "ia32e-redhat-linux" > /etc/rpm/platform
no i have not that file. i run the command and the file created but no success.

i have a virtual machine with centos installed that has not this file but rpm and yum work with no problem.
 
Old 10-04-2012, 07:04 AM   #51
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
It would have been a VERY good idea to have informed us in the FIRST post
that yum was working UNTIL you installed rpmforge repo and installed Dante

rpmforge is KNOWN to be incompatible with some rhel/cent base system files

now rpmforge on centos 6 is A LOT better than on 5

But it will still REPLACE base SYSTEM FILES with DIFFERENT versions


it would have been nice to know that AND AND that you are sshing into a remote server in the first post

now autotools ( including make) are NORMALLY NOT NOT INSTALLED on a server

and are only installed for as long as needed to build software then UNINSTALLED

so HOW did you install rpmforge ?
like this ?
Code:
su -
yum install rpmforge-release
or
some other way
http://wiki.centos.org/AdditionalRes...ories/RPMForge

DID you also install AND CONFIGURE
"yum-plugin-priorities"
and configure it!!!
http://wiki.centos.org/PackageManagement/Yum/Priorities
adding a line to the rpmforge repo file to make rpmforge a lower prioritie
SEE:
http://wiki.centos.org/AdditionalResources/Repositories
and heed all the warnings
or better yet on a remote server it is better to use "ProtectBase"
http://wiki.centos.org/PackageManage...um/ProtectBase
and lock the system from changing some files

( on my Scientific linux 6.3 os rpmforge wants to replace 1300 -- yes 1,300 programs with different versions)

contact your hosting company and use the tech support that they have
you will be needing to change system files that you might need to have physical access to do

or as has been suggested taring up extracted rpms and manually coping them over to the remote machine
and manually copy/paste them in the correct places

first sorry for delay in giving useful information.
i installed rpmforge like this:

Code:
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
but i removed the files related to this repository and edited repository config file.

Quote:
or as has been suggested taring up extracted rpms and manually coping them over to the remote machine
and manually copy/paste them in the correct places
where and what is appropriate files to be copied for rpm and yum packages?
 
Old 10-04-2012, 07:56 AM   #52
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
no i have not that file. i run the command and the file created but no success.

i have a virtual machine with centos installed that has not this file but rpm and yum work with no problem.
so rpm -qa returns nothing? Can you give the output of :

Code:
strace rpm -qa | tail -20
 
Old 10-04-2012, 08:27 AM   #53
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
so rpm -qa returns nothing? Can you give the output of :

Code:
strace rpm -qa | tail -20
this is the output:
strace.txt
 
Old 10-04-2012, 03:57 PM   #54
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
this is the output:
Attachment 10866
I think you snipped the end of the trace off.

Code:
mmap(0x3fdea19000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x3fdea19000
close(3)                                = 0
open("/lib64/libplc4.so", O_RDONLY
can you output it to a file again, and upload the /tmp/strace.txt file?

Code:
strace -o /tmp/strace.txt rpm -qa
 
Old 10-04-2012, 08:39 PM   #55
John VV
Guru
 
Registered: Aug 2005
Posts: 13,452

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
Quote:
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
so you installed BOTH the 64 bit AND the 32 bit repo
you most likely have a Frankenstein'ed computer
with 32 bit versions randomly mixed in with the 64 bit versions



but with yum AND rpm busted ( the two tools NEEDED to fix things )
that leaves tar and ssh


If this is a 32 bit system USE THE 32BIT RPMS!!
if 64 bit use the 64 bit rpms

on the machine you are using to ssh into the remote box
for the older 6.2
the repos have been moved to the historical vault
see the README in any of the mirrors
http://centos.arcticnetwork.ca/6.2/
--- the vault ---
http://vault.centos.org/6.2/os/x86_64/Packages/
--- updates ---
http://vault.centos.org/6.2/updates/x86_64/Packages/

start with rpm ( but i am guessiung there will be a few other NEEDED
like the last 20 rf rpm's need replacing with the NOT rf versions -- if possible )
read the yum log for that

and replace any i686 versions with the x86_64 versions

http://vault.centos.org/6.2/updates/x86_64/Packages/
rpm-4.8.0-19.el6_2.1.x86_64.rpm

on the box you are sitting at
use "fileroller" to EXTRACT -- not install
then tar up the archive
ssh it over to the remote box
untar it and copy it to where it belongs " / " or "/usr" depending on HOW you archived it




reinstalling will take 30 Min.
fussing with this will take about another two weeks

Last edited by John VV; 10-04-2012 at 08:44 PM.
 
Old 10-05-2012, 05:22 AM   #56
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
but with yum AND rpm busted ( the two tools NEEDED to fix things )
that leaves tar and ssh
YUM sits on top of RPM. If RPM is broken, then YUM will be broken also, no?

Quote:
reinstalling will take 30 Min.
fussing with this will take about another two weeks
2 weeks minimum!!

I was thinking along the lines of, because he has installed both archs, would the /etc/rpm/platform file be trying to mis-match said archs? Interested on your thoughts.
 
Old 10-12-2012, 08:16 AM   #57
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
SOLVED
hi
sorry for delay in replying.
Finally i found the cause:
Code:
/etc/rc.d/init.d/dsocksify start
i don't know what is this but i found my console log and saw that i run this command and after that no YUM or RPM.
but it solved with:
Code:
/etc/rc.d/init.d/dsocksify stop
thank you so much for giving me your valuable time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 01:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration