树莓派、Ubuntu相关问题汇总
2024/11/23小于 1 分钟
树莓派、Ubuntu相关问题汇总
1. 树莓派安装Ubuntu Server后,每次开机卡在“A start job is running for wait for network to be Configured”

此时应该正在配置必选的网络,可能是有线也可能是无线
修改/etc/netplan/50-cloud-init.yaml,将所有可能的网络类型都设置为可选【optional: true】,而非必选
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
renderer: networkd
eth0:
dhcp4: true
optional: true
wifis:
renderer: networkd
wlan0:
access-points:
Xiaomi_19DE:
password: 212ab2fc321ef91189d7858a8a4bc589af7ea380be6764b1d0078291467ca4f9
dhcp4: true
optional: true