Question

Can't update or install new scripts

Posted June 28, 2013 3.2k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer
Nevermind, I solved it.

I simply restored sources.list.old (the backup)
Submit an Answer