Page 1 of 1

Yum repositories to update or install package from ISO CDROM

Posted: Sat Sep 26, 2009 2:19 pm
by shahidtanoli1980
Hello,

I am configuring yum repositories to update from ISO image, it has been configured but I am getting following error while run yum list or yum install package name command.

---------------------------
Existing lock /var/run/yum.pid: another copy is running as pid 2945.

Another app is currently holding the yum lock; waiting for it to exit...

Another app is currently holding the yum lock; waiting for it to exit...
---------------------------


Regards,

Shahid Ismail

yum error

Posted: Sat Sep 26, 2009 7:43 pm
by ghulam yaseen
Dear Shahid,

probably you need to delete /var/run/yum.pid, pkill -9 yum, /etc/init.d/yum-updatesd restart and then try again.


Regards,
Ghulam Yaseen

Posted: Sun Sep 27, 2009 7:41 am
by shahidtanoli1980
Dear Ghulam.Yaseen

I have already tried to restart yum-updated service but no luck, it shows following error.

[root@fedora1 yum.repos.d]# yum install bind

Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirror ... &arch=i386 error was

[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>

Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

I observe that there should be comment mirror in default repository file, i will check and let you now if i need your help.

#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch

Regards,
Shahid Ismail

Yum repositories to update or install package from ISO CDROM

Posted: Mon Sep 28, 2009 9:20 am
by ghulam yaseen
Dear Shahid,

This error

[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>

means that your DNS are not confogired properly. Kindly check resolv.conf,
Other wise with the heading of this thread

Yum repositories to update or install package from ISO CDROM

it seems that you have CD iso to configure for yum. If this is really the case then check in your yum config file if there is any thing related with the URL which is causing the yum to go WWW and check for the updates, if you find any such thing then please comment that out.

Regards,
Ghulam Yaseen

Posted: Mon Sep 28, 2009 9:25 am
by shahidtanoli1980
Dear Ghulam Yaseen,

Issue has been corrected, i have moved/removed default repository file and copied GPG key in the /etc/pki/rpm-gpg.

Regards,
Shahid Ismail

Yum repositories to update or install package from ISO CDROM

Posted: Mon Sep 28, 2009 9:31 am
by ghulam yaseen
glad to hear this :wink:


Regards,