wja*_*rea 9 updates software-sources google-earth
运行sudo apt update,我收到此错误:
W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
Run Code Online (Sandbox Code Playgroud)
我该如何解决?我正在运行 Ubuntu 14.04 64 位。
更新:我按照我的回答进行了操作,但今天返回了错误。该文件/etc/apt/sources.list.d/google-earth.list恢复原状,我刚刚注意到它有以下两行:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
Run Code Online (Sandbox Code Playgroud)
所以看起来文件被覆盖了,这意味着当前的答案不是永久性的修复,也不是重复的。
更新 2:我决定卸载 Google 地球并删除其 .list 文件。反正我从来不用它。如果有人遇到同样的问题,请告诉我,我会帮助您。
更新 3:muru 在评论中提到有一个 cron 文件/etc/cron.daily/google-earth. 我通读了它,发现它将它附加到 .list 文件中:
deb http://dl.google.com/linux/earth/deb/ stable main
Run Code Online (Sandbox Code Playgroud)
因此,也许编辑 cron 作业的这一部分,或完全禁用它,可以解决问题。
我在这个类似问题上找到了答案:Google Chrome 32-bit 没有更多更新
我跑了sudo nano /etc/apt/sources.list.d/google-earth.list,并改变了这一行:
deb http://dl.google.com/linux/earth/deb/ stable main
Run Code Online (Sandbox Code Playgroud)
对此:
deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
Run Code Online (Sandbox Code Playgroud)
然后sudo apt update成功了。
| 归档时间: |
|
| 查看次数: |
5694 次 |
| 最近记录: |