LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to release yum lock --- but no yum is running ! (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-release-yum-lock-but-no-yum-is-running-4175617009/)

Joy Stick 11-05-2017 11:33 AM

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 ?

DavidMcCann 11-05-2017 11:40 AM

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.

scasey 11-05-2017 11:50 AM

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.

Joy Stick 11-05-2017 11:56 AM

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

lazydog 11-05-2017 11:33 PM

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.

AwesomeMachine 11-06-2017 02:56 AM

I think you need to update yum
Code:

$ yum update
or so ...


All times are GMT -5. The time now is 02:00 AM.