易陆发现互联网技术论坛

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

ubuntu 配置apt-get源

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

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

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

x
ubuntu 配置apt-get源$ U, ]8 C# X2 c+ G

1 J" d" ~8 E0 ^
ubantu安装软件速度慢一般是因为系统默认选择的源导致,可以通过手动配置源设置解决。
1. 原文件备份
mv /etc/apt/sources.list /etc/apt/sources.list_bk
( `% N. V0 c6 o7 u, F* ~9 d' z
2. 编辑源列表文件
vim /etc/apt/sources.list
, f. v. d; o/ H9 V8 P5 x) S
3. 添加如下内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse1 T. F% B0 f4 Y& c" q/ ^; F
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse6 T1 r+ f+ ^4 Y
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse2 G; j' b' ?% G4 e6 Z) H# x; P, c
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
& a  v4 W1 v% }' e# D, `' D3 N/ kdeb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse* H8 l0 n3 [% f
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
0 z( G( u# y! `7 ?) H4 @0 B
4. 更新源
apt-get update
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 20:22 , Processed in 0.045589 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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