LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-16-2008, 08:06 AM   #1
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
problem in yum


Hi

i am facing problem with yum, when I enter the command
yum update
it gives me error
Existing lock /var/run/yum.pid: another copy is running. Aborting.
there is no file exist and no process is running.
I could not find the solution plz help

system is:
.localdomain[/home/sohail/Desktop]# uname -a
Linux localhost.localdomain 2.6.15-lxp2 #1 Sun Mar 19 15:14:55 MSK 2006 i686 i686 i386 GNU/Linux
yum package is:
root@localhost.localdomain[/home/sohail/Desktop]# rpm -q yum
yum-2.0.3-0.fdr.1.rh90
 
Old 12-16-2008, 08:12 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
rm /var/run/yum.pid
 
Old 12-16-2008, 08:22 AM   #3
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by Agrouf View Post
rm /var/run/yum.pid
root@localhost.localdomain[/home/sohail/Desktop]# rm /var/run/yum.pid
rm: cannot remove `/var/run/yum.pid': No such file or directory
 
Old 12-16-2008, 09:02 AM   #4
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 387

Rep: Reputation: 49
Is it possible that another process is running somewhere in he background (like an automatic updater)?
Please try 'killall yum' and after that 'rm /var/run/yum.pid'.
EDIT: It strikes me that yum says the file was there and rm doesn't...
Any luck with this?

Last edited by TITiAN; 12-16-2008 at 09:03 AM.
 
Old 12-16-2008, 09:11 AM   #5
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Original Poster
Rep: Reputation: 23
root@localhost.localdomain[/home/sohail]# killall yum
yum: no process killed
root@localhost.localdomain[/home/sohail]# rm /var/run/yum.pid
rm: cannot remove `/var/run/yum.pid': No such file or directory
root@localhost.localdomain[/home/sohail]#
 
Old 12-16-2008, 09:16 AM   #6
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
try pkill yum
or if no process exist then try yum again.
 
Old 12-16-2008, 10:00 AM   #7
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Original Poster
Rep: Reputation: 23
till not working
root@localhost.localdomain[/home/sohail]# pkill yum
root@localhost.localdomain[/home/sohail]# yum update

Existing lock /var/run/yum.pid: another copy is running. Aborting.
root@localhost.localdomain[/home/sohail]#
 
Old 12-16-2008, 10:12 AM   #8
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

in Fedora/Redhat there is yum running in background per default to get the system up2date. You have to stop this by executing /etc/init.d/yum stop.

To disable this service from autostarting on system reboot use "chkconfig yum off".

After you have stopped this your "yum update" will run smoothly.
 
  


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
Problem Installing Yum: "No module named yum" braclayrab Linux - Newbie 9 08-04-2009 07:57 PM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 03:34 AM
Help! Yum problem watoan Linux - Software 8 11-18-2008 03:19 AM
Problem With Yum dijeshkk Linux - Newbie 6 09-28-2008 01:58 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 02:08 PM


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