I was trying to use sudo apt-get update
to update the packages on my system but I kept encountering an error
W: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.4/Release
Unable to find expected entry 'multiverse/binary-i386/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.
Error executing command, exiting
I looked everywhere, did whatever was suggested but nothing seems to work. I freshly created my source.list file but it was all in vain. Can anybody please suggest me something?
In my case not only a single line of sources.list if malformed but the entrie file is showing as malformed and I have already tried the methods suggested here How do I remove a malformed line from my sources.list? but it is not working..