Comment 3 for bug 1364642

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Martin,

This kind of error happens quite often. Upgrading works if you manually remove the erroneous symlink. Given that, would removing all the symlinks in a prerm script be a totally crazy idea?

for lang in $( ls /usr/share/help ); do
    test "$lang" = 'C' && continue
    test -d "/usr/share/help/$lang" || continue
    help_dir="/usr/share/help/$lang"/ubuntu-help
    for link in $( ls "$help_dir" ); do
        test -h "$help_dir/$link" || continue
        rm "$help_dir/$link"
    done
    for link in $( ls "$help_dir/figures" ); do
        test -h "$help_dir/figures/$link" || continue
        rm "$help_dir/figures/$link"
    done
done