I fixed this problem by doing:
# dpkg -l | grep emacs | cut -d' ' -f3 | xargs apt-get -y purge # apt-get install xemacs21
I fixed this problem by doing:
# dpkg -l | grep emacs | cut -d' ' -f3 | xargs apt-get -y purge
# apt-get install xemacs21