ToB企服应用市场:ToB评测及商务社交产业平台

标题: 安装 wsl-ubuntu 24.04 [打印本页]

作者: 老婆出轨    时间: 2024-6-15 01:47
标题: 安装 wsl-ubuntu 24.04
1. 安装 Ubuntu-24.04

  1. wsl
  2. --install -d Ubuntu-24.04
复制代码
  1. wsl
  2. --export Ubuntu-24.04 D:\tmp\Ubuntu-24.04.tar
复制代码
  1. wsl
  2. --unregister Ubuntu-24.04
复制代码
  1. wsl
  2. --import Ubuntu-24.04 F:\VirtualPCs\Ubuntu-24.04 D:\tmp\Ubuntu-24.04.tar
复制代码
  1. wsl
复制代码
  1. exit
复制代码
  1. wsl
  2. --shutdown -d Ubuntu-24.04
复制代码
2. (可选)配置阿里云软件源

   20240427时点,清华大学还不支持24.04 LTS:https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
  
  1. mv /etc/apt/sources.list /etc/apt/sources.list.bak
复制代码
  1. cat << EOF > /etc/apt/sources.list
  2. deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
  3. deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
  4. deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
  5. deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
  6. deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
  7. deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
  8. # deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
  9. # deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
  10. deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
  11. deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
  12. EOF
复制代码
refer: https://developer.aliyun.com/mirror/ubunt
3. 体系更新

  1. sudo apt update && sudo apt upgrade
复制代码
完结!

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4