我正在尝试做
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 are managed through the apt-cdrom tool.
$ dpkg --print-architecture
amd64
$ dpkg --print-foreign-architectures
i386
x8664
x8-64
x864
Run Code Online (Sandbox Code Playgroud)
从 的输出中可以看出dpkg --print-foreign-architectures
,出于某种原因,您添加了一堆无效的架构。删除它们:
sudo dpkg --remove-architecture x8664
sudo dpkg --remove-architecture x8-64
sudo dpkg --remove-architecture x864
Run Code Online (Sandbox Code Playgroud)
将来,请检查您要添加的内容。
归档时间: |
|
查看次数: |
13422 次 |
最近记录: |