方法1:进入/etc/apt
文件夹,如果有备份过,直接将备份文件sources.list.bak
文件的后缀名.bak
删去,使用普通的文本编辑器或者vim打开,就是原来的默认源。
方法2:直接复制下面的文本:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted
## N