How to install emacs 24.3 on Ubuntu?

Solution 1:

Consider using Damien Cassou's PPA:

To add this PPA:

sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update

For emacs-snapshot:

sudo apt-get install emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot

Or, for emacs24 (i.e. 24.3, stable):

sudo apt-get install emacs24 emacs24-el emacs24-common-non-dfsg

Update

As mentioned in Damien Cassou's PPA, the repository will not be maintained further (currently features Emacs 24.3) and it is recommended to use the Ubuntu Elisp PPA.

Hence, use this to add the PPA:

sudo add-apt-repository ppa:ubuntu-elisp/ppa
sudo apt-get update
sudo apt-get install emacs-snapshot emacs-snapshot-el

Ref: Emacs guide

Solution 2:

You'll probably be better off using the version of emacs already built, tested, and packaged by Ubuntu rather than building it on your own, unless you need specific features that are only available in 24.3.

In a terminal:

sudo apt-get install emacs