apt-get problems on Wheezy

I am having some troubles with apt-get. I did an apt-get update and an apt-get upgrade. Some dependencies did not download, and so I had to do `apt-get -f install` to fix that. The thing is I get an error about /var/lib/dpkg/available

root@hayek:~# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  e2fsprogs
Suggested packages:
  gpart parted e2fsck-static
The following packages will be upgraded:
  e2fsprogs
1 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
Need to get 0 B/955 kB of archives.
After this operation, 26.6 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Reading changelogs... Done
dpkg: error: parsing file '/var/lib/dpkg/available' near line 43223 package 'libatk1.0-0':
 duplicate value for `Package' field
E: Sub-process /usr/bin/dpkg returned an error code (2)

It seems that the apt-get update has corrupted the database of available packages. I might just be able to run apt-get update tommorow and find the problem gone. The thing is I cannot install any new packages while I wait.

weezy is Out of date i would suggest grabbing lenny.

Completely the other way around actually...

lenny = stable
wheezy = testing
sid = unstable

wheezy is where you get the new gnome, a gwibber that works with twitters new authentication, and generally up to date packages.

Do yourself a favor and do more research about things or you will become a confused mess of a user/coder/whatever and have to become an accountant or tax collector.

This problem looks familiar, and I think you are right, the package database is corrupted. But I can't remember which files it deals with. You can try this and see if it works:

sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.backup

I don't think that is the right file though.

----- EDIT -----
Okay, I think it's one of these files:

sudo mv /var/cache/apt/pkgcache.bin /var/cache/apt/pkgcache.bin.old
sudo mv /var/cache/apt/srcpkgcache.bin /var/cache/apt/srcpkgcache.bin.old

Try doing that then run apt-get.