Ubuntu更换软件源

简介: Ubuntu更换软件源
sudovim /etc/apt/sources.list


添加以下配置:

#添加阿里源

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

#添加清华源

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 multiverse

deb 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 multiverse

deb 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 multiverse

deb 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 multiverse

执行更新:

sudo apt-get update

如出现依赖问题,解决方式如下:

sudo apt-get -f install

更新软件:

sudo apt-get upgrade
目录
相关文章
|
4月前
|
Ubuntu
百度搜索:蓝易云【如何将Ubuntu软件源切换到国内源?】
现在,你已经成功将Ubuntu软件源切换到国内源,将能够享受更快的下载速度和更稳定的软件包更新。
170 6
|
6月前
|
Ubuntu 开发工具
Ubuntu 18.04 软件源修改成国内源
Ubuntu 18.04 软件源修改成国内源
298 0
|
26天前
|
Ubuntu
ubuntu更换国内镜像源,下载增速
ubuntu更换国内镜像源,下载增速
|
6月前
|
Ubuntu PHP 开发工具
ubuntu 使用命令行更换国内源
ubuntu 使用命令行更换国内源
549 35
|
4月前
|
Ubuntu
百度搜索:蓝易云【Ubuntu系统更新软件源教程】
现在,你已经成功更新了Ubuntu系统的软件源,系统中的软件包将是最新的版本。建议定期执行以上步骤,保持系统的安全性和稳定性。
25 0
|
9月前
|
Ubuntu Linux
【Ubuntu系统更换清华大学镜像源【详解】】
Ubuntu是一种基于Debian的Linux操作系统,它的软件仓库中包含了许多开源软件包。由于全球用户的数量众多,因此Ubuntu的官方镜像源可能会受到访问压力的影响而变得较慢。为了避免这种情况,我们可以将Ubuntu系统的镜像源切换到清华大学镜像源。本文将详细介绍如何在Ubuntu系统中更换清华大学镜像源。
1056 0
|
10月前
|
Ubuntu 索引
ubuntu更换apt源后依然搜索旧软件源下载失败问题
ubuntu更换apt源后依然搜索旧软件源下载失败问题
454 0
|
10月前
|
Ubuntu C语言
Ubuntu下更换gcc版本
Ubuntu下更换gcc版本
388 0
|
Ubuntu
Ubuntu 更换国内源
Ubuntu 更换国内源
1722 0
|
Ubuntu Linux
Ubuntu 更换新 Logo :橙色+矩形 Logo|“Circle of Friends”主题更紧凑更统一
Ubuntu 更换新 Logo :橙色+矩形 Logo|“Circle of Friends”主题更紧凑更统一
135 0
Ubuntu 更换新 Logo :橙色+矩形 Logo|“Circle of Friends”主题更紧凑更统一