Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – Debian错误:ifup:无法读取接口文件“/ etc / network / interfaces”大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

从今天起Debian发出错误:ifup:无法读取interfaces文件“/ etc / network / interfaces” 如果我查找interfaces文件,我会看到以下内容: # This file describes the network interfaces available on your system # and how to activate them. For mor
从今天起Debian发出错误:ifup:无法读取interfaces文件“/ etc / network / interfaces”

如果我查找interfaces文件,我会看到以下内容

# This file describes the network interfaces available on your system
# and how to activate them. For more information,seE interfaces(5).

# The loopBACk network interface
auto lo
iface lo inet loopBACk

# The priMary network interface
allow-hotplug eth0
iface eth0 inet dchp

allow-hotplug eth1
iface eth1 inet dchp

我在虚拟盒子里运行Debian; eth0是NAT,eth1是仅限主机的适配器
我也尝试插入以太网电缆,但这没有改变.

我怎样才能摆脱这个错误

先感谢您,

REMCO

解决方法

你可能会踢自己,但你在两条线上都有同样的错字.它应该是iface eth0 inet dhcp not dchp.

ifup和ifdown如果无法解析文件就会中断.

大佬总结

以上是大佬教程为你收集整理的linux – Debian错误:ifup:无法读取接口文件“/ etc / network / interfaces”全部内容,希望文章能够帮你解决linux – Debian错误:ifup:无法读取接口文件“/ etc / network / interfaces”所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。