具体报错:
E: Malformed entry 1 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
解决:
在官网下载对应版本的source.list
:
将之前的文件删除或备份:
cd /etc/apt
sudo rm sources.list
再将刚下载好的文件放入:
cp {下载目录}/sources.list /etc/apt
最后更新成功:
sudo apt-get update -y