国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Ubuntu開機卡在 A start job is runing for wait for Network to be configured (1min 23s / no limit)解決方法

這篇具有很好參考價值的文章主要介紹了Ubuntu開機卡在 A start job is runing for wait for Network to be configured (1min 23s / no limit)解決方法。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

Ubuntu開機卡在 A start job is runing for wait for Network to be configured (1min 23s / no limit)解決方法

問題現(xiàn)象:

Ubuntu開機卡在這里遲遲無法開機,要等倒計時完以后才會順利開機。原因可能是系統(tǒng)開機初始化網絡配置出錯,加上系統(tǒng)默認配置有等待時間,導致系統(tǒng)會一直進行一些無用的嘗試,直到超過等待時間,這樣無形之中加長了開機的時間。Ubuntu開機卡在 A start job is runing for wait for Network to be configured (1min 23s / no limit)解決方法

解決思路及方法:(兩種)

首先想到的解決方法是修復配置上的錯誤使初始化順利完成,第二是調整的等待時間,使其快速跳過。
(我這里提供兩種解決方法,大家酌情取用)

一、修改網絡配置

網絡配置文件:
查看網絡配置文件如下:

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens33:
      dhcp4: true
    ens34:
      dhcp4: true
  version: 2

這里我虛擬機的ens34網卡是VMvera Host only模式下虛擬的一張網卡,是沒有開啟DHCP的,我是準備配置靜態(tài)IP地址與宿主機通信的,但是這里我選擇的是DHCP,懷疑是這里的問題,遂修改配置文件。
提示:修改的配置如下

root@k8s-master1:~# vim /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
    version: 2
    ethernets:
        ens33:
            dhcp4: yes
            nameservers:
                search: [mydomain, otherdomain]
                addresses: [192.168.121.1, 8.8.8.8]
            dhcp4-overrides:
                route-metric: 0
        ens34:
            addresses:
                - 192.168.10.14/24
            nameservers:
                search: [mydomain, otherdomain]
                addresses: [192.168.10.254, 1.1.1.1]
            dhcp4-overrides:
                route-metric: 100

root@k8s-master1:~# netplan apply
root@k8s-master1:~#
加載配置,沒有報錯說明加載成功。
重啟后就沒出現(xiàn)過等待的現(xiàn)象了。

二、修改初始化失敗后的嘗試及等待時間

這種方法是大家普遍使用的,網上此類相同問題的處理方法都是這種。
直接修改相關配置文件:
在【service】代碼快最末尾加上TimeoutStartSec=2sec

root@k8s-master1:~# cd /etc/systemd/system/network-online.target.wants/
root@k8s-master1:/etc/systemd/system/network-online.target.wants# ll
total 8
drwxr-xr-x  2 root root 4096 Aug 24  2021 ./
drwxr-xr-x 19 root root 4096 Mar 24 08:11 ../
lrwxrwxrwx  1 root root   56 Aug 16  2021 systemd-networkd-wait-online.service -> /lib/systemd/system/systemd-networkd-wait-online.service

修改完如下所示:

#  SPDX-License-Identifier: LGPL-2.1+
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Wait for Network to be Configured
Documentation=man:systemd-networkd-wait-online.service(8)
DefaultDependencies=no
Conflicts=shutdown.target
Requires=systemd-networkd.service
After=systemd-networkd.service
Before=network-online.target shutdown.target

[Service]
Type=oneshot
ExecStart=/lib/systemd/systemd-networkd-wait-online
RemainAfterExit=yes
TimeoutStartSec=2sec
[Install]
WantedBy=network-online.target

修改完重啟測試未出現(xiàn)以上現(xiàn)象。文章來源地址http://www.zghlxwxcb.cn/news/detail-465207.html

到了這里,關于Ubuntu開機卡在 A start job is runing for wait for Network to be configured (1min 23s / no limit)解決方法的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!

本文來自互聯(lián)網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如若轉載,請注明出處: 如若內容造成侵權/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • 解決系統(tǒng)開機啟動緩慢,并提示Timed out waiting for device XXX,Dependency failed for XXX.

    一臺機器掛載了兩塊數據盤(/dev/sdb,/dev/sdc) 由于掛載的sdb一直沒有使用,數據都放在sdc下,所以操作將它刪除,重啟后發(fā)現(xiàn)機器要一分多鐘才可以連接:查看message日志發(fā)現(xiàn)有timed out: 近期除刪除sdb磁盤外無其他操作,可能是刪除磁盤導致的 查看磁盤數據和盤符是否正常: 發(fā)

    2024年02月03日
    瀏覽(23)
  • Job for network.service failed because the control process exited with error code.

    Linux Centos7 修改為靜態(tài)iP后重啟網絡服務遇到的問題 重啟網絡:service network restart ? ? ? ? ? ? ? ? ? /etc/init.d/network restart 報錯問題描述:Job for network.service failed because the control process exited with error code. See \\\"systemctl status network.service\\\" and \\\"journalctl -xe\\\" for details. ? 查看 cat /etc/sy

    2024年02月08日
    瀏覽(89)
  • 關于Job for network.service failed because the control process exited with error code.

    關于Job for network.service failed because the control process exited with error code.

    重啟網絡出現(xiàn)報錯 Job for network.service failed because the control process exited with error code. See \\\"systemctl status network.service\\\" and \\\"journalctl -xe\\\" for details. 1.執(zhí)行systemctl restart network.service命令后出現(xiàn)下面的錯誤 2.按照報錯提示輸入了systemctl status network.service 3.解決方法 3.1網絡配置工具network和

    2024年02月11日
    瀏覽(91)
  • Ubuntu 22.04 使用技巧 | 解決開機卡在 /dev/sda3 : clean , ***files , ***blocks

    Ubuntu 22.04 使用技巧 | 解決開機卡在 /dev/sda3 : clean , ***files , ***blocks

    本人是Windows下裝的Ubuntu鏡像,某天莫名其妙的出現(xiàn)這種問題。出現(xiàn)這種狀況每個人的情況可能都不太一樣,本人也是找了很多解決這種問題的方法,都要重裝Ubuntu鏡像了,想到虛擬機里還有未上傳的代碼,還是決定再去尋找解決方法,最后也算是功夫不負有心人,成功解決。

    2024年02月05日
    瀏覽(91)
  • systemctl start docker異常 Job for docker.service failed because the control process exited with error

    啟動docker 異常了 Job for docker.service failed because the control process exited with error code. See \\\"systemctl status docker.service\\\" and \\\"journalctl -xe\\\" for details. ?如果在啟動Docker時遇到\\\"Job for docker.service failed because the control process exited with error code.\\\"錯誤,這表明Docker服務啟動時出現(xiàn)問題。為了排查和解

    2024年02月07日
    瀏覽(307)
  • 解決IDEA運行時報錯Cannot start compilation: the output path is not specified for module “xxxxx“.

    解決IDEA運行時報錯Cannot start compilation: the output path is not specified for module “xxxxx“.

    友情提醒: 先看文章目錄,大致了解文章知識點結構,點擊文章目錄可直接跳轉到文章指定位置。 報錯如下:Cannot start compilation: the output path is not specified for module \\\"xxxxx\\\". Specify the output path in the Project Structure dialog. 翻譯成中文: 無法啟動編譯:未為模塊\\\"xxxx\\\"指定輸出路徑,在

    2024年02月05日
    瀏覽(21)
  • Linux——解決問題:waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by pr

    Linux——解決問題:waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by pr

    在Linux操作系統(tǒng)下使用命令sudo apt install安裝包時報錯:waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 2715 (unattended-upgr)… 173s 出現(xiàn)該問題,是因為另一個進程正在使用 apt 命令,導致無法獲取鎖來執(zhí)行的命令。可以結束在使用apt命令的進程后再安裝。結

    2024年02月03日
    瀏覽(29)
  • 【vue ui 一直卡在 Starting GUI..】

    【vue ui 一直卡在 Starting GUI..】

    直接在cmd中輸入如下

    2024年02月03日
    瀏覽(18)
  • 樹莓派安裝Ubuntu18.04+ROS1詳細教程(解決start4.elf: is not compatible報錯)

    樹莓派安裝Ubuntu18.04+ROS1詳細教程(解決start4.elf: is not compatible報錯)

    樹莓派三代是32位系統(tǒng)的,四代是64位系統(tǒng)的,所以我們安裝鏡像時要看清楚是樹莓派幾代的,多少位系統(tǒng)的。 樹莓派4B是64位系統(tǒng) ,我所使用的是樹莓派4B,這里安裝Ubuntu18.04. 好像Ubuntu16.04太早就不維護更新了,就沒有64位系統(tǒng)了。 提一句: 虛擬機下載的是后綴為.iso的鏡像

    2024年02月04日
    瀏覽(91)
  • IE11(Win11)selenium自動化報This is the initial start page for the WebDriver server.解決方案

    IE11(Win11)selenium自動化報This is the initial start page for the WebDriver server.解決方案

    本人使用IE11一直報This is the initial start page for the WebDriver server.錯誤,搜了很多方法例如修改Internet選項、修改注冊表等等都試了,就是沒有解決。 修改Internet選項,win11和網上搜出的結果,基本都不一樣,所以解決無效 注冊表也改了,也沒用 使用python代碼修改窗口縮放比例,

    2024年02月08日
    瀏覽(17)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包