На этот вопрос уже есть ответ здесь:
при обновлении 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
Измените строку с:
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