LinuxQuestions.org
Visit Jeremy's Blog.
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 03-12-2009, 02:56 PM   #1
Muideen
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Rep: Reputation: 0
Unhappy Problems using yum to install any application


Hi, I am just installed fedora 9, my first linux experience. I am having problems while trying to use yum to install applications, each time i typed the necessary command I get this error 'Another app is currently holding the yum lock; waiting for it to exit...' eventhoug i am very sure there is no other application or installation going on. I have tried it several times, even restarting the computer on numerous occassions, but i still get the error and it does not ever seem ready to stop.
 
Old 03-12-2009, 03:18 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Hi and welcome to the forum.

Your problem could be as a result of the yum update service. Before using yum, try to disable the updates service by doing
Code:
service yum-updatesd stop
If you prefer checking for updates by yourself, you can disable the service permanently by doing
Code:
chkconfig yum-updatesd off
 
Old 03-12-2009, 03:49 PM   #3
Muideen
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
thanks reddazz, i have tried running that code (service yum-updatesd stop) from the terminal, but it gives me this

[Parkway@localhost ~]$ service yum-updatesd stop
bash: service: command not found
[Parkway@localhost ~]$ su
Password:
[root@localhost Parkway]# service yum-updatesd stop
bash: service: command not found
[root@localhost Parkway]#
 
Old 03-12-2009, 05:08 PM   #4
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Hi Muideen

You have almost got it right.

What happens when you do su is that it will give you root privileges, but it does not set the search paths, so it still cannot find the `service' script.

To fix this, instead of doing su, try

Code:
su -
This will make it a login shell. So after you have typed in your password, try the service command listed above again.
 
Old 03-12-2009, 05:19 PM   #5
Lee_Ball
Member
 
Registered: Jul 2005
Location: Manchester (UK)
Distribution: Fedora CentOS
Posts: 132

Rep: Reputation: 18
I always do an su -l, its just habit now.
 
Old 03-12-2009, 05:33 PM   #6
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
the `service' script comes from the initscripts package. If it is not installed then it would be normal that the service script is not available.

To confirm this, please try (as root)

Code:
/sbin/service yum-updatesd stop
Also, temporary, at least, so you can proceed with YUM this time, kill all processes that might hold a lock

Code:
ps xua | grep -i yum | grep -v grep | awk '{print $2}' | xargs kill -9
If it tells you something like:

Quote:
usage: kill [ -s signal | -p ] [ -a ] pid ...
kill -l [ signal ]
It just means that it didn't find any processes with yum in their name.
 
Old 03-13-2009, 04:09 AM   #7
Muideen
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks a lot guys,I have tried all the scripts you gave me, and it is still not working. Seems like yum or the service scripts is not even installed. This is what i got.


[Parkway@localhost ~]$ su -
Password:
[root@localhost ~]# service yum-updatesd stop
yum-updatesd: unrecognized service
[root@localhost ~]# /sbin/service yum-updatesd stop
yum-updatesd: unrecognized service
[root@localhost ~]# ps xua | grep -i yum | grep -v grep | awk '{print $2}' | xargs kill -9
[root@localhost ~]#



Someone should please help with this
 
Old 03-13-2009, 04:15 AM   #8
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
The kill command apparently succeeded, therefore, you should try doing your yum install again.
 
Old 03-13-2009, 05:07 AM   #9
Muideen
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks a lot guys,I have tried this to unlock all processes holding lock since the error reported was that some processes were holding locks.

[Parkway@localhost ~]$ su -
Password:
[root@localhost ~]# ps xua | grep -i yum | grep -v grep | awk '{print $2}' | xargs kill -9

After which i run the following code to install php, mysql, and Apache on my machine.

yum -y install httpd php mysql mysql-server php-mysql

And fortunately for me, it is now working fine as it is presently downloading and installing the apps.

But if there is any problem I will not hesitate to let you guys know.

Thanks a million
 
Old 03-13-2009, 05:47 AM   #10
Lee_Ball
Member
 
Registered: Jul 2005
Location: Manchester (UK)
Distribution: Fedora CentOS
Posts: 132

Rep: Reputation: 18
I'm quite confused with all this difficultly closing the file holding the lock. When I use yum it always tells me which PID is doing it. I then just close that off if I can't wait.
 
Old 03-13-2009, 03:03 PM   #11
Muideen
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
please can someone help me with the code to change the root password for mysql as i mistakenly set it to a wrong value during set up
 
Old 03-13-2009, 03:06 PM   #12
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Hi Muideen

Please open a new thread for this question.
 
  


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 error with Fedora 10 on i386 after installing application jenovanomusuko Linux - Newbie 3 01-20-2009 01:40 PM
yum update giving problems to install mplayer jaycee4u Linux - Newbie 2 02-18-2008 10:09 PM
fc6 yum install/update problems markelo Fedora 19 01-24-2007 04:28 PM
problems with yum install (fedora core 5) emu103 Linux - Desktop 5 08-16-2006 09:55 PM
yum install mythtv-suite problems ishould Linux - Software 0 04-07-2006 09:11 PM


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