美文网首页
ubu 22 虚机中无网络问题

ubu 22 虚机中无网络问题

作者: 走在成长的道路上 | 来源:发表于2022-08-05 10:46 被阅读0次

    主机 windows 10, VM 虚机装 ubu 22 桌面版,出现无网络状态,先清理 NetworkManager 缓存,如下命令:

    # 关闭 NetworkManager
    sudo service NetworkManager stop 
    # 删除 NetworkManager 缓存
    sudo rm /var/lib/NetworkManager/NetworkManager.state 
    # 重新启动 NetworkManager
    sudo service NetworkManager start
    

    配置 aliyun

    #deb包
    
    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    
    ##测试版源
    
    deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
    
    # 源码
     
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    

    使用 sudo apt update 进行更新操作

    安装 open-vm-tools VM 工具

    sudo apt install open-vm-tools
    

    相关文章

      网友评论

          本文标题:ubu 22 虚机中无网络问题

          本文链接:https://www.haomeiwen.com/subject/nigmwrtx.html