Okay, here's a workaround that worked for me:

The kill_bad_alternatives() function in the preinst script expects that
all the files it reads are non-empty.  On my system
/var/lib/dpkg/alternatives/gnome-text-editor was empty, which made
kill_bad_alternatives() exit when it tried to read the first line ("read
mode").

Solution:  Delete /var/lib/dpkg/alternatives/gnome-text-editor (and any
other 0-byte files in /var/lib/dpkg/alternatives/) and try installing
dpkg again.

-- 
dpkg 1.15.3.1ubuntu1 fails to install/upgrade
https://bugs.launchpad.net/bugs/397498
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to