Running sudo apt update
, I got this error:
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)
How do I fix this? I am running Ubuntu 14.04 64-bit.
Update: I followed my answer, but the error returned today. The file /etc/apt/sources.list.d/google-earth.list
is back to the way it was, and I just noticed it has these two lines:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
So it seems the file was overwritten, meaning the current answer is not a permanent fix, and neither is the duplicate.
Update 2: I've decided to uninstall Google Earth and delete its .list file. I never use it anyway. If anyone is having the same issue, let me know and I'll help you out.
Update 3: muru mentioned in the comments that there is a cron file, /etc/cron.daily/google-earth
. I read through it and found it appends this to the .list file:
deb http://dl.google.com/linux/earth/deb/ stable main
So maybe editing this part of the cron job, or disabling it outright, would solve the problem.
/etc/cron.daily/google-earth
file?REPOCONFIG="deb http://dl.google.com/linux/earth/deb/ stable main"
/etc/apt/sources.list.d/google-earth.list
. Thanks for discovering/pointing out that this cron script existed - I didn't even consider that this is how the file (google-earth.list
) was getting overwritten.