换源

简介: 换源

注意

armbian 的源实际上 和ubuntu 没有太大区别,但是国内有的源里缺少很多东西,尤其是阿里华为这种源, arm 架构的却少了很多,谨慎换源!!


建议不要换源,默认的走的 ubuntu 官网,还可以接受,据说是和运营商有关,我的宽带是电信的,速度能达到 1m ,可以接受了。


方法一


方法二

Step1. 备份默认配置

$ sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak点击复制复制失败已复制


Step2. 写入新配置

$ sudo vim /etc/apt/sources.list点击复制复制失败已复制


写入如下内容:

deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
点击复制复制失败已复制


更新

$ sudo apt update点击复制复制失败已复制


注意

这方方式在我这里经常报 404 ,所以放弃换源了。

目录
相关文章
|
11月前
|
Ubuntu
Ubuntu安装aptitude
Ubuntu安装aptitude
115 0
debian11换源
直接编辑 /etc/apt/sources.list 文件
1033 0
|
2月前
pip换源
pip换源
89 0
|
3月前
|
Ubuntu Linux iOS开发
|
5月前
|
Ubuntu Shell Linux
ubuntu安装conda
ubuntu安装conda
144 0
|
Linux
换源
换源
180 1
|
Ubuntu 开发工具 git
Ubuntu安装GitKraken
Ubuntu安装GitKraken
580 0
换源(命令版)——推荐
换源(命令版)——推荐
117 0
|
资源调度 Shell Windows
换源(工具版)
换源(工具版)
211 0