Delete the following files:
/var/lib/dpkg/alternatives/gnome-text-editor /etc/alternatives/gnome-text-edior /etc/alternative/nmblookup /var/lib/dpkg/alternatives/nmblookup
and then run dpkg --confiugre --pending
Delete the following files:
/var/lib/ dpkg/alternativ es/gnome- text-editor es/gnome- text-edior e/nmblookup dpkg/alternativ es/nmblookup
/etc/alternativ
/etc/alternativ
/var/lib/
and then run dpkg --confiugre --pending