Linuxエラー・ノットの使用-yumのソフトウェア更新に失敗しました

3467 ワード

yumの使用条件:yumの使用はインターネットネットワークの接続を保証し、「cat/etc/resolv.conf」ファイルの下に「nameserver 8.8.8.8」が存在してこそ正常に更新できます. 
yum, Yellow dog Updater, Modified    ,         RPM                   。
yum           ,  /  rpm  ,  rpm       ,              。           ,             。yum            repository。
以下のファイルはシステムを再起動しています(CentOS)
または
ネットワークサービスを再起動し、「cat/etc/sysconfig/network-scripts/ifcfg-enp 0 s 3」ファイルを変更した後:
[root@localhost install-files]# service network restart
では、「cat/etc/resolv.conf」というファイルが更新され、「nameserver 8.8.8.8」が自動的に削除されます.
次のように構成されています(
confA1):
[root@localhost install-files]# cat /etc/resolv.conf 
# Generated by NetworkManager
search lan
nameserver fd7b:ac2f:6d73::1
nameserver 8.8.8.8

質問1:
設定:
[root@localhost install-files]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3

構成:DNS=192.168.10.1
「cat/etc/resolv.conf」ファイルが次のように異常に更新されます.
# Generated by NetworkManager
# No nameservers found; try putting DNS servers into your
# ifcfg files in/etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
解決1:
注記:「cat/etc/sysconfig/network-scripts/ifcfg-enp 0 s 3」ファイル:
#DNS=192.168.10.1
その後、ネットワークサービスを再起動して「サービスネットワークrestart」を有効にします.
そして、上記(
confA 1)の構成でOKが使えます.
質問2:
One of the configured repositories failed(不明)、
 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:
 ....
 Cannot find a valid baseurl for repo: base/7/x86_64
解決2:「cat/etc/resolv.conf」ファイルに「nameserver 8.8.8.8」を追加して解決します.
質問3:
[root@localhost log]# yum install telnet
Loaded plugins: fastestmirror
http://mirrors.btte.net/centos/7.1.1503/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.btte.net; Unknown error"
Trying other mirror.
http://mirrors.neusoft.edu.cn/centos/7.1.1503/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.neusoft.edu.cn; Unknown error"
Trying other mirror.
http://mirrors.hust.edu.cn/centos/7.1.1503/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.hust.edu.cn; Unknown error"
Trying other mirror.
http://mirrors.nwsuaf.edu.cn/centos/7.1.1503/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.nwsuaf.edu.cn; Unknown error"
Trying other mirror.
http://mirrors.pubyun.com/centos/7.1.1503/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.pubyun.com; Unknown error"
Trying other mirror.
http://mirrors.opencas.cn/centos/7.1.1503/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.opencas.cn; Unknown error"
Trying other mirror.
http://mirror.neu.edu.cn/centos/7.1.1503/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirror.neu.edu.cn; Unknown error"
Trying other mirror.
http://mirrors.sina.cn/centos/7.1.1503/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.sina.cn; Unknown error"
Trying other mirror.
…………………………
解決3:ipがインターネットに接続できるように修正:CentOS構成ip[クイック構成]