質問編集履歴

2

詳細の説明

2018/07/10 08:55

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,102 @@
6
6
 
7
7
  [エラーが一致したサイト](https://every-rating.com/vps/yum-update-cannot-find-a-valid-baseurl-for-repo-base.html)
8
8
 
9
- するとエラーの表示が下のように変わりましたがyum updateコマンドが通りません。原因分かる方いましたらご教示お願い致します。
9
+ するとエラーの表示が下のように変わりましたがyum updateコマンドが通りません。
10
10
 
11
+ ```
12
+
13
+ [root@centos6 ~]# yum update
14
+
15
+ Loaded plugins: fastestmirror
16
+
17
+ Loading mirror speeds from cached hostfile
18
+
19
+ http://ftp.riken.jp/Linux/centos/6/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://ftp.riken.jp/Linux/centos/6/os/x86_64/repodata/repomd.xml: (28, 'connect() timed out!')
20
+
21
+ Trying other mirror.
22
+
23
+ Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
24
+
25
+
26
+
27
+ ```
28
+
29
+ pingも通らなかったためにネットワークのエラーだと思い、/etc/resolv.confにGoogle の Public DNS サーバーのIPアドレス「8.8.8.8」を入れました。
30
+
31
+ ネットワークの再起動を行ったところこのようにエラーが起きました。
32
+
33
+
34
+
35
+ ```
36
+
37
+ /etc/init.d/network restart
38
+
39
+ Shutting down interface enp0s3: [ OK ]
40
+
41
+ Shutting down interface eth0: [ OK ]
42
+
43
+ Shutting down loopback interface: [ OK ]
44
+
45
+ Bringing up loopback interface: [ OK ]
46
+
47
+ Bringing up interface enp0s3: Device does not seem to be present, delaying initialization.
48
+
49
+ [FAILED]
50
+
51
+ Bringing up interface eth0:
52
+
53
+ Determining IP information for eth0... done.
54
+
55
+ [ OK ]
56
+
57
+
58
+
59
+
60
+
61
+ ```
62
+
63
+ このエラーを調べ下記サイトにたどり着きました。
64
+
65
+ [エラーが一致したサイト](https://qiita.com/colorrabbit/items/964182390a08b678d576)
66
+
67
+ しかしサイトと異なりifconfigを打っても下のようにeth0の設定が表示されておりどうすればいいか困っています。詳しいかたいましたらご教示お願い致します。
68
+
69
+
70
+
71
+ ```
72
+
73
+ [root@centos6 ~]# ifconfig
74
+
75
+ eth0 Link encap:Ethernet HWaddr 06:C8:AE:00:31:ED
76
+
77
+ inet addr:153.149.171.134 Bcast:153.149.171.255 Mask:255.255.252.0
78
+
79
+ UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
80
+
81
+ RX packets:507224 errors:0 dropped:0 overruns:0 frame:0
82
+
83
+ TX packets:431170 errors:0 dropped:0 overruns:0 carrier:0
84
+
85
+ collisions:0 txqueuelen:1000
86
+
11
- ![イメージ説明](4383254d963cb5d480cbe1ca87487636.jpeg)
87
+ RX bytes:46948557 (44.7 MiB) TX bytes:35506032 (33.8 MiB)
88
+
89
+
90
+
91
+ lo Link encap:Local Loopback
92
+
93
+ inet addr:127.0.0.1 Mask:255.0.0.0
94
+
95
+ UP LOOPBACK RUNNING MTU:16436 Metric:1
96
+
97
+ RX packets:0 errors:0 dropped:0 overruns:0 frame:0
98
+
99
+ TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
100
+
101
+ collisions:0 txqueuelen:0
102
+
103
+ RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
104
+
105
+
106
+
107
+ ```

1

見やすくしました。

2018/07/10 08:55

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  エラーの原因を調べたところ下記サイトのエラーと一致したため/etc/yum.repos.d/CentOS-Base.repoを修正してみました。
6
6
 
7
- https://every-rating.com/vps/yum-update-cannot-find-a-valid-baseurl-for-repo-base.html
7
+ [エラーが一致したサイト](https://every-rating.com/vps/yum-update-cannot-find-a-valid-baseurl-for-repo-base.html)
8
8
 
9
9
  するとエラーの表示が下のように変わりましたがyum updateコマンドが通りません。原因分かる方いましたらご教示お願い致します。
10
10