不管apt-get install xxx 或 apt-get -y update時都遇到 W: Failed to fetch http:// 的解法:
通常是因為關掉network-manager,自行編輯/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 140.115.155.183
netmask 255.255.255.0
gateway 140.115.155.254
所以解法是加上DNS Server讓apt-get 此管理更新套件可以找到url即可!!
vim /etc/resolv.conf
nameserver 8.8.8.8
文章標籤
全站熱搜
