[CentOS] Yum cannot download from local repository
Phoenix, Merka
merka.phoenix at hp.com
Tue Apr 22 17:54:18 UTC 2014
-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of James B. Byrne
Sent: Monday, 21 April, 2014 17:28
To: centos at centos.org
Subject: [CentOS] Yum cannot download from local repository
... <snip>
>> in /root/RPMS/repos/Packages I have this:
>>
>> ll /root/RPMS/repos/Packages/http*
>> -rw-rw-r--. 1 root root 1151252 Apr 21 16:15 /root/RPMS/repos/Packages/httpd-2.4.9-1.el6.x86_64.rpm
>> -rw-rw-r--. 1 root root 3415444 Apr 21 16:15 /root/RPMS/repos/Packages/httpd-debuginfo-2.4.9-1.el6.x86_64.rpm
>> -rw-rw-r--. 1 root root 186000 Apr 21 16:15 /root/RPMS/repos/Packages/httpd-devel-2.4.9-1.el6.x86_64.rpm
>> -rw-rw-r--. 1 root root 3300912 Apr 21 16:15 /root/RPMS/repos/Packages/httpd-manual-2.4.9-1.el6.x86_64.rpm
>> -rw-rw-r--. 1 root root 69784 Apr 21 16:15
/root/RPMS/repos/Packages/httpd-tools-2.4.9-1.el6.x86_64.rpm
>>
>> Yet when I try to install or upgrade using yum I get a download error:
>>
>> # yum --enablerepo=localfiles --nogpgcheck update httpd
... <snip>
>>
>> Resolving Dependencies
>> --> Running transaction check
>> ---> Package httpd.x86_64 0:2.2.15-30.el6.centos will be updated
>> --> Processing Dependency: httpd-mmn = 20051115 for package:
>> 1:mod_ssl-2.2.15-30.el6.centos.x86_64
>> --> Processing Dependency: httpd = 2.2.15-30.el6.centos for package:
>> 1:mod_ssl-2.2.15-30.el6.centos.x86_64
>> ---> Package httpd.x86_64 0:2.4.9-1.el6 will be an update
>> --> Running transaction check
>> ---> Package mod_ssl.x86_64 1:2.2.15-30.el6.centos will be updated
>> ---> Package mod_ssl.x86_64 1:2.4.9-1.el6 will be an update
>> --> Finished Dependency Resolution
>>
>> Dependencies Resolved
>>
>> ================================================================================
>> Package Arch Version Repository Size
>> ================================================================================
>> Updating:
>> httpd x86_64 2.4.9-1.el6 localfiles 1.1 M
>> Updating for dependencies:
>> mod_ssl x86_64 1:2.4.9-1.el6 localfiles 79 k
>>
>> Transaction Summary
>> ================================================================================
>> Upgrade 2 Package(s)
>>
>> Total download size: 1.2 M
>> Is this ok [y/N]: y
>> Downloading Packages:
>>
>>
>> Error Downloading Packages:
>> httpd-2.4.9-1.el6.x86_64: failure: Packages/httpd-2.4.9-1.el6.x86_64.rpm
>> from localfiles: [Errno 256] No more mirrors to try.
>> 1:mod_ssl-2.4.9-1.el6.x86_64: failure:
>> Packages/mod_ssl-2.4.9-1.el6.x86_64.rpm from localfiles: [Errno 256] No more mirrors to try.
>>
>> Any ideas on what I am doing wrong?
>> James B. Byrne mailto:ByrneJB at Harte-Lyne.ca
Jason,
Your local file-based repo area is missing the 'mod_ssl' RPM that 'httpd' depends on (and has requested that be updated). Because you have excluded all the other repos where the 'mod_ssl' might be found (or perhaps they do not have the required version matching your httpd packages), the update fails because the dependenc(y)s cannot be downloaded.
Cheers!
Simba
Engineering
More information about the CentOS
mailing list