Apt-get更新失败,我无法弄清楚它的来源

时间:2014-08-19 20:50:03

标签: ubuntu apt-get

出于某种原因,当我尝试执行sudo apt-get update时,它会检查所有源列表并以此结束

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release  Unable to find expected entry 'contrib/source/Sources' in Release file (Wrong sources.list entry or malformed file)

问题是我在sources.listsources.list.d目录中找不到该行。有人可以帮我弄清楚这可能来自哪里吗?

1 个答案:

答案 0 :(得分:0)

首先,可以在/etc/apt/sources.list

中找到source.list

看起来您缺少基本的存储库来源。这应该是:

deb http://ru.archive.com/ubuntu/ maverick main restricted
deb-src http://ru.archive.com/ubuntu/ maverick main restricted
deb http://security.ubuntu.com/ubuntu/ maverick main-security restricted
deb-src http://security.ubuntu.com/ubuntu/ maverick main-security restricted

你在运行什么Ubuntu版本?