Size Problems

16Jan10

Came up against another apt-cacher-ng problem today, where an apt-get upgrade reports a size mismatch. Luckily though, found a post here on how to fix it, and this script a little bit down the page

echo Y | apt-get upgrade 2>&1 | grep "^Failed to" | cut -d" " -f4 | awk -F/ '{system("locate " $NF)}' | xargs rm 

What does it do? Well, I'm not exactly sure, but it fixes it :) So this is just here for memory

About these ads


Follow

Get every new post delivered to your Inbox.

Join 67 other followers

%d bloggers like this: