【Linux】Ubuntu 使用指南
发布日期:2021-05-13 21:40:19 浏览次数:25 分类:精选文章

本文共 1358 字,大约阅读时间需要 4 分钟。

content

1. 换清华源

  1. 备份 Ubuntu 的软件源配置文件 /etc/apt/sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  1. 换清华软件源镜像
sudo vim /etc/apt/sources.list

Ubuntu 20.04 LTS 清华镜像源

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse# 预发布软件源,不建议启用# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

2. 更新三步走

  1. 查找并下载更新
sudo apt update
  1. 查看可更新软件
apt list --upgradable

安装设置 更新

sudo apt upgrade
  1. 清除不需要的旧组件
sudo apt autoremove

3.

上一篇:【leetcode】57. 插入区间(insert-interval)(模拟)[困难]
下一篇:【leetcode】941. 有效的山脉数组(valid-mountain-array)(模拟)[简单]

发表评论

最新留言

感谢大佬
[***.8.128.20]2025年04月06日 02时05分03秒