LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-29-2018, 06:05 AM   #1
anand25021998
LQ Newbie
 
Registered: May 2018
Posts: 2

Rep: Reputation: Disabled
Error while updating RPM multiple times


While updating a RPM multiple times using yum repository, does having the older version of the RPM in /var/cache/yum/RepoName/packages (because of some past yum update) cause problem in updating the RPM ?

On updating the RPM first time it works fine and a repo cache is created in /var/cache directory having the updated RPM. Now if I update again without removing the RPM from yum cache, the updation fails with 'No more mirrors to try error'. However if I remove the older version of RPM and then do 'yum update', it works fine.

pls explain..
 
Old 05-29-2018, 06:14 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,436

Rep: Reputation: Disabled
Quote:
Originally Posted by anand25021998 View Post
While updating a RPM multiple times using yum repository, does having the older version of the RPM in /var/cache/yum/RepoName/packages (because of some past yum update) cause problem in updating the RPM ?

On updating the RPM first time it works fine and a repo cache is created in /var/cache directory having the updated RPM. Now if I update again without removing the RPM from yum cache, the updation fails with 'No more mirrors to try error'. However if I remove the older version of RPM and then do 'yum update', it works fine.

pls explain..
It would help to state exactly which Linux distribution you are using first of all.

From what you say it looks like a problem with yum finding a mirror and not a problem with yum's cache.
Can you post the output in full from the following command using CODE tags:

Code:
yum check-update
 
Old 05-29-2018, 06:47 AM   #3
anand25021998
LQ Newbie
 
Registered: May 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
The linux distribution is Fedora 18.

'yum update' lists the packages which are to be updated and then it gives the following error:
[Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=Eos-local clean metadata
Trying other mirror.
[Errno 256] No more mirrors to try.
Yum failed for some unknown reason. Trying again may help.

1) yum clean metadata is already in the script so thats not a problem.
2)I have verified the checksums of the rpms and they are all fine.
3) If I run 'yum clean all' instead of 'yum clean metadata' , the updation is always successful. alternatively if I run the 'yum clean metadata' and clean the older versions of the rpms manually from the yum cache and then do 'yum update', then also it works fine.
4)My conclusion is every time I run the 'yum clean metadata' plus cleaning the older rpms from cache, It works. but not cleaning the older rpms may or may not lead to successful updation.
5)I am updating packages in the client from a repository I built myself on a server.
6)debug level 10 output shows that downloading of RPMs fails partially.

p.s.- Sorry I can't post the output because of privacy issues.
 
Old 05-29-2018, 10:34 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You could obfuscate the private details and then post the output.
 
  


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
rpm changes are not updating immediately and updating after some time. shri_22ram Linux - Newbie 1 05-13-2013 01:50 PM
Ubuntu 10.04.1 loaded multiple times nowellah Linux - Desktop 2 10-18-2010 03:40 PM
crontab - how to run multiple times blizunt7 Linux - General 4 12-09-2008 10:23 AM
Konqueror opens multiple times sploit Linux - Newbie 18 07-14-2007 09:11 AM
running wget multiple times quickk Linux - Newbie 1 09-16-2004 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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