How to upgrade to the latest Emacs?

Solution 1:

You can install the nightly packages from the ubuntu-elisp ppa.

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

Solution 2:

Emacs 24.4 is still relatively new. Ubuntu is considered a stable distro, and for that reason software sometimes lags behind. If Emacs 24.4 isn't packaged, you'll need to build it yourself.

You can find comprehensive instructions on how to install GNU Emacs 24.4 on Ubuntu in this guide: http://ubuntuhandbook.org/index.php/2014/10/emacs-24-4-released-install-in-ubuntu-14-04/