Version reversion

Version reversion

Post by Haines Bro » Sat, 03 May 2008 09:34:41

Some time ago I installed emacs under debian etch, and while
it worked, I've run into a series of problem that are beyond my capacity
to resolve. I've concluded I don't really need that version of emacs and
would like to revert to the emacs21 that I also have installed.

Problem is that in setting up version 23, I gummed up version 21 enough
so that it won't start. The simplest thing would be for me to dpkg
--remove version 23 and 21, and then simply reinstall version 21.

However, my package archive does not contain emacs23, only emacs21. If I
run apt-show-versions emacs23, I'm told it's not installed. I'm so
dependent on emacs that I'm a bit paranoid. Can I simply remove emacs21
and 23, which should not disturb configuration files and then reinstall
version 21? I assume removal gets rid of the symlinks that I modified to
get emacs 23 working.

Or, if I just remove version 21 and reinstall it, leaving emacs 23 in my
system, will it straighten out the symlinks necessary for emacs 21 to
work properly?


Haines Brown, KB1GRM

Version reversion

Post by Jason Rumn » Sat, 03 May 2008 23:05:54

On May 2, 1:34 am, Haines Brown < XXXX@XXXXX.COM >

On Debian, "dpkg --reconfigure emacs21" or "update-alternatives --
config emacs" might be enough to restore your symlinks without
uninstalling anything.

If you installed Emacs 23 yourself (not from a deb package), then it
is likely in /usr/local, and it may just be a case of /usr/local/bin/
emacs (hard link to emacs-23.0.60) shadowing /usr/bin/emacs (symlink
to emacs21 maybe via /etc/alternatives/emacs), in which case you can
remove /usr/local/bin/emacs.


Version reversion

Post by Haines Bro » Tue, 06 May 2008 00:20:56

Jason Rumney < XXXX@XXXXX.COM > writes:

I tried dpkg-reconfigure, and there was a lot of activity about
removing, loading, installing, etc., but the end result is that the
command to start emacs21 just hangs. I tried dpkg --remove for emacs21,
but wasn't allowed because of dependencies. I got a bunch of statements
like this:

dpkg: dependency problems prevent removal of emacs21:
flim depends on emacs21 | emacsen; however:
Package emacs21 is to be removed.
Package emacsen is not installed.
Package emacs21 which provides emacsen is to be removed.
dpkg: error processing emacs21 (--remove):
dependency problems - not removing
Errors were encountered while processing:

I installed emacs23 in /opt, so I do have a
/opt/editors/emacs/emacs23/bin/emacs, but a symlink won't help if the
emacs21 executable won't run.

It generates an enormous strace file, which starts:

execve("/usr/bin/emacs21", ["emacs21"], [/* 24 vars */]) = 0
uname({sys="Linux", node="teufel", ...}) = 0
brk(0) = 0x847d000
access("/etc/", F_OK) = -1 ENOENT (No such file or directory)

There's a lot reports on not finding this lib. And even more worrisome
a section of reports like this:

stat64("/usr/share/emacs/21.4/site-lisp/a2ps", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/emacs/21.4/site-lisp/a2ps/.nosearch", 0xbfff0f04) = -1 ENOENT (No such file or directory)

This because there's a /usr/share/emacs21/, but no


Haines Brown, KB1GRM