LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum client error (https://www.linuxquestions.org/questions/linux-newbie-8/yum-client-error-4175437790/)

mohitvad 11-19-2012 07:39 AM

yum client error
 
Hi,

I am getting an error while running the yum list command. Below is the error and my repo file.

[root@localhost ~]# yum list all
Loaded plugins: fastestmirror
Determining fastest mirrors
local | 1.3 kB 00:00
local/primary | 922 B 00:00
http://172.20.3.32/centos/5/i386/rep...rimary.xml.gz: [Errno -3] Error performing checksum
Trying other mirror.
local/primary | 922 B 00:00
http://172.20.3.32/centos/5/i386/rep...rimary.xml.gz: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from local: [Errno 256] No more mirrors to try.



my yum repo file

[root@localhost ~]# cat /etc/yum.repos.d/local_repo.repo
[local]
name=CentOS-$releasever - local packages for $basearch
baseurl=http://172.20.3.32/centos/$releasever/$basearch
gpgcheck=0
enable=1



Thanks,
M

freelinuxtutorials 11-19-2012 07:42 AM

is the box have internet access? can ping outside domains? are you using proxy server? pls. put more details so we can help you troubleshoot further.

mohitvad 11-19-2012 07:45 AM

Hi,

The box has internet access and can ping the yum server. below are the ping results.

[root@localhost ~]# ping 172.20.3.32
PING 172.20.3.32 (172.20.3.32) 56(84) bytes of data.
64 bytes from 172.20.3.32: icmp_seq=1 ttl=128 time=287 ms
64 bytes from 172.20.3.32: icmp_seq=2 ttl=128 time=344 ms

--- 172.20.3.32 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 287.519/316.225/344.932/28.712 ms


Thanks,
M

mohitvad 11-19-2012 08:16 AM

The error is fixed. just want to share results. After google i got below results and it feels its done.

The server is on centos 6 and createrepo is using a hash that centos 5 does not understand by default. I fixed the problem now (createrepo -d -s sha1). If you still have an error try: “yum clean all"



Thanks,
Mohit Vadhera


All times are GMT -5. The time now is 06:21 PM.