首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Ubuntu 更改软件源

Ubuntu 更改软件源

作者头像
Dean0731
发布于 2020-05-11 17:28:32
发布于 2020-05-11 17:28:32
3K0
举报
文章被收录于专栏:blog-技术博客blog-技术博客

1,备份 /etc/apt/sources.list

代码语言:javascript
复制
sudo cp /etc/apt/sources.list  /etc/apt/sources.list.backup  

2,删除原内容,改为:

代码语言:javascript
复制
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
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
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

3,更新

代码语言:javascript
复制
sudo apt-get update
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-01-01 ,如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • 1,备份 /etc/apt/sources.list
  • 2,删除原内容,改为:
  • 3,更新
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档