誤刪/etc/resolv.conf [論壇 - 新手村]
正在瀏覽:
1 名遊客
誤刪/etc/resolv.conf |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2010/2/9 18:20 所屬群組:
已註冊使用者 等級: 31
HP : 0 / 758
![]() |
請問要怎麼辦?
2012/8/26 12:38
|
||||||||||
![]() |
回覆: 誤刪/etc/resolv.conf |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
重開機 應該就會給一個 新的
如果 它說 找不到 就 給它一個 空白的 sudo gedit /etc/resolv.conf 然後 重開機
2012/8/26 12:40
|
||||||||||
![]() |
回覆: 誤刪/etc/resolv.conf |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2010/2/9 18:20 所屬群組:
已註冊使用者 等級: 31
HP : 0 / 758
![]() |
恩 謝謝
我執行了一個很怪的東西XD
2012/8/26 12:47
|
||||||||||
![]() |
回覆: 誤刪/etc/resolv.conf |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything. /etc/resolv.conf is a symbolic link to /run/resolvconf/resolv.conf 所以 如果這個 軟連結 不見了 會出現錯誤 訊息 需要 把 /run/resolvconf/resolv.conf 軟連結 到 /etc/resolv.conf
2012/8/26 13:05
|
||||||||||
![]() |
回覆: 誤刪/etc/resolv.conf |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2010/2/9 18:20 所屬群組:
已註冊使用者 等級: 31
HP : 0 / 758
![]() |
/run/resolvconf/沒有resolv.conf T^T
2012/8/26 13:12
|
||||||||||
![]() |
回覆: 誤刪/etc/resolv.conf |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
1. sudo ls -al /run/resolvconf/resolv.conf
-rw-r--r-- 1 root root 189 8月 26 07:06 /run/resolvconf/resolv.conf 2. sudo cat /run/resolvconf/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1 search xxxxx.com # 註 xxxxx.com 是你的 domain name 註 重開機 內容 會更新 3. 建立 軟連結 /etc/resolv.conf 到 sudo rm /etc/resolv.conf sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf 4. 檢查 軟連結 是否 已成功建立 sudo ls -al /etc/resolv.conf lrwxrwxrwx ... 略... /etc/resolv.conf -> /run/resolvconf/resolv.conf
2012/8/26 13:20
|
||||||||||
![]() |
回覆: 誤刪/etc/resolv.conf |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2010/2/9 18:20 所屬群組:
已註冊使用者 等級: 31
HP : 0 / 758
![]() |
沒事了
我重新安裝resolvconf 他就幫我重新連結了 謝謝
2012/8/26 13:23
|
||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.