Ubuntu 添加华科仓库镜像

简单记录下仓库更换。

备份

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

编辑

$ sudo vim /etc/apt/sources.list

Vim 替换

替换 cn.archive.ubuntu.com/security.ubuntu.commirrors.hust.edu.cn

:%s/cn.archive.ubuntu.com/mirrors.hust.edu.cn/

:%s/security.ubuntu.com/mirrors.hust.edu.cn/

更新

$ sudo apt update

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s