cannot install emacs in gutsy

Bug #155199 reported by vishnu
6
Affects Status Importance Assigned to Milestone
mit-scheme (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: emacs

root@raja-desktop:~# apt-get install emacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
--snip--
The following extra packages will be installed:
  emacs22-bin-common emacs22-common emacs22-gtk emacsen-common
Suggested packages:
  emacs22-el
--snip--
Selecting previously deselected package emacsen-common.
(Reading database ... 227093 files and directories currently installed.)
Unpacking emacsen-common (from .../emacsen-common_1.4.17_all.deb) ...
Selecting previously deselected package emacs22-common.
Unpacking emacs22-common (from .../emacs22-common_22.1-0ubuntu5_all.deb) ...
Selecting previously deselected package emacs22-bin-common.
Unpacking emacs22-bin-common (from .../emacs22-bin-common_22.1-0ubuntu5_i386.de
b) ...
Selecting previously deselected package emacs22-gtk.
Unpacking emacs22-gtk (from .../emacs22-gtk_22.1-0ubuntu5_i386.deb) ...
Selecting previously deselected package emacs.
Unpacking emacs (from .../emacs_22.1-0ubuntu5_all.deb) ...
Setting up emacsen-common (1.4.17) ...
emacsen-common: Handling install of emacsen flavor emacs

Setting up emacs22-common (22.1-0ubuntu5) ...

Setting up emacs22-bin-common (22.1-0ubuntu5) ...

Setting up emacs22-gtk (22.1-0ubuntu5) ...
Byte-compiling add-on packages, please wait... failed.

!! Byte-compilation for emacs22 failed!
!! This indicates a bug in one of the add-on packages
!! installed on your system, or a bug in Emacs itself.
!! Please file a bug report against emacs22
!! and attach the file /tmp/emacs22.P20406
dpkg: error processing emacs22-gtk (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of emacs:
 emacs depends on emacs22-gtk | emacs22 | emacs22-nox; however:
  Package emacs22-gtk is not configured yet.
  Package emacs22 is not installed.
  Package emacs22-gtk which provides emacs22 is not configured yet.
  Package emacs22-nox is not installed.
dpkg: error processing emacs (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 emacs22-gtk
 emacs
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
vishnu (ramavis2) wrote :
Revision history for this message
Reinhard Tartler (siretart) wrote :

reassinging to correct package.

Revision history for this message
Brett Presnell (bdp) wrote :

I had the same problem. It seems that the emacsen-common package was refusing to install two of its files (/etc/emacs/site-start.el and /etc/emacs/site-start.d/00debian-vars.el) and this caused the byte-compilation of .el files to fail. I was able to fix this by first installing the emacsen-common package, then using dpkg-deb to extract the files from the deb archive (dpkg-deb -X /var/cache/apt/archives/emacsen-common_1.4.17_all.deb emacsen-common_1.4.17_all) and then copying the missing files by hand into /etc/emacs. After that installation of the emacs package installed emacs22 without a hitch.

Prior to discovering this problem, I had removed all my emacs packages in an effort to get a clean install of emacs22 (I had been running emacs-snapshot and I think that emacs21 was also installed). In the process it seemed that there were a lot of emacs-snapshot and emacs21 related things around, and I had deleted some of them by hand, including /etc/emacs and various links in /usr/bin and /etc/alternatives. I don't know if this could cause reinstallation of emacs fail, but I thought that I should mention it just in case. I note that now I have links /usr/bin/emacs22 and /etc/alternatives/emacs22 and a few others, but no /usr/bin/emacs or /etc/alternatives/emacs. Is this intentional?

Revision history for this message
Brett Presnell (bdp) wrote :

In case this wasn't clear, I meant to say that I had been running emacs-snapshot and emacs21 in Feisty, before upgrading to Gutsy.

Revision history for this message
vishnu (ramavis2) wrote :

This was solved by removing the mit-scheme package:

sudo apt-get remove mit-scheme
sudo apt-get install emacs

Now to get some decent fonts working

Revision history for this message
Greg Grossmeier (greg.grossmeier) wrote :

I was able to install emacs22 with mit-scheme installed. I am marking this as closed. If anyone is still experiencing issues with installing emacs and mit-scheme at the same time in Hardy (Ubuntu 8.04) , please reopen this bug.

Thanks!

Changed in mit-scheme:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.