Unable to install emacs24 on Ubuntu 12.04 Precise

Bug #1214053 reported by Andrew Pennebaker
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Emacs-snapshot
Invalid
High
Damien Cassou

Bug Description

I've added the cassou ppa, but when I try to install emacs24 or emacs-snapshot, apt-get can't seem to find the right packages:

$ sudo add-apt-repository ppa:cassou/emacs
...
$ sudo apt-get update
...
$ sudo apt-get install emacs24 emacs24-el emacs24-common-non-dfsg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package emacs24
E: Unable to locate package emacs24-el
E: Unable to locate package emacs24-common-non-dfsg
$ sudo apt-get install emacs-snapshot
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package emacs-snapshot is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'emacs-snapshot' has no installation candidate

Revision history for this message
Don Lindsay (don-lindsay-x) wrote :
Download full text (3.2 KiB)

I'm having problems with emacs-snapshot as well.

apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up emacs-snapshot (2:20130821-1~ppa1~raring1) ...
Byte-compiling add-on packages, please wait... failed.

!! Byte-compilation for emacs-snapshot 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 emacs-snapshot
!! and attach the file /tmp/emacs-snapshot.ugqW4i
dpkg: error processing emacs-snapshot (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of emacs-snapshot-gtk:
 emacs-snapshot-gtk depends on emacs-snapshot; however:
  Package emacs-snapshot is not configured yet.

dpkg: error processing emacs-snapshot-gtk (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 emacs-snapshot
 emacs-snapshot-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)

So I thought maybe there isn't anything installed yet that can byte compile elisp source, but apt/dpkg doesn't know that, so:

apt-get install emacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  emacs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 1,548 B of archives.
After this operation, 25.6 kB of additional disk space will be used.
Get:1 http://mirrors.liquidweb.com/ubuntu/ raring/main emacs all 45.0 [1,548 B]
Fetched 1,548 B in 0s (5,599 B/s)
Selecting previously unselected package emacs.
(Reading database ... 318162 files and directories currently installed.)
Unpacking emacs (from .../archives/emacs_45.0_all.deb) ...
Setting up emacs-snapshot (2:20130821-1~ppa1~raring1) ...
Byte-compiling add-on packages, please wait... failed.

!! Byte-compilation for emacs-snapshot 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 emacs-snapshot
!! and attach the file /tmp/emacs-snapshot.M9kdn2
dpkg: error processing emacs-snapshot (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of emacs-snapshot-gtk:
 emacs-snapshot-gtk depends on emacs-snapshot; however:
  Package emacs-snapshot is not configured yet.

dpkg: error processing emacs-snapshot-gtk (--configure):
 dependency problems - leaving unconfigured
Setting up emacs (45.0) ...No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:
 emacs-snapshot
 emacs-snapshot-gtk
E: Sub-process /usr/bin/dpkg returned an error...

Read more...

Revision history for this message
Don Lindsay (don-lindsay-x) wrote :

A couple other things that might pertain:

1) before this problem occured I was getting a number of compilation errors from cl-macs.el

2) neither error occured before the last emacs24 update.

Revision history for this message
Don Lindsay (don-lindsay-x) wrote :

almost forgot

Revision history for this message
Damien Cassou (cassou) wrote :

@Don, could you please open a new issue? I'm not sure your problem is related

To both of you, could you please re-apply all the steps described at https://launchpad.net/~cassou/+archive/emacs/ ?

Changed in emacs-snapshot:
status: New → Incomplete
importance: Undecided → High
assignee: nobody → Damien Cassou (cassou)
Revision history for this message
Damien Cassou (cassou) wrote :

@Andrew what is your ubuntu version?

Revision history for this message
Andrew Pennebaker (apennebaker) wrote : Re: [Bug 1214053] Re: Unable to install emacs24 on Ubuntu 12.04 Precise

As stated in the original message, 12.04 Precise Pangolin.

On Wed, Sep 4, 2013 at 5:31 AM, Damien Cassou <email address hidden>wrote:

> @Andrew what is your ubuntu version?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1214053
>
> Title:
> Unable to install emacs24 on Ubuntu 12.04 Precise
>
> Status in Emacs-snapshot for ubuntu:
> Incomplete
>
> Bug description:
> I've added the cassou ppa, but when I try to install emacs24 or emacs-
> snapshot, apt-get can't seem to find the right packages:
>
> $ sudo add-apt-repository ppa:cassou/emacs
> ...
> $ sudo apt-get update
> ...
> $ sudo apt-get install emacs24 emacs24-el emacs24-common-non-dfsg
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package emacs24
> E: Unable to locate package emacs24-el
> E: Unable to locate package emacs24-common-non-dfsg
> $ sudo apt-get install emacs-snapshot
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package emacs-snapshot is not available, but is referred to by another
> package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
>
> E: Package 'emacs-snapshot' has no installation candidate
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/emacs-snapshot/+bug/1214053/+subscriptions
>

Revision history for this message
Damien Cassou (cassou) wrote :

I've just tried and it works for me. To both of you, could you please re-apply all the steps described at https://launchpad.net/~cassou/+archive/emacs/ and send the output of each command?

Revision history for this message
Andrew Pennebaker (apennebaker) wrote :

As I said in the original bug description, apt-get says "E: Package 'emacs-snapshot' has no installation candidate".

Could you try the steps on a fresh Ubuntu installation, e.g. with VirtualBox?

Revision history for this message
Damien Cassou (cassou) wrote :

@andrew: that's exactly what I did to answer that it works for me. I'm very surprised that installing emacs24 shows some error messages about emacs-snapshot. That's why I would like to give me the full output of all the commands listed at https://launchpad.net/~cassou/+archive/emacs/

Revision history for this message
Damien Cassou (cassou) wrote :

I'm closing this bug as it hasn't seen new activity. Feel free to reopen with requested information.

Changed in emacs-snapshot:
status: Incomplete → 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.