从stable更换到testing后,更新系统apt-get dist-upgrade,然后是等待,

然后不耐烦了不等了,关机!

第二天早上开机apt-get update,找不到源!

用ifconfig查看发现只有回环网络接口lo,没有eth0
解决办法:

打开/etc/network/interface

在原有的

# Loopback
#
auto lo
iface lo inet loopback

下面加上:

auto eth0
iface eth0 inet dhcp

终端中设置eth0的ip地址:

sudo ifconfig eth0 192.168.0.88 netmask 255.255.255.0 up

重启服务

sudo /etc/init.d/networking restart

 

apt-get update

 

相关文章:

  • 2021-12-04
  • 2021-04-01
  • 2022-02-27
  • 2021-11-23
  • 2021-05-31
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2021-11-12
  • 2021-11-12
  • 2022-12-23
  • 2021-05-18
  • 2021-06-04
  • 2022-12-23
相关资源
相似解决方案