Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-05-2017, 11:33 AM   #1
Joy Stick
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Rep: Reputation: 0
How to release yum lock --- but no yum is running !

Dear Experts,

PHP Code:
# uname -a
Linux RAC1.COM 3.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64 x86_64 GNU/Linux 
PHP Code:
[root@RAC1 ~]# cat /etc/*release
Oracle Linux Server release 6.5
Red Hat Enterprise Linux Server release 6.5 
Oracle Linux Server release 6.5 

PHP Code:
# yum -y install kernel-uek-devel-`uname -r`
Loaded pluginsrefresh-packagekitsecurity
Existing lock 
/var/run/yum.pidanother copy is running as pid 26982.
Another app is currently holding the yum lock
waiting for it to exit...
The other application isPackageKit
162 M RSS (471 MB VSZ)
StartedMon Nov  6 04:18:30 2017 12:46 ago
Another app is currently holding the yum lock
waiting for it to exit...
The other application isPackageKit
162 M RSS (471 MB VSZ)
StartedMon Nov  6 04:18:30 2017 12:48 ago

Exiting on user cancel.

PHP Code:
[root@RAC1 ~]# ps -ef  |grep yum
root     26982 26981  9 04:18 ?        00:01:11 /usr/bin/python /usr/share/PackageKit/helpers/yum/ get-updates none
root     27097 26992  0 04
:31 pts/2    00:00:00 grep yum 
No yum is running.
But why i am getting that warning message.

If kill running yum process , will it damage my linux machine ?
Old 11-05-2017, 11:40 AM   #2
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,842

Rep: Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162
You can see that had PackageKit running. I'm not familiar with Oracle, but this could be because some automatic process was using PK to check for updates or (more likely) just an error. In the second case, just killing PackageKit will solve the problem.
Old 11-05-2017, 11:50 AM   #3
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,469

Rep: Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098
I have seen similar behavior on CentOS desktops with Gnome where the "Package Manager" (from memory) is running on the desktop and I try to run yum from the command line in a terminal.
Old 11-05-2017, 11:56 AM   #4
Joy Stick
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0

Why error is coming at last ?

# yum -y install kernel-uek-devel-`uname -r`
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-uek-devel.x86_64 0:3.8.13-16.2.1.el6uek will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ==========
Package Arch Version Repository Size
==================================================================================================== ==========
kernel-uek-devel x86_64 3.8.13-16.2.1.el6uek public_ol6_UEKR3_latest 8.8 M

Transaction Summary
==================================================================================================== ==========
Install 1 Package(s)

Total download size: 8.8 M
Installed size: 32 M
Downloading Packages: [Errno 14] PYCURL ERROR 18 - "transfer closed with 1812972 bytes remaining to read"
Trying other mirror.

Error Downloading Packages:
kernel-uek-devel-3.8.13-16.2.1.el6uek.x86_64: failure: getPackage/kernel-uek-devel-3.8.13-16.2.1.el6uek.x86_64.rpm from public_ol6_UEKR3_latest: [Errno 256] No more mirrors to try.

# yum -y install kernel-uek-devel- nodeps `uname -r` --nodeps
Loaded plugins: refresh-packagekit, security
Usage: yum [options] COMMAND


Command line error: no such option: --nodeps
Old 11-05-2017, 11:33 PM   #5
Senior Member
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Q: why are you using '--no-deps'? This isn't a good idea unless your system is broken for one reason or another.
If you have to use '--no-deps' then maybe you should run 'package-cleanup' to attempt to fix any issues you might be having.
Old 11-06-2017, 02:56 AM   #6
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I think you need to update yum
$ yum update
or so ...


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
LXer: DNF (Dandified yum), the next generation of yum package manager (Fork of Yum) for Fedora system LXer Syndicated Linux News 0 08-07-2016 05:12 PM
yum lock in fedora Anubhab Linux - Newbie 4 02-07-2013 03:09 AM
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 11:26 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
[SOLVED] How to get rid of yum lock? your_shadow03 Linux - Newbie 1 12-25-2009 12:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration