Failure to fetch certain packages on update?

Asked by Justin Dormandy

Hi I was hoping someone could help me out with this.

Ok, so I tried to upgrade to 12.04. Then power went out on laptop. I had a lot of issues trying to actually boot back into Unity desktop. Messed around with apt-get update, apt-get dist-upgrade, apt-get install, etc for a while. Then finally got in, messed around some more. Somehow managed to botch Unity3d. So ran unity --reset. I'm not 100% sure, but I think I almost got everything to how it should be (Any way to do some kind of diagnostic check?)

However, when I use update manager or apt-get update, I get the following

W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/Release Unable to find expected entry 'independent/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/Release Unable to find expected entry 'independent/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/Release Unable to find expected entry 'independent/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-security/Release Unable to find expected entry 'independent/binary-amd64/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.

This also doesn't seem to matter what server I use as my software source.

Thanks for any help

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

Can you help with this problem?

Provide an answer of your own, or ask Justin Dormandy for more information if necessary.

To post a message you must log in.