Remove existing /var/lib/apt/lists.old before attempting to rename lists/ there.
1 parent b89a130 commit 784fb9b299d04004636452b39b887193ebb3dd2d
@tundra tundra authored on 9 Aug 2012
Showing 1 changed file
View
3
■■
apt-reinit.sh
#!/bin/sh
# Reinitialize Corrupt apt Configuration
# $Id: apt-reinit.sh,v 1.1 2012/04/26 17:47:38 tundra Exp $
# $Id: apt-reinit.sh,v 1.2 2012/08/09 18:40:53 tundra Exp $
 
apt-get clean
cd /var/lib/apt
rm -rf lists.old
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update