LinuxQuestions.org
Help answer threads with 0 replies.
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 04-23-2019, 11:57 AM   #16
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 183

Rep: Reputation: Disabled

Does
Code:
yum check
produce anything helpful?
 
Old 04-23-2019, 01:38 PM   #17
newbie14
Member
 
Registered: Sep 2011
Posts: 562

Original Poster
Rep: Reputation: Disabled
Hi,
I just showed me this.


Quote:
[root@localhost ~]# yum check
Loaded plugins: fastestmirror
I waited for almost 10 minutes just there.
 
Old 04-23-2019, 02:21 PM   #18
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 183

Rep: Reputation: Disabled
yum check can take a while. I would start it and walk away. Last time I ran it, I think it took almost an hour.
 
Old 04-24-2019, 10:50 AM   #19
newbie14
Member
 
Registered: Sep 2011
Posts: 562

Original Poster
Rep: Reputation: Disabled
Hi Tyler,
I followed your advice and left it and below is the results.


Quote:
[root@localhost ~]# yum check
Loaded plugins: fastestmirror
nss-3.36.0-9.el6_10.x86_64 is a duplicate with nss-3.36.0-8.el6.x86_64
yum-3.2.29-81.el6.centos.0.1.noarch is a duplicate with yum-3.2.29-81.el6.centos.noarch
Error: check all
 
Old 04-24-2019, 11:42 AM   #20
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 183

Rep: Reputation: Disabled
This is no big deal. It looks like you have duplicate packages 'installed'. I am assuming you still have nss-3.36.0-9.el6_10.x86_64.rpm and yum-3.2.29-81.el6.centos.0.1.noarch.rpm from when you used rpm to reinstall everything manually using rpm. If not, download them again.

Try this:

Code:
tar cf /root/nss.tar $(rpm -ql nss)
tar cf /root/rpm.tar $(rpm -ql rpm)
rpm --force --nodeps -F nss-3.36.0-9.el6_10.x86_64.rpm yum-3.2.29-81.el6.centos.0.1.noarch.rpm
rpm -qa | egrep 'nss-3|yum-3
I am hoping that will get rpm to remove the older versions. It has been a while since I have ran into this. Worst case, you can tar up the files installed by rpm and yum, delete the packages, untar them, and reinstall the packages.
 
Old 04-24-2019, 12:15 PM   #21
newbie14
Member
 
Registered: Sep 2011
Posts: 562

Original Poster
Rep: Reputation: Disabled
Hi Tyler,
Mine is

Quote:
yum-3.2.29-81.el6.centos.noarch.rpm
nss-3.36.0-8.el6.x86_64.rpm
the nss is slight different then yours.

I tried running your commands.
Quote:
[root@localhost recover]# tar cf /root/nss.tar $(rpm -ql nss)
tar: Removing leading `/' from member names
[root@localhost recover]# tar cf root/nss.tar $(rpm -ql nss)
tar: root/nss.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
 
Old 04-24-2019, 07:00 PM   #22
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,971

Rep: Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771
@newbie14: I think what tyler2016 asks you to do is way beyond your current Linux skills.
Code:
tar cf /root/nss.tar $(rpm -ql nss)
tar cf /root/rpm.tar $(rpm -ql rpm)
The two tar commands above are meant to be backups of the files in the nss and rpm packages. These backups are needed in case the rpm --force -F command below causes more damage:
Code:
rpm --force --nodeps -F nss-3.36.0-9.el6_10.x86_64.rpm yum-3.2.29-81.el6.centos.0.1.noarch.rpm
rpm -qa | egrep 'nss-3|yum-3
You were confused by tar's informational message, thinking that it was a request to remove the leading slash:
Code:
 [root@localhost recover]# tar cf /root/nss.tar $(rpm -ql nss)
tar: Removing leading `/' from member names
In fact, the above is not an error message but just information. Tar has removed the leading slash. Your backup has been made and is in file /root/nss.tar.
Code:
[root@localhost recover]# tar cf root/nss.tar $(rpm -ql nss)
tar: root/nss.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Tar reports an error since there is no directory named root in your current path.

Last edited by berndbausch; 04-24-2019 at 07:01 PM.
 
Old 04-25-2019, 12:38 AM   #23
newbie14
Member
 
Registered: Sep 2011
Posts: 562

Original Poster
Rep: Reputation: Disabled
Hi Berndbaucsh,
Yes I got confused here. So what exactly should I run now to ensure I follow you guys correctly. Which command to run and should I create any directory ?

I want to learn further . What does this two commands do ? Why this needed in the first place ?
tar cf /root/nss.tar $(rpm -ql nss)
tar cf /root/rpm.tar $(rpm -ql rpm)
 
Old 04-25-2019, 09:00 AM   #24
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 183

Rep: Reputation: Disabled
Quote:
Originally Posted by newbie14 View Post
Hi Berndbaucsh,
Yes I got confused here. So what exactly should I run now to ensure I follow you guys correctly. Which command to run and should I create any directory ?

I want to learn further . What does this two commands do ? Why this needed in the first place ?
tar cf /root/nss.tar $(rpm -ql nss)
tar cf /root/rpm.tar $(rpm -ql rpm)
Those create backups of the packages that have multiple versions installed. Now that I think about it, I would add the full version to the rpm -ql to ensure you are getting the correct files. This is in case the attempt to force rpm's update process, which should remove the older versions goes awry and you aren't left with a system with no rpm or nss. nss is a crypto library that a lot of applications use (yum is one), so you don't want to make sure you have a working version. I meant for you to backup yum instead of rpm. It was a tired moment.

Try this:

Code:
cd /path/to/downloaded/rpms
tar cf /root/nss $(rpm -ql nss-3.36)
tar cf /root/yum $(rpm -ql yum-3.2.29-81.el6.centos.0.1.noarch)
rpm --force --nodeps -F nss-3.36.0-9.el6_10.x86_64.rpm yum-3.2.29-81.el6.centos.0.1.noarch.rpm
As mentioned earlier by berndbausch, tar's message about the leading slashes can be safely ignored. The tar command will still work as it should. If that doesn't let you do a yum reinstall '*', you can always remove the duplicate rpm's altogether with rpm and install the correct versions.

Last edited by tyler2016; 04-25-2019 at 09:02 AM.
 
Old 04-27-2019, 10:45 AM   #25
newbie14
Member
 
Registered: Sep 2011
Posts: 562

Original Poster
Rep: Reputation: Disabled
Hi Tyler,
I followed exactly as you mentioned. What you backing up is just the file which I have downloaded previous day right ?

Quote:
tar cf /root/nss $(rpm -ql nss-3.36)
tar: package: Cannot stat: No such file or directory
tar: nss-3.36: Cannot stat: No such file or directory
tar: is: Cannot stat: No such file or directory
tar: not: Cannot stat: No such file or directory
tar: installed: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
[root@localhost recover]# tar cf /root/yum $(rpm -ql yum-3.2.29-81.el6.centos.0.1.noarch)
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
tar: /var/lib/yum/plugins: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
[root@localhost recover]# rpm --force --nodeps -F nss-3.36.0-9.el6_10.x86_64.rpm yum-3.2.29-81.el6.centos.0.1.noarch.rpm
error: open of nss-3.36.0-9.el6_10.x86_64.rpm failed: No such file or directory
error: open of yum-3.2.29-81.el6.centos.0.1.noarch.rpm failed: No such file or directory
My nss version in the recover folder is
Quote:
nss-3.36.0-8.el6.x86_64.rpm
and yum is
Quote:
yum-3.2.29-81.el6.centos.noarch.rpm
 
Old 04-30-2019, 10:06 AM   #26
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 183

Rep: Reputation: Disabled
You are backing up rpm in case the attempt to resolve the conflict fails. Then you can restore from the tar files and fix your system. Are the files you downloaded still on your system? Rpm doesn't know anything about repositories, so you have to give it the location of the package files you wish to install as command line arguments.

Code:
 tar cf /root/nss $(rpm -ql nss-3.36)
tar: package: Cannot stat: No such file or directory
tar: nss-3.36: Cannot stat: No such file or directory
tar: is: Cannot stat: No such file or directory
tar: not: Cannot stat: No such file or directory
tar: installed: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
[root@localhost recover]# tar cf /root/yum $(rpm -ql yum-3.2.29-81.el6.centos.0.1.noarch)
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
tar: /var/lib/yum/plugins: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
[root@localhost recover]# rpm --force --nodeps -F nss-3.36.0-9.el6_10.x86_64.rpm yum-3.2.29-81.el6.centos.0.1.noarch.rpm
error: open of nss-3.36.0-9.el6_10.x86_64.rpm failed: No such file or directory
error: open of yum-3.2.29-81.el6.centos.0.1.noarch.rpm failed: No such file or directory
Try backing up nss again. I didn't realize the .0 was part of the package name. Don't worry about the warnings. The added option prevents tar from failing when files are missing.

Code:
tar cf /root/nss2.tar --ignore-failed-read $(rpm -ql nss-3.36.0)
tar cf /root/yum2.tar --ignore-failed-read $(rpm -ql yum)
Do the same rpm command again, except this time make sure the files are available in your current working directory.

Last edited by tyler2016; 04-30-2019 at 10:13 AM.
 
Old 05-01-2019, 06:08 AM   #27
newbie14
Member
 
Registered: Sep 2011
Posts: 562

Original Poster
Rep: Reputation: Disabled
Hi Tyler,
So you are backing up using tar but the original file is still in the recover folder right. Yes I still have all the .rpm which you ask me to download is still in one of the folders. The folder is called recover.. So you can see I cd into it and ran this.
Quote:
cd recover
[root@localhost recover]# tar cf /root/nss2.tar --ignore-failed-read $(rpm -ql nss-3.36.0)
tar: Removing leading `/' from member names
[root@localhost recover]# tar cf /root/yum2.tar --ignore-failed-read $(rpm -ql yum)
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
tar: /var/lib/yum/plugins: Warning: Cannot stat: No such file or directory
tar: /var/lib/yum/plugins: Warning: Cannot stat: No such file or directory
 
Old 05-01-2019, 06:20 AM   #28
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 183

Rep: Reputation: Disabled
I am assuming the rpm files are there from when you downloaded them. Those messages are fine. It worked correctly. At this point, try using rpm as in post 24 to force an upgrade of the packages.
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 12 04-25-2019 07:33 AM
[SOLVED] rpm command and yum command not found Joaquin Red Hat 27 04-09-2013 09:17 AM
[SOLVED] Centos 5 Error :- -bash: yum: command not found sachinsud Linux - Server 56 06-21-2012 07:41 PM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 11:25 AM
Directory not found; -xzvf not found; Makefile not found RealGomer Linux - Software 4 09-20-2010 10:02 AM

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

All times are GMT -5. The time now is 07:44 AM.

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