Auto-generate Flow Chart from Java/C++ Codes:

Raptor Flowchart Tutorial For Beginners

Saturday, November 24, 2012

Simple Way To Solve Yum Lock Problem In Linux Terminal Window


Cara Mudah Menyelesaikan Masalah Yum Lock Pada Tetingkap Terminal Linux

When i want to use console command in Terminal Window (In Linux) i get this:

[raad@localhost ~]$ su
Password: 
[root@localhost raad]# yum install emesene
Loaded plugins: presto, refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 2038.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 73 M RSS ( 85 MB VSZ)
Started: Sat Sep 18 21:04:52 2010 - 1:05:19 ago
State : Sleeping, pid: 2038
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 73 M RSS ( 85 MB VSZ)
Started: Sat Sep 18 21:04:52 2010 - 1:05:21 ago
State : Sleeping, pid: 2038
Another app is currently holding the yum lock; waiting for it to exit...

(and the message goes never-ending)

Explanation:
Yum is an update manager for RedHat, Fedora, and other distibutions that use .rpm packages. The original version was written for Yellowdog Linux, so YUM originally stood for "Yellowdog Update Manager". The lock is a file or bit or byte set when a program is started to manage something, to keep another program from accessing the same resource (in this case packages).

There are few ways to solve the problem:

1) To reboot, as locks will generally be unset after a boot - as someone else mentioned, this might not be a good way if the system is a server that other people or computers are depending on, but for a personal system that's generally ok.

2) Press Ctrl-C to break and type the command: su -c 'rm /var/run/yum.pid'

3) (It looks like yum update package is running in the background., therefore..) type the command:

su -
service yum-updatesd stop
yum update




1 comment:

admin said...

Kalau anda menerima mesej ralat seperti "unrecognized service", barangkali Sistem Linux yang anda pasang tidak cukup komponen perisiannya, cuba pasang semula Sistem Operasi dan pilih komponen yang sesuai terutamanys komponen service, development etc.