cwillu wrote:
> Putting /var/lib/dpkg on an ext3 mount (I used a bind mount from my
> /boot) works around it until the problem can be fixed in dpkg.

After that, don't forget to reinstall packages to get their missing
files back.  I couldn't think of an easy way to work out which
packages were busted so I reinstalled everything.  From memory:

    # Move /var/lib/dpkg into a loopback ext2 filesystem.
    cp -a /var/lib/dpkg /var/lib/dpkg.~1~
    dd bs=1 count=0 seek=128M of=/var/lib/dpkg.ext
    mke2fs /var/lib/dpkg.ext
    echo >>/etc/fstab "# Workaround for http://bugs.debian.org/575891";
    echo >>/etc/fstab "/var/lib/dpkg.ext /var/lib/dpkg ext2 loop,sync 0 2"
    mount -a
    cp -a /var/lib/dpkg.~1~/* /var/lib/dpkg/

    # Reinstall (almost) everything at once.
    aptitude reinstall '~i !~E !~prequired !x11-common'

    # These have dependency loops, so must be reinstalled singly.
    for i in `aptitude search -F %p '~i(~E|~prequired|x11-common)'`
    do aptitude reinstall $i
    done



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to