出于某种原因,当我尝试执行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.list
或sources.list.d
目录中找不到该行。有人可以帮我弄清楚这可能来自哪里吗?
答案 0 :(得分:0)
首先,可以在/etc/apt/sources.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版本?