使用终端切换到/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
使用终端切换到/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