使用终端切换到/etc/apt/sources.list.d目录下,然后在路径下创建一个.list 文件,之后将你要添加的源写入其中,例如:

deb http://archive.ubuntu.com/ubuntu bionic-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main

保存文件后,执行命令更新源

sudo apt update
Last modification:December 20th, 2020 at 03:59 pm