Can't install emacs on freshly installed ubuntu-24.04.1-live-server-amd64.iso
Jeffrey Walton
noloader at gmail.com
Tue Nov 12 01:50:56 UTC 2024
On Mon, Nov 11, 2024 at 7:58 PM Josef Wolf <jw at raven.inka.de> wrote:
>
> Trying to install emacs on a freshly installed
> ubuntu-24.04.1-live-server-amd64.iso:
>
> # apt install emacs
> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
>
> Reading package lists...
> Building dependency tree...
> Reading state information...
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies:
> emacs : Depends: emacs-gtk (>= 1:27.1) but it is not installable or
> emacs-pgtk (>= 1:27.1) but it is not installable or
> emacs-lucid (>= 1:27.1) but it is not installable or
> emacs-nox (>= 1:27.1) but it is not installable
> E: Unable to correct problems, you have held broken packages.
>
> # apt install emacs-gtk
> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
>
> Reading package lists...
> Building dependency tree...
> Reading state information...
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies:
> libgccjit0 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is to be installed
> E: Unable to correct problems, you have held broken packages.
Related, emacs and its dependencies have become quite a mess, imho.
The gcc and libgccjit dependency are for JIT'ing elisp. It is a new
feature.
You might consider switching to zile or mg if you don't need a lisp
interpreter. You get the text editor and familiar key bindings without
the extra 600+ MB of packages.
Also see <https://bugzilla.redhat.com/show_bug.cgi?id=2316238>.
Jeff
More information about the ubuntu-users
mailing list