यम रेपो मुद्दे


1

मेरे CentOS-Base.repo में निम्नलिखित दर्पण हैं:

[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

#released updates
[updates]
name=CentOS Server updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
baseurl=http://custom-url/centOS-updates/
enabled=1

जब मैं कहता हूं yum install yum-utils, तो यह कहते हुए त्रुटि के साथ विफल होता है

http://custom-url/centOS-updates/Packages/yum-utils-1.1.31-46.el7_5.noarch.rpm: [Errno 14] HTTP Error 500 - Internal Server Error Trying other mirror. Error downloading packages: yum-utils-1.1.31-46.el7_5.noarch: [Errno 256] No more mirrors to try.

मेरे यहाँ दो प्रश्न हैं:

  • Why is it looking at the `updates` repo instead of base. `yum info yum-utils` has the repo field set to `updates`. When I disable the `updates` repo in the repo file and do a `yum info yum-utils` it shows the repo field as `base` correctly. What decides the repo to look at given a package?
  • Why is 'Package' appended to the baseUrl when it tries to find yum-utils in the updates repo? This is causing a `500 Internal Server Error` as the path with Packages appended to it is invalid

जवाबों:


0

मुझे यकीन नहीं है कि मुझे ऐसा क्यों करना है, लेकिन यम मेटाडेटा को साफ करना रिपॉजिटरी को सही ढंग से सेट करता है।

मैं भागा yum --enablerepo=* clean allऔर फिर पीछे हट गया।


जहां से मुझे जवाब मिला वहां लिंक जोड़ना। stackoverflow.com/questions/51711042/yum-repo-issues । इसका वही सवाल जो मैंने पहली बार SO पेज पर पोस्ट किया था
— leoOrion
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.