安装 wsl-ubuntu 24.04

news/2024/9/23 8:15:33/

安装 wsl-ubuntu 24.04

  • 1. 安装 Ubuntu-24.04
  • 2. (可选)配置阿里云软件源
  • 3. 系统更新

1. 安装 Ubuntu-24.04

  1. 安装 Ubuntu-24.04,默认会安装在 C 盘,
wsl --install -d Ubuntu-24.04
  1. 导出 Ubuntu-24.04
wsl --export Ubuntu-24.04 D:\tmp\Ubuntu-24.04.tar
  1. 删除 Ubuntu-24.04
wsl --unregister Ubuntu-24.04
  1. 导入 Ubuntu-24.04,导入到 F:\VirtualPCs\Ubuntu-24.04 目录,
wsl --import Ubuntu-24.04 F:\VirtualPCs\Ubuntu-24.04 D:\tmp\Ubuntu-24.04.tar
  1. 访问 Ubuntu-24.04
wsl
  1. 退出 Ubuntu-24.04
exit
  1. (可选)关闭 Ubuntu-24.04
wsl --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
cat << EOF > /etc/apt/sources.list
deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse# deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverseEOF

refer: https://developer.aliyun.com/mirror/ubunt

3. 系统更新

sudo apt update && sudo apt upgrade

完结!


http://www.ppmy.cn/news/1446313.html

相关文章

ARP学习及断网攻击

1.什么是ARP ARP&#xff08;Address Resolution Protocol&#xff09;是一种用于在IPv4网络中将IP地址映射到MAC地址的协议。在计算机网络中&#xff0c;每个网络接口都有一个唯一的MAC地址&#xff08;Media Access Control address&#xff09;&#xff0c;用于识别网络设备…

git 配置相关

问题一&#xff1a;ssh-keygen -t ed25519 -C "Gitee SSH Key" 这个命令中的 ed25519 字符是什么意思&#xff1f; ssh-keygen 是一个用于生成SSH密钥的工具&#xff0c;SSH&#xff08;Secure Shell&#xff09;是一种网络协议&#xff0c;用于加密方式远程登录和其…

联想小新PRO16 ARM-7换固态硬盘和装双系统win11和ubuntu2022.04

联想小新PRO16 ARM-7换固态硬盘和装双系统win11和ubuntu2022.04 前言 记录一下其中的好几个坑。耗时4天&#xff0c;新旧硬盘拆拆卸卸的不止二十次。希望能给各位一点帮助。 步骤 1. 买硬盘 查看电脑后壳的S\N号&#xff0c;在联想官网上查找自己电脑的相关信息&#xff1a;…

ansible-playbook离线升级centos内核

目录 概述实践ansible目录结构关键代码执行效果 结束 概述 内核离线包官网下载地址如下&#xff1a; 地址 实践 ansible目录结构 如对 ansible 不熟悉&#xff0c;离线包下载有问题&#xff0c;请至此地址下载&#xff0c;按本文操作可直接使用。 相关文章链接如下 文章地…

竞赛 基于机器视觉的二维码识别检测 - opencv 二维码 识别检测 机器视觉

文章目录 0 简介1 二维码检测2 算法实现流程3 特征提取4 特征分类5 后处理6 代码实现5 最后 0 简介 &#x1f525; 优质竞赛项目系列&#xff0c;今天要分享的是 基于机器学习的二维码识别检测 - opencv 二维码 识别检测 机器视觉 该项目较为新颖&#xff0c;适合作为竞赛课…

SpringBoot的墙绘产品展示交易平台 - 源码免费(私信领取)

v&#xff1a;chengn7890&#xff5c;源码免费 1. 研究目的 本项目旨在设计并实现一个基于Spring Boot的墙绘产品展示交易平台&#xff0c;为墙绘艺术家提供一个展示作品、交流经验、销售作品的平台&#xff0c;促进墙绘艺术产业的发展。 2. 研究要求 a. 需求分析 通过深入…

AI大模型系列:自然语言处理,从规则到统计的演变

AI大模型系列文章目录 文明基石&#xff0c;文字与数字的起源与演变自然语言处理&#xff0c;从规则到统计的演变AI魔法师&#xff0c;提示工程的力量 自然语言处理&#xff0c;从规则到统计的演变 自然语言处理&#xff08;Natural Language Processing&#xff0c;NLP&…

【Linux】进程相关

文章目录 一、fork函数二、进程地址空间 一、fork函数 fork 函数从其执行位置分化为两个进程来执行剩下的代码, 调用 fork 的函数称为父函数, 分化出来的函数称为子函数. 头文件: #include <unistd.h> 声明: pid_t fork(void); 关于返回值, 函数调用成功后就分化为两个…