linux安装软件cannot initiate the connection toxxx

省时间:如果你没有修改/etc/network/interfaces这个文件,请绕行,这里解决不了你的问题

RT:安装软件时遇到上述问题:cannot initiate the connection toxxx 我的状况是为了使虚拟机IP地址保持静态IP,修改了  /etc/network/interfaces  把配置文件改成了下面的

auto  ens33 #我的虚拟机网卡
iface ens33 inet static
address  192.168.1.10
netmask  255.255.255.0

后面发现更新系统时报错 Can not  initiate the connection to xxx...

修改成下面的配置,解决。。。

auto  lo
iface lo inet dhcp


版权声明:本文为int_t原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。