升级 Ubuntu 时出现此错误:
$ sudo apt-get upgrade
error Malformed line 1 in source list /etc/apt/sources.list (type) E: The list of sources could not be read
源列表中的第 1 行如下:
123#deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted
答案1
将该行从:
123#deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted
到:
#deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted