打开突触源列表第 57 行时出现错误消息

打开突触源列表第 57 行时出现错误消息

似乎我的源列表中有一个我无法找到的问题;每次我尝试打开突触时都会出现此错误:

E: Malformed line 57 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

打开我的源列表,第 57 行似乎不存在,就是这样;

(我是新用户,只能发布两个超链接 - 这是最后两行,我怀疑其中一行是问题所在......)

deb-src http://extras.ubuntu.com/ubuntu quantal main
deb-src http://archive.canonical.com partner

我尝试寻找解决方案并发现了类似的问题,只是不确定我应该删除/替换哪一行......

# deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://de.archive.ubuntu.com/ubuntu/ quantal main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ quantal main restricted

## Major bug fix updates produced after the final release of the
## distribution
deb http://de.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://de.archive.ubuntu.com/ubuntu/ quantal universe
deb http://de.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://de.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates multiverse>

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu quantal-security main restricted
deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse>

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu quantal partner
# deb-src http://archive.canonical.com/ubuntu quantal partner>

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu quantal main
deb-src http://extras.ubuntu.com/ubuntu quantal main
deb-src http://archive.canonical.com partner

答案1

您的第二行在 URL 和 之间缺少分发版本(量子)partner

编辑:在整个文件中,每个条目必须采用以下形式:

deb|deb-src URL distrib archive [archive […]]

第 29 行:

deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates multiverse>

应该:

deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

第 44 行:

deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse>

应该:

deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse

第 51 行(无所谓,因为已被注释掉):

# deb-src http://archive.canonical.com/ubuntu quantal partner>

应该:

deb-src http://archive.canonical.com/ubuntu quantal partner

第 57 行 (最后一行)​​:

deb-src http://archive.canonical.com partner

应该:

deb-src http://archive.canonical.com quantal partner

其余部分似乎正确。不过,我还没有用 aptitude 验证过。

相关内容