2015-05-24 11 views
6

मैं एक समर्पित सर्वर (OVH द्वारा आयोजित) पर यम कमांड के साथ एक मुद्दा का सामना करना पड़ रहा हूँ:यम त्रुटि - centos 7.1 x86_64

[[email protected] ~]# yum clean all 
[[email protected] ~]# yum update 
Modules complémentaires chargés : fastestmirror 


One of the configured repositories failed (Inconnu), 
and yum doesn't have enough cached data to continue. At this point the only 
safe thing yum can do is fail. There are a few ways to work "fix" this: 

    1. Contact the upstream for the repository and get them to fix the problem. 

    2. Reconfigure the baseurl/etc. for the repository, to point to a working 
     upstream. This is most often useful if you are using a newer 
     distribution release than is supported by the repository (and the 
     packages for the previous distribution release still work). 

    3. Disable the repository, so yum won't use it by default. Yum will then 
     just ignore the repository until you permanently enable it again or use 
     --enablerepo for temporary usage: 

      yum-config-manager --disable <repoid> 

    4. Configure the failing repository to be skipped, if it is unavailable. 
     Note that yum will try to contact the repo. when it runs most commands, 
     so will have to try and fail each time (and thus. yum will be be much 
     slower). If it is a very temporary problem though, this is often a nice 
     compromise: 

      yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true 

Cannot find a valid baseurl for repo: base/7/x86_64 

जांच के बाद, मैंने पाया कि त्रुटि bellow (यूआरएल वापस नहीं

को समर्पित सर्वर से::

[[email protected] ~]# curl "http://mirrorlist.centos.org/?release=7.1.1503&arch=x86_64&repo=os" 
Invalid release 
[[email protected] ~]# 

घर से ठीक (ADSL)

समर्पित सर्वर) से ठीक 0
MacBook-Air-de-John:~ jjohn$ curl "http://mirrorlist.centos.org/?release=7.1.1503&arch=x86_64&repo=os" 
http://mirror.ate.info/ftp.centos.org/7.1.1503/os/x86_64/ 
http://ftp.rezopole.net/centos/7.1.1503/os/x86_64/ 
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/centos/7.1.1503/os/x86_64/ 
http://mirror0.babylon.network/centos/7.1.1503/os/x86_64/ 
http://centos.crazyfrogs.org/7.1.1503/os/x86_64/ 
http://centos.mirrors.ovh.net/ftp.centos.org/7.1.1503/os/x86_64/ 
http://mirrors.ircam.fr/pub/CentOS/7.1.1503/os/x86_64/ 
ftp://ftp.free.fr/mirrors/ftp.centos.org/7.1.1503/os/x86_64/ 
http://mirror.ibcp.fr/pub/Centos/7.1.1503/os/x86_64/ 
http://ftp.ciril.fr/pub/linux/centos/7.1.1503/os/x86_64/ 
MacBook-Air-de-John:~ jjohn$ 

मुझे एक ताजा इंस्टॉल के बाद और एक दोस्त के समर्पित सर्वर (ओवीएच द्वारा होस्ट किया गया) के बाद भी एक ही समस्या मिली।

मुझे नहीं पता कि त्रुटि ओवीएच नेटवर्क (DNS, ...) या mirrorlist.centos.org सर्वर से आ रही है या नहीं।

उत्तर

0

सबसे पहले आपको /etc/yum.repos.d निर्देशिका पर जाना होगा और vi संपादक का उपयोग करके CentOS-Base.repo को संपादित करना होगा। निम्नलिखित लाइनों के लिए देखो;

mirrorlist =

baseurl =

#baseurl में # चिह्न को दूर करता है, तो आप उपयोग कर यम तो बचाने के लिए और vi संपादक से बाहर निकलें baseurl/mirrorlist वेब पते तक पहुँचने में कठिनाई होती है।

गुडलक और लिनक्स में यम पैकेज-प्रबंधन उपयोगिता का आनंद लें।

बेस्ट सादर-KB

26

मैं टाइप करके समस्या हल

# dhclient 
+0

मेरी समस्या का हल - यह सुनिश्चित नहीं है कि आपको डाउनवॉट क्यों मिला। – dsimer

+3

कृपया बताएं कि यह क्यों मदद करता है। एक फिक्स को टॉस करना ठीक है लेकिन समझाता है कि यह क्यों काम करता है और इसका इस्तेमाल किया जाना चाहिए उपयोगकर्ता को शिक्षित करता है ताकि वे समझ सकें कि वे क्या कर रहे हैं। –

+0

वर्चुअल बॉक्स में आईएसओ सब कुछ से स्थापित सेंटोस I पर अपना मुद्दा हल किया .. मैंने भी 'सुडो यम अपडेट' किया था –

1

आपके DNS "में centos mirrorlist

रखें" नेम सर्वर 8.8.8.8 "हल प्रतीत नहीं होता है/etc/resolv.conf "

# vi /etc/resolv.conf [प्रेस मैं] अब आप डालने मोड में हैं

+०१२३५१६४१०६१

नेम सर्वर 8.8.8.8 [प्रेस: ​​wq]

#

आशा है कि यह काम किया ..!