启动系统中的错误

系统启动中会有如下服务启动失效信息,请教如何解决这些失效问题。

Oct 31 09:53:10 debian ifup[688]: Failed to get interface index: No such device
Oct 31 09:53:10 debian ifup[688]: ifup: failed to bring up eth0
Oct 31 09:53:10 debian systemd[1]: networking.service: Failed with result 'exit-code'.
Oct 31 09:53:10 debian systemd[1]: Failed to start Raise network interfaces.

找不到网卡eth0,你的eth0不存在,如果你只有这一个网卡,应该无法联网;
eth0网卡检查下,看正常么?

恩,是这样。现在网卡名称采用了所谓可预见网卡名称( predictable network interface name),不再是eth0,而是enp0s31f6,查得:

> ip address
2: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 54:e1:ad:50:51:51 brd ff:ff:ff:ff:ff:ff

不知道什么原因启动时系统仍然去寻找 eth0。另,这块网卡的型号是Intel I219-LM:

> lspci | grep -i ethernet
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-LM (rev 21)

相应的驱动为:e1000e:

> sudo lshw -numeric -class network
 *-network
       description: Ethernet interface
       product: Ethernet Connection (4) I219-LM [8086:15D7]
       vendor: Intel Corporation [8086]
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 21
       serial: 54:e1:ad:50:51:51
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.1-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:161 memory:ec200000-ec21ffff

但我接入有线网络后无法切换到有线网,网络图标一直在打转转,就是连不上。

这里人太少,到bbs.archlinuxcn.org问问,或者forum.ubuntu.org.cn问问~