LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-05-2017, 11:33 AM   #1
Joy Stick
Member
 
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
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Oracle Linux Server release 6.5
Red Hat Enterprise Linux Server release 6.5 
(Santiago)
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
    Memory 
162 M RSS (471 MB VSZ)
    
StartedMon Nov  6 04:18:30 2017 12:46 ago
    State  
Sleepingpid26982
Another app is currently holding the yum lock
waiting for it to exit...
  
The other application isPackageKit
    Memory 
162 M RSS (471 MB VSZ)
    
StartedMon Nov  6 04:18:30 2017 12:48 ago
    State  
Runningpid26982 
^C

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/yumBackend.py 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
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Xubuntu
Posts: 5,314

Rep: Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824
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
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,799

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
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
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi,

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
==================================================================================================== ==========
Installing:
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:
http://public-yum.oracle.com/repo/Or...ek.x86_64.rpm: [Errno 14] PYCURL ERROR 18 - "transfer closed with 1812972 bytes remaining to read"
Trying other mirror.


Quote:
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
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,239
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
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

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


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
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 tg3793 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

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

All times are GMT -5. The time now is 12:17 PM.

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