我正在尝试做
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
但我收到以下错误:
W: Failed to fetch http://ftp.udc.es/ubuntu/dists/trusty/Release Unable to find expected entry 'main/binary-x8-64/Packages' in Release file (Wrong sources.list entry or malformed file)
Run Code Online (Sandbox Code Playgroud)
我已经尝试重置 /etc/apt/sources.list 就像这里建议的那样:
并且还尝试选择另一台服务器来下载更新:Ubuntu 12.04 上的“sudo apt-get update”错误
但我一直收到同样该死的错误信息。有任何想法吗?
正如评论中所问,做:
$ grep -R ftp.udc.es /etc/apt/sources.list*
/etc/apt/sources.list:deb http://ftp.udc.es/ubuntu/ trusty main universe
/etc/apt/sources.list.save:deb http://ftp.udc.es/ubuntu/ trusty main
$ cat sources.list
## See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
deb http://ftp.udc.es/ubuntu/ trusty main universe
# CDROMs …Run Code Online (Sandbox Code Playgroud)