GitBucket
Toggle navigation
Pull requests
Issues
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Fork
: 0
tundra
/
apt-reinit
Browse code
Remove existing /var/lib/apt/lists.old before attempting to rename lists/ there.
master
1 parent
b89a130
commit
784fb9b299d04004636452b39b887193ebb3dd2d
tundra
authored
on 9 Aug 2012
Patch
Unified
Split
Showing
1 changed file
+2
-1
■
■
■
■■
apt-reinit.sh
Ignore Space
Show notes
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
Show line notes below