Can't update or install new scripts

June 28, 2013 2.1k views
I'm trying to install Reddit Code which uses python and postgres on Ubuntu 12.04. I've already installed all the dependencies. I had to add 2 new entries to /etc/apt/sources.list to be able to download Cassandra which is essential for reddit code to operate. But I removed them afterwards and restored the file to its original state. I then ran: sudo apt-get update And I got this error W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release Unable to find expected entry 'deb/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release Unable to find expected entry 'deb/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release Unable to find expected entry 'deb/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. I even got that error when I tried to install reddit code through their automated script for ubuntu 12.04
1 Answer
Nevermind, I solved it.

I simply restored sources.list.old (the backup)
Have another answer? Share your knowledge.