Debian 10起動エラー:networking.serviceの読み込みに失敗しました。

Debian 10起動エラー:networking.serviceの読み込みに失敗しました。

コンピュータの電源を入れるたびに赤い線が表示されることがわかりました。私のコンピュータが速すぎて質問を読むことができません。私のシステムに問題が発生したり見つかったことはありませんが、疑問に思います。

私は実行して、systemctl --failed次のような結果を得ました。

UNIT               LOAD   ACTIVE SUB    DESCRIPTION                                  
● networking.service loaded failed failed Raise network interfaces                     

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

systemctl status networking.service次に、次のように出力します。

networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled
   Active: failed (Result: exit-code) since Sun 2019-07-14 20:59:05 AWST; 4min 27s ago
     Docs: man:interfaces(5)
  Process: 799 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE
 Main PID: 799 (code=exited, status=1/FAILURE)</code></pre><pre><code>sudo journalctl _SYSTEMD_UNIT=networking.service</pre><code><pre><code>
-- Logs begin at Sun 2019-07-14 20:59:03 AWST, end at Sun 2019-07-14 21:06:14 AWST. --
Jul 14 20:59:05 debian dhclient[863]: Internet Systems Consortium DHCP Client 4.4.1
Jul 14 20:59:05 debian dhclient[863]: Copyright 2004-2018 Internet Systems Consortium.
Jul 14 20:59:05 debian ifup[799]: Internet Systems Consortium DHCP Client 4.4.1
Jul 14 20:59:05 debian ifup[799]: Copyright 2004-2018 Internet Systems Consortium.
Jul 14 20:59:05 debian ifup[799]: All rights reserved.
Jul 14 20:59:05 debian ifup[799]: For info, please visit https://www.isc.org/software/dh
Jul 14 20:59:05 debian dhclient[863]: All rights reserved.
Jul 14 20:59:05 debian dhclient[863]: For info, please visit https://www.isc.org/softwar
Jul 14 20:59:05 debian dhclient[863]: 
Jul 14 20:59:05 debian ifup[799]: Cannot find device "eth0"
Jul 14 20:59:05 debian dhclient[863]: Failed to get interface index: No such device
Jul 14 20:59:05 debian ifup[799]: Failed to get interface index: No such device
Jul 14 20:59:05 debian ifup[799]: If you think you have received this message due to a b
Jul 14 20:59:05 debian ifup[799]: than a configuration issue please read the section on 
Jul 14 20:59:05 debian ifup[799]: bugs on either our web page at www.isc.org or in the R
Jul 14 20:59:05 debian ifup[799]: before submitting a bug.  These pages explain the prop
Jul 14 20:59:05 debian ifup[799]: process and the information we find helpful for debugg
Jul 14 20:59:05 debian ifup[799]: exiting.
Jul 14 20:59:05 debian dhclient[863]: 
Jul 14 20:59:05 debian dhclient[863]: If you think you have received this message due to
Jul 14 20:59:05 debian dhclient[863]: than a configuration issue please read the section
Jul 14 20:59:05 debian dhclient[863]: bugs on either our web page at www.isc.org or in t
Jul 14 20:59:05 debian dhclient[863]: before submitting a bug.  These pages explain the 
Jul 14 20:59:05 debian dhclient[863]: process and the information we find helpful for de
Jul 14 20:59:05 debian dhclient[863]: 
Jul 14 20:59:05 debian dhclient[863]: exiting.
Jul 14 20:59:05 debian ifup[799]: ifup: failed to bring up eth0</code></pre>

何が問題なの?私のシステムに問題がありますか?

ベストアンサー1

基本的な問題は次のとおりです。

Jul 14 20:59:05 debian ifup[799]: Cannot find device "eth0"

ip link showネットワークインターフェイスの名前を確認するには実行する必要があります。システムは新しい予測可能なネットワークインターフェイス名を使用できるため、NICがシステム基板に組み込まれている場合は、eno1既存のインターフェイス名を置き換えることができますeth0。ただし、システムファームウェアのDMIデータが統合されたNICを正しく宣言していない場合、enp#s##はNICのPCIバスとスロットIDに対応する番号を表します。

メッセージが出てきたため、ifup明らかにNetworkManagerを使用していないため、ネットワークインターフェイスの名前がない場合は、そのファイルおよび/またはディレクトリ内のすべてのファイルをeth0編集して、設定用のネットワークインターフェイスの正しい名前を指定できます。/etc/network/interfaces/etc/network/interfaces.d/

一方、ip link show出力に次のようにループバックインターフェイスのみが表示されている場合:

# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

これにより、システムはネットワークカードを駆動するために必要な正しいカーネルモジュールを自動的にロードできません。この場合、出力lspci -nn(またはNICを識別する行)は、NICの正確な製造元とモデルを識別するのに役立ちます。

おすすめ記事