emacs depencies broken after upgrade to ubunutu 12.10

Bug #1069209 reported by Josy on 2012-10-20
134
This bug affects 24 people
Affects Status Importance Assigned to Milestone
xemacs21 (Ubuntu)
Undecided
Unassigned

Bug Description

Due to broken dependecies nigther the:
apt-get update / apt-get upgrade
synaptic
the ubunutu software center
 are usable.

sudo dpkg --configure -a
as recommended as bugfix by (I think Synaptic) is broken either.

See below. Similar errors were visible during the upgrade to ubunutu 12.10.
Note:
The erlang mode of Emacs is not working.

-> Fatal error.

sudo dpkg --configure -a
Setting up emacsen-common (2.0.3) ...
Install emacsen-common for xemacs21
emacsen-common: Handling install of emacsen flavor xemacs21

WARNING:
Couldn't find obvious defaults for:
data-directory
mule-lisp-directory
lisp-directory
Perhaps some directories don't exist, or the XEmacs executable,
/usr/bin/xemacs21
is in a strange place?Loading /usr/share/emacs/site-lisp/debian-startup...
Loading 00debian...
Error while loading 00debian: Symbol's function definition is void: loop
Loading 00debian-vars...
Loading 50autoconf...
Error while loading 50autoconf: No /usr/local/ prefixed paths in load-path
Loading 50dictionaries-common...
Error while loading 50dictionaries-common: No /usr/local/ prefixed paths in load-path
Loading 50erlang-mode...
Error while loading 50erlang-mode: Cannot open load file: erlang-start
Loading 50psvn...
Symbol's function definition is void: batch-byte-compile
xemacs exiting
.
ERROR: install script from emacsen-common package failed
dpkg: error processing emacsen-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up dictionaries-common (1.12.10) ...
Install dictionaries-common for xemacs21
install/dictionaries-common: Byte-compiling for emacsen flavour xemacs21

WARNING:
Couldn't find obvious defaults for:
data-directory
mule-lisp-directory
lisp-directory
Perhaps some directories don't exist, or the XEmacs executable,
/usr/bin/xemacs21
is in a strange place?Symbol's function definition is void: batch-byte-compile
xemacs exiting
.
ERROR: install script from dictionaries-common package failed
dpkg: error processing dictionaries-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of xemacs21-support:
 xemacs21-support depends on emacsen-common; however:
  Package emacsen-common is not configured yet.

dpkg: error processing xemacs21-support (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ienglish-common:
 ienglish-common depends on dictionaries-common (>= 1.10.6~); however:
  Package dictionaries-common is not configured yet.

dpkg: error processing ienglish-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of iamerican:
 iamerican depends on dictionaries-common; however:
  Package dictionaries-common is not configured yet.
 iamerican depends on ienglish-common (= 3.3.02-5build1); however:
  Package ienglish-common is not configured yet.

dpkg: error processing iamerican (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs24-common:
 emacs24-common depends on emacsen-common (>= 1.4.10); however:
  Package emacsen-common is not configured yet.

dpkg: error processing emacs24-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ispell:
 ispell depends on dictionaries-common; however:
  Package dictionaries-common is not configured yet.

dpkg: error processing ispell (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs23-common:
 emacs23-common depends on emacsen-common (>= 1.4.10); however:
  Package emacsen-common is not configured yet.

dpkg: error processing emacs23-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of aspell:
 aspell depends on dictionaries-common (>> 0.40); however:
  Package dictionaries-common is not configured yet.

dpkg: error processing aspell (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xemacs21-mule:
 xemacs21-mule depends on xemacs21-support (= 21.4.22-3.2ubuntu2); however:
  Package xemacs21-support is not configured yet.
 xemacs21-mule depends on emacsen-common; however:
  Package emacsen-common is not configured yet.

dpkg: error processing xemacs21-mule (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xemacs21:
 xemacs21 depends on xemacs21-mule (>= 21.4.22-3.2ubuntu2) | xemacs21-mule-canna-wnn (>= 21.4.22-3.2ubuntu2) | xemacs21-nomule (>= 21.4.22-3.2ubuntu2); however:
  Package xemacs21-mule is not configured yet.
  Package xemacs21-mule-canna-wnn is not installed.
  Package xemacs21-nomule is not installed.

dpkg: error processing xemacs21 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs23-bin-common:
 emacs23-bin-common depends on emacs23-common (= 23.4+1-4ubuntu1); however:
  Package emacs23-common is not configured yet.

dpkg: error processing emacs23-bin-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of erlang-mode:
 erlang-mode depends on emacsen-common (>= 1.4.14); however:
  Package emacsen-common is not configured yet.

dpkg: error processing erlang-mode (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of aspell-en:
 aspell-en depends on aspell (>= 0.60.3-2); however:
  Package aspell is not configured yet.
 aspell-en depends on dictionaries-common (>= 0.49.2); however:
  Package dictionaries-common is not configured yet.

dpkg: error processing aspell-en (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs24-bin-common:
 emacs24-bin-common depends on emacs24-common (= 24.1+1-2ubuntu3); however:
  Package emacs24-common is not configured yet.

dpkg: error processing emacs24-bin-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xemacs21-bin:
 xemacs21-bin depends on xemacs21-support (= 21.4.22-3.2ubuntu2); however:
  Package xemacs21-support is not configured yet.

dpkg: error processing xemacs21-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs24:
 emacs24 depends on emacs24-bin-common (= 24.1+1-2ubuntu3); however:
  Package emacs24-bin-common is not configured yet.

dpkg: error processing emacs24 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs23:
 emacs23 depends on emacs23-bin-common (= 23.4+1-4ubuntu1); however:
  Package emacs23-bin-common is not configured yet.

dpkg: error processing emacs23 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 emacsen-common
 dictionaries-common
 xemacs21-support
 ienglish-common
 iamerican
 emacs24-common
 ispell
 emacs23-common
 aspell
 xemacs21-mule
 xemacs21
 emacs23-bin-common
 erlang-mode
 aspell-en
 emacs24-bin-common
 xemacs21-bin
 emacs24
 emacs23
michael@michael-desktop:~$

$ sudo dpkg --configure -a
Setting up emacsen-common (2.0.3) ...
Install emacsen-common for xemacs21
emacsen-common: Handling install of emacsen flavor xemacs21

WARNING:
Couldn't find obvious defaults for:
data-directory
mule-lisp-directory
lisp-directory
Perhaps some directories don't exist, or the XEmacs executable,
/usr/bin/xemacs21
is in a strange place?Loading /usr/share/emacs/site-lisp/debian-startup...
Loading 00debian...
Error while loading 00debian: Symbol's function definition is void: loop
Loading 00debian-vars...
Loading 50autoconf...
Error while loading 50autoconf: No /usr/local/ prefixed paths in load-path
Loading 50dictionaries-common...
Error while loading 50dictionaries-common: No /usr/local/ prefixed paths in load-path
Loading 50erlang-mode...
Error while loading 50erlang-mode: Cannot open load file: erlang-start
Loading 50psvn...
Symbol's function definition is void: batch-byte-compile
xemacs exiting
.
ERROR: install script from emacsen-common package failed
dpkg: error processing emacsen-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up dictionaries-common (1.12.10) ...
Install dictionaries-common for xemacs21
install/dictionaries-common: Byte-compiling for emacsen flavour xemacs21

WARNING:
Couldn't find obvious defaults for:
data-directory
mule-lisp-directory
lisp-directory
Perhaps some directories don't exist, or the XEmacs executable,
/usr/bin/xemacs21
is in a strange place?Symbol's function definition is void: batch-byte-compile
xemacs exiting
.
ERROR: install script from dictionaries-common package failed
dpkg: error processing dictionaries-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of xemacs21-support:
 xemacs21-support depends on emacsen-common; however:
  Package emacsen-common is not configured yet.

dpkg: error processing xemacs21-support (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ienglish-common:
 ienglish-common depends on dictionaries-common (>= 1.10.6~); however:
  Package dictionaries-common is not configured yet.

dpkg: error processing ienglish-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of iamerican:
 iamerican depends on dictionaries-common; however:
  Package dictionaries-common is not configured yet.
 iamerican depends on ienglish-common (= 3.3.02-5build1); however:
  Package ienglish-common is not configured yet.

dpkg: error processing iamerican (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs24-common:
 emacs24-common depends on emacsen-common (>= 1.4.10); however:
  Package emacsen-common is not configured yet.

dpkg: error processing emacs24-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ispell:
 ispell depends on dictionaries-common; however:
  Package dictionaries-common is not configured yet.

dpkg: error processing ispell (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs23-common:
 emacs23-common depends on emacsen-common (>= 1.4.10); however:
  Package emacsen-common is not configured yet.

dpkg: error processing emacs23-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of aspell:
 aspell depends on dictionaries-common (>> 0.40); however:
  Package dictionaries-common is not configured yet.

dpkg: error processing aspell (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xemacs21-mule:
 xemacs21-mule depends on xemacs21-support (= 21.4.22-3.2ubuntu2); however:
  Package xemacs21-support is not configured yet.
 xemacs21-mule depends on emacsen-common; however:
  Package emacsen-common is not configured yet.

dpkg: error processing xemacs21-mule (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xemacs21:
 xemacs21 depends on xemacs21-mule (>= 21.4.22-3.2ubuntu2) | xemacs21-mule-canna-wnn (>= 21.4.22-3.2ubuntu2) | xemacs21-nomule (>= 21.4.22-3.2ubuntu2); however:
  Package xemacs21-mule is not configured yet.
  Package xemacs21-mule-canna-wnn is not installed.
  Package xemacs21-nomule is not installed.

dpkg: error processing xemacs21 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs23-bin-common:
 emacs23-bin-common depends on emacs23-common (= 23.4+1-4ubuntu1); however:
  Package emacs23-common is not configured yet.

dpkg: error processing emacs23-bin-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of erlang-mode:
 erlang-mode depends on emacsen-common (>= 1.4.14); however:
  Package emacsen-common is not configured yet.

dpkg: error processing erlang-mode (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of aspell-en:
 aspell-en depends on aspell (>= 0.60.3-2); however:
  Package aspell is not configured yet.
 aspell-en depends on dictionaries-common (>= 0.49.2); however:
  Package dictionaries-common is not configured yet.

dpkg: error processing aspell-en (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs24-bin-common:
 emacs24-bin-common depends on emacs24-common (= 24.1+1-2ubuntu3); however:
  Package emacs24-common is not configured yet.

dpkg: error processing emacs24-bin-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xemacs21-bin:
 xemacs21-bin depends on xemacs21-support (= 21.4.22-3.2ubuntu2); however:
  Package xemacs21-support is not configured yet.

dpkg: error processing xemacs21-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs24:
 emacs24 depends on emacs24-bin-common (= 24.1+1-2ubuntu3); however:
  Package emacs24-bin-common is not configured yet.

dpkg: error processing emacs24 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs23:
 emacs23 depends on emacs23-bin-common (= 23.4+1-4ubuntu1); however:
  Package emacs23-bin-common is not configured yet.

dpkg: error processing emacs23 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 emacsen-common
 dictionaries-common
 xemacs21-support
 ienglish-common
 iamerican
 emacs24-common
 ispell
 emacs23-common
 aspell
 xemacs21-mule
 xemacs21
 emacs23-bin-common
 erlang-mode
 aspell-en
 emacs24-bin-common
 xemacs21-bin
 emacs24
 emacs23

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in emacs23 (Ubuntu):
status: New → Confirmed
era (era) wrote :

Looks like at least part of the problem is due to xemacs21, not emacs23. If you remove xemacs21 temporarily (or permanently, for all I care), are you able to resolve the problem? See also LP bug# #789706.

I am setting the Status of this bug report to Incomplete to mark it as pending on your input. Once you have supplied the requested additional information, it can be reverted back to Confirmed. Thanks for your patience and cooperation!

Changed in emacs23 (Ubuntu):
status: Confirmed → Incomplete
olikaf (olivier-fresse) wrote :

I reproduce this bug.
I have xemacs installed :

iU xemacs21 21.4.22-3.2ubuntu2 all highly customizable text editor
ii xemacs21-basesupport 2009.02.17.dfsg.1-1 all Editor and kitchen sink -- compiled elisp support files
iU xemacs21-bin 21.4.22-3.2ubuntu2 amd64 highly customizable text editor -- support binaries
iU xemacs21-mule 21.4.22-3.2ubuntu2 amd64 highly customizable text editor -- Mule binary
ii xemacs21-mulesupport 2009.02.17.dfsg.1-1 all Editor and kitchen sink -- Mule elisp support files
iU xemacs21-support 21.4.22-3.2ubuntu2 all highly customizable text editor -- architecture independent support files

This issue is indeed related to xemacs :

WARNING:
Couldn't find obvious defaults for:
data-directory
mule-lisp-directory
lisp-directory
Perhaps some directories don't exist, or the XEmacs executable,
/usr/bin/xemacs21
is in a strange place?

So I tried to remove xemacs, but it's not so easy...

In the end, I had to remove xemacs AND emacs, and reinstall emacs (can't live without it :-) )

Here are the commands I had to use :

#----- xemacs removal
sudo mv /var/lib/dpkg/info/xem*prerm /tmp
sudo dpkg --remove --force-remove-reinstreq xemacs21 xemacs21-basesupport xemacs21-bin xemacs21-mule xemacs21-mulesupport xemacs21-support
sudo dpkg --purge --force-remove-reinstreq xemacs21 xemacs21-basesupport xemacs21-bin xemacs21-mule xemacs21-mulesupport xemacs21-support

#----- emacs removal
sudo mv /var/lib/dpkg/info/em*prerm /tmp
sudo dpkg --remove --force-remove-reinstreq emacsen-common dictionaries-common ienglish-common iamerican ispell emacs23-common aspell emacs23-bin-common gnuserv hyphen-en-us wfrench aspell-en emacs23

sudo dpkg --purge --force-remove-reinstreq emacsen-common ienglish-common iamerican ispell emacs23-common aspell emacs23-bin-common gnuserv hyphen-en-us aspell-en emacs23

Then sudo dpkg --configure -a works like a charm.

Please note that I use a french distro, so you may not have some of my packages...

Hope it helps.

era (era) wrote :

Thanks for the update.

The wildcard move of the prerm scripts looks pretty dangerous, are you sure it's really necessary? At least using, as it were, a less "wild" wildcard would be recommended. On my system, for example, em* would match empathy as well as emacs. So I'd say if you really can't make do without disabling the prerm scripts, use emacs* instead of em* and xemacs* instead of xem*. But unless it's absolutely necessary, just leave them alone. There's a reason they exist.

era (era) wrote :

Resisting the temptation to mark this as a duplicate of bug #789706. I think it probably is a duplicate, but since several people are signing up for this particular bug, let's keep it open for a little whiĺe longer.

Changed in emacs23 (Ubuntu):
status: Incomplete → Confirmed
olikaf (olivier-fresse) wrote :

you are absolutely right for the wildcard, I checked with an ls before :-)
It's wiser to use a perfect match.

The files I had to remove (in fact moved to my /tmp folder...)

/tmp/emacs23-bin-common.prerm
/tmp/emacs23-common.prerm
/tmp/emacs23.prerm
/tmp/emacsen-common.prerm
/tmp/xemacs21-bin.prerm
/tmp/xemacs21-mule.prerm
/tmp/xemacs21-support.prerm

olikaf (olivier-fresse) wrote :

Regarding the duplicate of bug #789706, I don't have cscope installed , and I had the issue.

era (era) wrote :

cscope is a red herring; the bug, as you can see from the bug report, is in xemacs21. The original reporter was installing cscope when the bug was discovered.

olikaf (olivier-fresse) wrote :

Correct, my mistake, this is an Xemacs issue !

Josy (josy1) wrote :
Download full text (8.0 KiB)

Here is what I did:

michael@michael-desktop:~$ sudo ls /var/lib/dpkg/info/xem*
/var/lib/dpkg/info/xemacs21-mule.list
/var/lib/dpkg/info/xemacs21-mule.postrm
/var/lib/dpkg/info/xemacs21-support.list
/var/lib/dpkg/info/xemacs21-support.postrm

michael@michael-desktop:~$ sudo dpkg -l xemacs*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un xemacs-support <none> (no description available)
un xemacs21 <none> (no description available)
un xemacs21-bases <none> (no description available)
un xemacs21-bin <none> (no description available)
rc xemacs21-mule 21.4.22-3.2u amd64 highly customizable text editor -
un xemacs21-mules <none> (no description available)
rc xemacs21-suppo 21.4.22-3.2u all highly customizable text editor -
un xemacs21-suppo <none> (no description available)
michael@michael-desktop:~$
michael@michael-desktop:~$
michael@michael-desktop:~$ sudo dpkg --remove --force-remove-reinstreq emacs
dpkg: warning: ignoring request to remove emacs which isn't installed
michael@michael-desktop:~$ sudo dpkg --remove --force-remove-reinstreq xemacs-support xemacs21 xemacs21-bases xemacs21-bin xemacs21-mule xemacs21-mules xemacs21-suppo xemacs21-suppo
Package xemacs21-suppo listed more than once, only processing once.
dpkg: warning: ignoring request to remove xemacs-support which isn't installed
dpkg: warning: ignoring request to remove xemacs21 which isn't installed
dpkg: warning: ignoring request to remove xemacs21-bases which isn't installed
dpkg: warning: ignoring request to remove xemacs21-bin which isn't installed
dpkg: warning: ignoring request to remove xemacs21-mule, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove xemacs21-mules which isn't installed
dpkg: warning: ignoring request to remove xemacs21-suppo which isn't installed
michael@michael-desktop:~$
michael@michael-desktop:~$
michael@michael-desktop:~$ sudo dpkg --purge --force-remove-reinstreq xemacs-support xemacs21 xemacs21-bases xemacs21-bin xemacs21-mule xemacs21-mules xemacs21-suppo xemacs21-suppo
Package xemacs21-suppo listed more than once, only processing once.
dpkg: warning: ignoring request to remove xemacs-support which isn't installed
dpkg: warning: ignoring request to remove xemacs21 which isn't installed
dpkg: warning: ignoring request to remove xemacs21-bases which isn't installed
dpkg: warning: ignoring request to remove xemacs21-bin which isn't installed
(Reading database ... 339120 files and directories currently installed.)
Removing xemacs21-mule ...
Purging configuration files for xemacs21-mule ...
dpkg: warning: ignoring request to remove xemacs21-mules which isn't installed
dpkg: warning: ignoring request to remove xemacs21-suppo which isn't installed
Processing trigger...

Read more...

era (era) wrote :

@Josy: Alas, the output from dpkg -l is truncated to make room for the version number and short description. In the general case, you can use something like COLUMNS=200 dpkg -l whatever; but in this particular case, the packages you want to remove are the ones you have installed in /var/lib/dpkb/info i.e. xemacs21-mule and xemac21-support. (The "un" in the first column of dpkg output means not installed.)

Josy (josy1) wrote :

Hello era.

Thanks.

now it seems to be working.

Josy

Here is what I have done:
michael@michael-desktop:~$ COLUMNS=150 dpkg -l xem*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================================
un xemacs-support <none> (no description available)
un xemacs21 <none> (no description available)
rc xemacs21-support 21.4.22-3.2ubuntu2 all highly customizable text editor -- architecture independent support
un xemacs21-supportel <none> (no description available)

michael@michael-desktop:~$ sudo ls -alg /var/lib/dpkg/info/em*prerm
-rwxr-xr-x 1 root 345 Sep 22 20:09 /var/lib/dpkg/info/emacs23-bin-common.prerm
-rwxr-xr-x 1 root 221 Sep 22 20:16 /var/lib/dpkg/info/emacs23-common.prerm
-rwxr-xr-x 1 root 345 Sep 22 20:09 /var/lib/dpkg/info/emacs23.prerm
-rwxr-xr-x 1 root 341 Sep 22 20:02 /var/lib/dpkg/info/emacs24-bin-common.prerm
-rwxr-xr-x 1 root 221 Sep 22 20:02 /var/lib/dpkg/info/emacs24-common.prerm
-rwxr-xr-x 1 root 345 Sep 22 20:02 /var/lib/dpkg/info/emacs24.prerm
-rwxr-xr-x 1 root 294 Jun 29 17:02 /var/lib/dpkg/info/emacsen-common.prerm

michael@michael-desktop:~$ sudo dpkg --remove --force-remove-reinstreq emacs23-bin-common emacs23-common emacs23 emacs24-bin-common emacs24-common emacs24 emacsen-common

michael@michael-desktop:~$ sudo dpkg --purge --force-remove-reinstreq emacs23-bin-common emacs23-common emacs23 emacs24-bin-common emacs24-common emacs24 emacsen-common

michael@michael-desktop:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of erlang-mode:
 erlang-mode depends on emacsen-common (>= 1.4.14); however:
  Package emacsen-common is not installed.

dpkg: error processing erlang-mode (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 erlang-mode

michael@michael-desktop:~$ sudo ls -alg /var/lib/dpkg/info/erlang*prerm
-rwxr-xr-x 1 root 2930 Sep 20 15:32 /var/lib/dpkg/info/erlang-base.prerm
-rwxr-xr-x 1 root 217 Sep 20 15:45 /var/lib/dpkg/info/erlang-mode.prerm

michael@michael-desktop:~$ sudo dpkg --remove --force-remove-reinstreq erlang-mode
(Reading database ... 334234 files and directories currently installed.)
Removing erlang-mode ...
michael@michael-desktop:~$ sudo dpkg --purge --force-remove-reinstreq erlang-mode
(Reading database ... 334216 files and directories currently installed.)
Removing erlang-mode ...
Purging configuration files for erlang-mode ...
michael@michael-desktop:~$

michael@michael-desktop:~$ sudo dpkg --configure -a
michael@michael-desktop:~$

Josy (josy1) wrote :

I could now sucessfully install emacs23 and emacs24 including erlang mode.

era (era) wrote :

Reassigning to xemacs21.

affects: emacs23 (Ubuntu) → xemacs21 (Ubuntu)
Download full text (15.9 KiB)

thanks, the work around in the bug report you reference below worked for me

On 24 October 2012 13:31, era <email address hidden> wrote:

> Reassigning to xemacs21.
>
> ** Package changed: emacs23 (Ubuntu) => xemacs21 (Ubuntu)
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1070763).
> https://bugs.launchpad.net/bugs/1069209
>
> Title:
> emacs depencies broken after upgrade to ubunutu 12.10
>
> Status in “xemacs21” package in Ubuntu:
> Confirmed
>
> Bug description:
> Due to broken dependecies nigther the:
> apt-get update / apt-get upgrade
> synaptic
> the ubunutu software center
> are usable.
>
> sudo dpkg --configure -a
> as recommended as bugfix by (I think Synaptic) is broken either.
>
> See below. Similar errors were visible during the upgrade to ubunutu
> 12.10.
> Note:
> The erlang mode of Emacs is not working.
>
> -> Fatal error.
>
>
> sudo dpkg --configure -a
> Setting up emacsen-common (2.0.3) ...
> Install emacsen-common for xemacs21
> emacsen-common: Handling install of emacsen flavor xemacs21
>
> WARNING:
> Couldn't find obvious defaults for:
> data-directory
> mule-lisp-directory
> lisp-directory
> Perhaps some directories don't exist, or the XEmacs executable,
> /usr/bin/xemacs21
> is in a strange place?Loading
> /usr/share/emacs/site-lisp/debian-startup...
> Loading 00debian...
> Error while loading 00debian: Symbol's function definition is void: loop
> Loading 00debian-vars...
> Loading 50autoconf...
> Error while loading 50autoconf: No /usr/local/ prefixed paths in
> load-path
> Loading 50dictionaries-common...
> Error while loading 50dictionaries-common: No /usr/local/ prefixed paths
> in load-path
> Loading 50erlang-mode...
> Error while loading 50erlang-mode: Cannot open load file: erlang-start
> Loading 50psvn...
> Symbol's function definition is void: batch-byte-compile
> xemacs exiting
> .
> ERROR: install script from emacsen-common package failed
> dpkg: error processing emacsen-common (--configure):
> subprocess installed post-installation script returned error exit
> status 1
> Setting up dictionaries-common (1.12.10) ...
> Install dictionaries-common for xemacs21
> install/dictionaries-common: Byte-compiling for emacsen flavour xemacs21
>
> WARNING:
> Couldn't find obvious defaults for:
> data-directory
> mule-lisp-directory
> lisp-directory
> Perhaps some directories don't exist, or the XEmacs executable,
> /usr/bin/xemacs21
> is in a strange place?Symbol's function definition is void:
> batch-byte-compile
> xemacs exiting
> .
> ERROR: install script from dictionaries-common package failed
> dpkg: error processing dictionaries-common (--configure):
> subprocess installed post-installation script returned error exit
> status 1
> dpkg: dependency problems prevent configuration of xemacs21-support:
> xemacs21-support depends on emacsen-common; however:
> Package emacsen-common is not configured yet.
>
> dpkg: error processing xemacs21-support (--configure):
> dependency problems - leaving unconfigured
> dpkg: dependency proble...

DiagonalArg (diagonalarg) wrote :

I too am receiving errors on updating from 12.04 to 12.10, using the update manager. Popup messages appear complaining about:

emacsen-common
dictionaries-common
gforth

All reporting: "subprocess installed post-installaction script returned error exit status 1"

At the end I get:

"Error during commit

"A problem occurred during the clean-up. Please see the below message for more information

"installArchives() failed"

In my apt-term.log there are also complaints about aspell, ispell, et al. I am attaching my (gzipped) apt-term.log, here.

DiagonalArg (diagonalarg) wrote :

On reboot, I get a popup telling me:
"Sorry, a problem occurred while installing software. Package: dictionaries-common."

I agree to sending an error report, but then am told:

"An error occurred while attempting to process this problem report: unpack requires a bytes object of length 4"

Then similar happens with gforth.

DiagonalArg (diagonalarg) wrote :

On attempting the approach of olikaf (olivier-fresse), I find that due to dependencies, I am unable to remove:

dictionaries-common

(mythes-en-au, openoffice.org-hyphenation, hunspell-en-ca, wbritish, mysepll-en-za all depend on dictionaries-common)

emacs23

(vm, flim, apel all depends on emacs23)

I'm now uncertain if I should try to remove these other 8 packages. What might depend on them??

era (era) wrote :

DiagonalArg: As per comments above, you should attempt to remove xemacs21. The log file you attached seems to corroborate.

"subprocess installed post-installaction script returned error exit status 1" is not informative by itself, although often, the lines just before this error message can be helpful. Attaching the log file was most helpful, though.

DiagonalArg (diagonalarg) wrote :

@era. Thanks. In the end, I uninstalled everything (a long list) except for dictionaries-common, which had too many things depending on it. I then reinstalled the already present (but "unconfigured") dictionaries-common. Finally, I tried replacing emacs and xemacs21. They installed, though I got some odd warnings. (See attachment.)

Finally, I've rebooted. On reboot, I get:

"System program problem detected
"Do you want to report the problem now?

"Sorry, Ubuntu 12.10 has experienced an internal error.
"If you notice further problems, try restarting the computer"

dmesg's last lines shows:

"evolution-calen[2182]: segfault at 1 ip 00000...01 sp 00007fffb8f03wc8 error 14 in evolution-calendar factory [400000+1000]"

I'll add that after the update, I have developed another problem, which is something like this:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/699802

If I press Ctrl-Alt-F1 and then Ctrl-Alt-F7, I can get my password prompt to decrypt my disk.

era (era) wrote :

DiagonalArg: Your problem seems complex enough to warrant a separate bug report. But please, let's keep this bug report focused strictly on the problem of the original reporter. For what it's worth, the warnings from update-alternatives in the log snippet you posted seem completely benign.

DiagonalArg (diagonalarg) wrote :

@era. Yes, I understand - and thanks. It's just that all of this happened together, so they appear related. Since this machine was made with BluePrint, I'm concerned that the same difficulties will appear on updating the other machines. For now, I'll wait and watch.

Dwk (david-waszek) wrote :

Same problem here, except the problem occured on my upgrading to ubuntu 12.04 (from oneiric).
As I have two computers with fairly similar systems, and upgraded only one to Precise, I've been able to do some comparing, and here's what I found :

- on the computer with Oneiric, the xemacs lisp-directory (resp. data-directory, mule-lisp-directory) are /usr/lib/xemacs-21.4.22/lisp/ (resp. ..../etc/, ..../lisp/mule)

- on the computer I upgraded to Precise, the corresponding folders (with the exact same contents) are located in /usr/share (for instance /usr/share/xemacs-21.4.22/lisp). It seems this is the reason xemacs -- and the configuration script -- can't find them. The following naive fix worked : I created two symlinks in /usr/lib/xemacs-21.4.22/ pointing to the correct locations :

cd /usr/lib/xemacs-21.4.22/
sudo ln -s /usr/share/xemacs-21.4.22/lisp lisp
sudo ln -s /usr/share/xemacs-21.4.22/etc etc

Now both
sudo dpkg --configure -a
and xemacs itself work properly. I hope this helps to trace the source of the bug.

Malac (malacusp) wrote :

As this seemed to be a corruption in the database on my system.
I fixed this by running /usr/share/debconf/fix_db.pl as per the instructions in the readme file.
Then running dpkg-reconfigure dictionaries-common.
All sorted. :)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers