Ubuntu Server安装VPN代理来解决仓库拉取失败的问题
1. 通过软件源安装
1. 添加公钥
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo tee /etc/apt/keyrings/v2raya.asc2024/11/23小于 1 分钟
Ubuntu Server安装VPN代理来解决仓库拉取失败的问题
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo tee /etc/apt/keyrings/v2raya.asc此时应该正在配置必选的网络,可能是有线也可能是无线
修改/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