Ubuntu安装及相关设置
分区设置参考
个人推荐,不用软件数据存放的位置不同,避免安装时大量修改配置,耗时耗力。
| 挂载点 | 大小 | 类型 | 备注 |
|---|---|---|---|
| /boot/efi | 512MB(默认即可) | EFI | UEFI必选 |
| swap | 内存2倍(4G/8G) | swap | 休眠需要(不需要休眠随便写点) |
| / | 剩余 | ext4 | 系统及用户数据 |
Ubuntu24.04.02切换软件源
一、软件源配置文件位置
Ubuntu24.04的源地址配置文件发生改变,不再使用以前的sources.list文件,升级24.04之后,而是使用如下文件**/etc/apt/sources.list.d/ubuntu.sources**
二、换源步骤
1. 备份源配置文件
cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak
2. 编辑源配置文件
nano /etc/apt/sources.list.d/ubuntu.sources
运行项目并下载源码
3.替换为国内镜像源
删除原有内容,替换为以下镜像源之一:
# 阿里源(推荐)
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# 清华源
Types: deb
URIs: http://mirrors.tuna.tsinghua.edu.cn/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# 中科大
Types: deb
URIs: http://mirrors.ustc.edu.cn/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# 网易
Types: deb
URIs: http://mirrors.163.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
4. 更新
sudo apt update
22万+

被折叠的 条评论
为什么被折叠?



