我启动了 Ubuntu 15.10,但无法打开软件更新程序应用程序。我不断收到以下错误
SystemError: E:Malformed line 55 in source list /etc/apt/sources.list (dist parse)
我尝试清除应用程序并重新安装,但仍然出现相同的错误。有什么建议吗?
答案1
执行以下操作来重新创建您的sources.list
。打开终端 () 并输入:
sudo su
然后通过将以下块复制并粘贴到终端并按一次回车键来重新创建您的源列表。
cat > /etc/apt/sources.list << EOF
deb http://archive.ubuntu.com/ubuntu wily main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu wily main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu wily-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu wily-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu wily-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu wily-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu wily-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu wily-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu wily partner
deb-src http://archive.canonical.com/ubuntu wily partner
EOF
之后只需键入exit
即可返回正常用户模式。然后一切都应该正常运行。