LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2014, 05:36 PM   #1
asilentmurmur
Member
 
Registered: Mar 2005
Location: Washington DC area
Posts: 212

Rep: Reputation: 30
ahhh!! I cant login as root or any user at all nor install anything


Hello all

I am running into some trouble when trying to install packages on my RHEL 6.6 distro which is running off of a USB flash drive. Let me give you a bit of a backstory on this whole ordeal:

I attended a Red Hat workshop a few days ago and they provided us all with USB flash drives containing RHEL 6.6 which can be booted from the USB. Well after the work shop they told us that we cannot use their RHN account with the flash drive that they gave us so we had to unsubscribe from RHN. When I got home I added the CentOS 6.6 repo to /etc/yum.repos.d/ and I was able to download packages using yum and the CentOS 6.6 repo. Well today I was trying to install the Virtualization Client group using :

yum groupinstall "Virtualization Client"
and I received an error message saying that there is a multilib discrepancy between cyrus-sasl-lib-2.1.23-15.el6_6.1.x86_64 and the i686 version. So naturally I thought to myself "why not remove the cyrus-sasl-lib version that is currently installed and them do a yum install cyrus-sasl-lib to install the correct version?" well thats where I made my big mistake. I ran

rpm -e --nodeps cyrus-sasl-lib

which did remove the package but now whenever I try to do a yum install or a yum update or a yum anything it tells me:

Code:
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: 
    libsasl2.so.2: cannot open shared object file: no such file or directory
I then figured I should just download the rpm for cyrus-sasl-lib and install it using rpm -Uvh --replacepkgs cyrus-sasl-lib etc etc.rpm (i found these instructions on a website)
but whenever I attempt to run the command I receive:

Code:
error: cyrus-sasl-lib-2.1.23-15.el6_6.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: BAD
error: cyrus-sasl-lib-2.1.23-15.el6_6.1.x86_64.rpm cannot be installed.
A bit of research on the internet informed me that the rpm db might be corrupted so I ran

rpm -vv --rebuilddb
which ran successfully (I think)

but still whenever I try to run the rpm -Uvh or rpm -ivh or RPM anything command to install the cyrus-sasl-lib rpm I still get teh same error messages as above.

I have no idea what to do. I had to boot into single user mode just to be able to run any commands because 1) The system will not allow me to su into root nor login as ANY user whatsover (this is in init 3) and also the system will not boot into the GUI at all, it just hangs there with the "RHEL 6" banner on the screen.

I am totally lost as to what I should do to fix this problem. PLEASE help! All help is greatly appreciated..

I do not want to have to reinstall because I have no idea how the Red Hat team was able to install the distro to the USB and be able to boot from the USB ! Also I am able to write files to the USB booted distro in a persistent manner, i.e. the files do not disappear after I reboot.

Thanks everyone!
 
Old 12-21-2014, 05:56 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,412

Rep: Reputation: Disabled
Quote:
Originally Posted by asilentmurmur View Post
I then figured I should just download the rpm for cyrus-sasl-lib and install it using rpm -Uvh --replacepkgs cyrus-sasl-lib etc etc.rpm (i found these instructions on a website)
but whenever I attempt to run the command I receive:

Code:
error: cyrus-sasl-lib-2.1.23-15.el6_6.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: BAD
error: cyrus-sasl-lib-2.1.23-15.el6_6.1.x86_64.rpm cannot be installed.
So it chokes on the signature. I guess you could try the --nosignature and --nodigest options, if you're certain the package is in fact good.
 
Old 12-21-2014, 07:07 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,335
Blog Entries: 55

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
Nooowwwww! 0xC105B9DE is the official signing key for CentOS 6. It should reside in /etc/pki/rpm-gpg/ when the EPEL release RPM is installed. If it isn't then please install the EPEL release RPM properly. Then fix it instead of subverting one of RPM's vital features:
Code:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 
Old 12-21-2014, 07:20 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,412

Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Nooowwwww! 0xC105B9DE is the official signing key for CentOS 6. It should reside in /etc/pki/rpm-gpg/ when the EPEL release RPM is installed. If it isn't then please install the EPEL release RPM properly. Then fix it instead of subverting one of RPM's vital features:
Code:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Well, there's a chance the OP won't find the CentOS signing key in /etc/pki/rpm-gpg, since he isn't actually running CentOS at all, but rather RHEL 6.6, which he's trying to update/repair using packages from a CentOS repository.
 
Old 12-21-2014, 07:35 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,335
Blog Entries: 55

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
He said
Quote:
When I got home I added the CentOS 6.6 repo
so if he didn't do that "the right way", then yeah, so much for safety belts...
 
Old 12-22-2014, 05:26 AM   #6
asilentmurmur
Member
 
Registered: Mar 2005
Location: Washington DC area
Posts: 212

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Ser Olmy View Post
So it chokes on the signature. I guess you could try the --nosignature and --nodigest options, if you're certain the package is in fact good.
Hello all thank you for responding I really appreciate it

I tried to install the rpm using --nosignature and --nodigest and I did not receive the error message any more. The only problem is that it is asking for various dependencies to be installed. So i downloaded the dependencies, glibc and db4-4.7.25-18 and when I tried to install them using --nosignature and --nodigest, it asked for more dependencies to be resolved. So I downloaded those dependencies for glibc, which are libgcc, nss-softokn-freebl, basesystem, and glibc-common and then attempted to install them using rpm -ivh --nodigest --nosignature and in turn I get asked for more dependencies.


Any idea how I should resolve this? Also regarding the GPG for CentOS.. I dont have it in my /etc/pki/rpm-gpg/ directory. I did download it to an external drive and transferred it to the broken installation, and using rpm --import I installed it but I still do not see it in my rpm-gpg directory nor did I resolve any issues.

---------- Post added 12-22-14 at 06:27 AM ----------

Quote:
Originally Posted by unSpawn View Post
He said so if he didn't do that "the right way", then yeah, so much for safety belts...
So what would be the right way to set up the repo ?
 
Old 12-22-2014, 08:26 AM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,393

Rep: Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014
You DO NOT just add the CentOS repo to an RHEL OS and call it good! You must actually CHANGE your OS from RHEL to CentOS, which is much more involved than just added a repo. If you didn't do that properly, then you've probably screwed up the system pretty bad. There are hundreds of guides online that walk you though changing an RHEL installation to CentOS. Not a single one of which tells you to simply add the CentOS repo and start installing packages.

Any chance you can get a replacement USB drive, or a replacement image for it? Was there anything on there except a vanilla installation? If not, then you'd be best off just downloading a CentOS ISO and installing it from scratch.

Last edited by suicidaleggroll; 12-22-2014 at 08:29 AM.
 
Old 12-22-2014, 09:18 AM   #8
asilentmurmur
Member
 
Registered: Mar 2005
Location: Washington DC area
Posts: 212

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by suicidaleggroll View Post
You DO NOT just add the CentOS repo to an RHEL OS and call it good! You must actually CHANGE your OS from RHEL to CentOS, which is much more involved than just added a repo. If you didn't do that properly, then you've probably screwed up the system pretty bad. There are hundreds of guides online that walk you though changing an RHEL installation to CentOS. Not a single one of which tells you to simply add the CentOS repo and start installing packages.

Any chance you can get a replacement USB drive, or a replacement image for it? Was there anything on there except a vanilla installation? If not, then you'd be best off just downloading a CentOS ISO and installing it from scratch.
Hello

thank you for your response. I would like to install CentOS on the USB instead of RHEL so I dont have to go through all of the crazy trouble again. I searched online for decent tutorials which explain how to install CentOS on a bootable USB and to successfully boot from it. But I have not been able to find any thing that works. My laptop is a Macbook Air and I want to be able to use the Macbook Air to boot into the USB and run CentOS smoothly from the USB. Anyone have any ideas if this will work?
 
Old 12-23-2014, 03:55 PM   #9
lsalab
LQ Newbie
 
Registered: Jan 2009
Posts: 16

Rep: Reputation: 1
If what you want is to have a CentOS test machine, why not just run it on a virtual machine (VirtualBox, VMware, etc.) ?

You could just create a small VM to run the CentOS.
 
Old 12-23-2014, 08:38 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,015

Rep: Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454
asilentmurmur

as above you can not just add the cent repos to RHEL6

-- That will NOT work

if you are not going to buy the required support contract
then MIGRATE to cent 6.6

http://wiki.centos.org/HowTos/Migrat...=%28migrate%29

cent uses version numbers DIFFERENT THAN redhat uses ( but just a bit higher )

that way migration is easy



As to a bootable thumb drive

HOW did you make it ????
that is VERY important !!!

cent6 dose not have a live cd
7.0 dose
http://mirror.rackspace.com/CentOS/7/isos/x86_64
"CentOS-7.0-1406-x86_64-livecd.iso"

for a LIVE image you can just use "dd" to put the image on the drive

for a NON live image you NEED to do a normal INSTALL to it

burn the dvd "CentOS-7.0-1406-x86_64-DVD.iso" to a dvd
put the thumb drive AND the dvd in the computer
then reboot

then INSTALL to the thumb drive

7 "should" auto install grub to the thumb
BUT IT MIGHT NOT!!!!! so pay attention and make sure it DOSE

Last edited by John VV; 12-23-2014 at 08:47 PM.
 
  


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
Can't login to root -- What protocols manage user login besides PAM? xtiansimon Linux - Security 9 09-29-2014 11:30 AM
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
New install 9.1 no root user at login screen glennl Mandriva 5 09-03-2003 02:39 PM


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