易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1369|回复: 0
收起左侧

ubuntu 配置apt-get源

[复制链接]
发表于 2022-1-11 17:00:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
ubuntu 配置apt-get源* q; ?& o- s; R
7 Z6 _/ K) Y4 Q8 L8 ?
ubantu安装软件速度慢一般是因为系统默认选择的源导致,可以通过手动配置源设置解决。
1. 原文件备份
mv /etc/apt/sources.list /etc/apt/sources.list_bk

# N& [8 C4 c) u! @
2. 编辑源列表文件
vim /etc/apt/sources.list

* d& Z7 W& f8 R/ \4 b% i+ k5 A' e
3. 添加如下内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
- O! H5 D- [& a: ]0 B) B0 |- O8 m3 ldeb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse& [/ |: ~3 r+ }) J
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse* P* c/ W& ]1 S' A% [1 {
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse  ~" E8 u$ A9 D8 ]- y, ^
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse) i- O1 x) G! L- z& M; @
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
0 k3 h, w4 y6 R4 Z
4. 更新源
apt-get update
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:30 , Processed in 0.052064 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表