Report this

What is the reason for this report?

Can't update or install new scripts

Posted on June 28, 2013

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Nevermind, I solved it. <br> <br>I simply restored sources.list.old (the backup)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.