2012.09.09 - package fixing

weekend barely started and the first kaboom came along. my softRAID array reported strange errors on one of the drives. welcome to the world of errors. ok – let's see what /dev/sda is complaining about… aha – read error. whatever – try rebuilding it:

mdadm --manage /dev/md1 -f /dev/sda
mdadm --manage /dev/md1 -r /dev/sda
mdadm --manage /dev/md1 -a /dev/sda
watch cat /proc/mdstat

3 hours later everything is up and running. until today. first clue – segmentation fault from one of the init's scripts. after starting X11 iceweasel is dead as well (same thing “faulted”). let's see what's up:

debsums | tee /tmp/sums.log | grep -v ' OK$'

aha – readlink is faulty. wow – thanks gods bash is alive… full scan showed few more files are faulty, but they are non crucial. fixing…

mkdir /tmp/pck
cd /tmp/pck
cat /tmp/sums.log | grep -v ' OK$' | awk '{ print $1 }' | xargs -n 1 apt-file search | sed 's#:.*##' | sort -u | xargs apt-get download
dpkg -i *

done – all faulty packages are fixed (i.e. reinstalled). btw: try doing this in GUI… ;)

enjoy dying weekend time!

blog/2012/09/09/1.txt · Last modified: 2021/06/15 20:09 by
Back to top
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0