PDA

View Full Version : [SOLVED] apt-get failure



bl00dang3l
May 12th, 2010, 04:59 PM
As trying to update my system the other day I was greeted with a message I did not want.


tpsv@titantest:~$ sudo apt-get install update
Reading package lists... Error!
E: Problem parsing dependency Replaces
E: Error occurred while processing language-pack-kde-nds (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_karmic_main_bin ary-i386_Packages
E: The package lists or status file could not be parsed or opened.
Any help would be great! Thanks

Soul-Sing
May 12th, 2010, 05:05 PM
sudo rm -f /var/lib/dpkg/lock


sudo apt-get update

or


sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

bl00dang3l
May 12th, 2010, 10:00 PM
sudo rm -f /var/lib/dpkg/lock


sudo apt-get update

or


sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update
Thanks the second option worked. Can you explain to me why?

Soul-Sing
May 13th, 2010, 10:46 AM
It is a hard "reset" and new build-up of your -apt-lists, the rebuild is done via apt-get update.
normally a partial rm (language-pack-kde-nds) is enough, but for some reason a partial removal doesn't work very often.