{"id":6702,"date":"2017-04-15T15:29:27","date_gmt":"2017-04-15T15:29:27","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=6702"},"modified":"2017-04-15T15:29:27","modified_gmt":"2017-04-15T15:29:27","slug":"install-emacs-25-ppa-ubuntu-16-04-14-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2017\/04\/install-emacs-25-ppa-ubuntu-16-04-14-04\/","title":{"rendered":"How to Install Emacs 25.1 via PPA in Ubuntu 16.04, 14.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/emacs-icon245.png\" alt=\"\" width=\"245\" height=\"250\" class=\"alignleft size-full wp-image-6262\" \/><\/p>\n<p>While Ubuntu 17.04 includes the latest GNU Emacs 25.1 in its main repository, here&#8217;s how to install the editor in Ubuntu 16.10, Ubuntu 16.04, Ubuntu 14.04, and Ubuntu 12.04 via PPA.<\/p>\n<p><a href=\"https:\/\/lists.gnu.org\/archive\/html\/emacs-devel\/2016-09\/msg00451.html\" target=\"_blank\">Emacs 25.1<\/a> was released months ago with a wide variety of new features. I&#8217;ve written about <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2016\/09\/install-gnu-emacs-25-1-in-ubuntu-16-04\/\" target=\"_blank\">how to build it from the source<\/a>. However, a PPA repository will make things easier.<\/p>\n<p><a href=\"https:\/\/launchpad.net\/~kelleyk\/+archive\/ubuntu\/emacs\" target=\"_blank\">Kevin Kelley<\/a> has created a PPA with Emacs 25 packages for all current Ubuntu releases. A patch was made into the packages to fix for an `xinput`-related bug that, when triggered, causes `emacs` to enter an infinite loop; the process will then be unresponsive and will consume 100% of a single CPU core until you kill it.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/gnu-emacs-25-1.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/gnu-emacs-25-1-600x413.jpg\" alt=\"\" width=\"600\" height=\"413\" class=\"aligncenter size-large wp-image-6254\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/gnu-emacs-25-1-600x413.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/gnu-emacs-25-1-450x310.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/gnu-emacs-25-1.jpg 962w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>1.<\/b> Open terminal by pressing Ctrl+Alt+T or searching for &#8220;Terminal&#8221; from start menu. When it opens, run command to add the PPA:<\/p>\n<pre style=\"border:none;\">sudo add-apt-repository ppa:kelleyk\/emacs<\/pre>\n<p><i>Type in your password (no visual feedback due to security reason) when prompts and hit Enter.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/04\/emacs25-ppa-600x77.jpg\" alt=\"\" width=\"600\" height=\"77\" class=\"aligncenter size-large wp-image-6703\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/04\/emacs25-ppa-600x77.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/04\/emacs25-ppa-450x58.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/04\/emacs25-ppa.jpg 752w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.<\/b> Then update and install Emacs 25 via commands:<\/p>\n<pre style=\"border:none;\">sudo apt update\r\n\r\nsudo apt install emacs25<\/pre>\n<p>For text-only interface, replace <code>emacs25<\/code> with <code>emacs25-nox<\/code> in the last command.<\/p>\n<p>Don&#8217;t know why, but I need to log out and back in to be able to launch Emacs 25 from the Dash.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/04\/launch-emacs.jpg\" alt=\"\" width=\"538\" height=\"251\" class=\"aligncenter size-full wp-image-6704\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/04\/launch-emacs.jpg 538w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/04\/launch-emacs-450x210.jpg 450w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/p>\n<p><b>How to Remove:<\/b><\/p>\n<p>To remove Emacs25, open terminal and run commands:<\/p>\n<pre style=\"border:none;\">sudo apt remove emacs25 emacs25-nox && sudo apt autoremove<\/pre>\n<p>The PPA can be removed by going to System Settings -> Software &#038; Updates -> Other Software tab.<\/p>","protected":false},"excerpt":{"rendered":"<p>While Ubuntu 17.04 includes the latest GNU Emacs 25.1 in its main repository, here&#8217;s how to install the editor in Ubuntu 16.10, Ubuntu 16.04, Ubuntu 14.04, and Ubuntu 12.04 via PPA. Emacs 25.1 was released months ago with a wide variety of new features. I&#8217;ve written about how to build it from the source. However, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1381],"class_list":["post-6702","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-emacs-25"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/6702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=6702"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/6702\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=6702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=6702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=6702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}