如何解决“无法找到预期的条目’restricted / binary-1386 / Packages’错误的sources.list条目或格式错误的文件”?
我是Ubuntu 13.10的新用户。 我最近尝试解决Skype安装问题并添加了一些涉及binary-1386的PPA。 每次运行sudo apt-get update
,都会出现以下错误:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/saucy/Release Unable to find expected entry 'restricted/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file) W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/saucy/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file) ... ... E: Some index files failed to download. They have been ignored, or old ones used instead.
我花了最后两个小时尝试解决此问题,并通过重置默认的俏皮设置更改了我的sources.list
文件,但这些错误仍然存在。 我还取消了软件和更新部分中的所有内容,但这似乎仍然出现。 错误消息似乎与'binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)
的'binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)
问题有关,如上所示。
我回溯了今天所做的事情:我正在关注help.ubuntu.com/community/Skype上的Skype说明并使用
sudo dpkg --add-architecture 1386
而不是i386
。 我快速搜索了如何删除dpkg并删除了添加的1386,现在一切正常!
– OP在评论中发布。
要删除不正确的体系结构 (在本例中为1386
),请运行:
sudo dpkg --remove-architecture 1386
打开源文件并搜索binary-1386
并用i
替换1
然后保存..
源文件可以在。中找到
/etc/apt/sources.list
和/或你可以在目录/etc/apt/sources.list.d/
找到很多文件
现在用sudo打开源文件并编辑
sudo gedit /etc/apt/sources.list
和/或
sudo gedit /etc/apt/sources.list.d/****.list
我改变了我的下载服务器,它就像魅力一样。 这是你如何做到的
1.打开“软件和更新”,然后单击“Ubuntu软件”选项卡。
-
点击“从’下载”并选择“其他”
-
单击“选择最佳服务器”。 Ubuntu需要一些时间来为您选择最好的服务器。 接受。
-
现在尝试再次运行软件更新。 它应该工作。
-
如果没有再次执行步骤1-4。 这次Ubuntu(希望)选择不同的服务器作为“最佳服务器”。 再次尝试软件更新。
关键是要从UBUNTU更新自己的下载服务器。