Can't install emacs on freshly installed? ubuntu-24.04.1-live-server-amd64.iso

Robert Heller heller at deepsoft.com
Tue Nov 12 01:14:36 UTC 2024


OK, somehow you have broken something.

First of all, have you done this:

apt update

It is important to make sure the metadata is sync'ed with the repo servers.  
The live install media will almost certainly be out-of-date.  Running "apt 
update" will sync things up.  Running the update is the first step in getting 
things sync'ed up.

Next, run this command:

apt full-upgrade

This will bring your system fully up-to-date.  Once this has been done and if 
needed a re-boot, you will be totally up-to-date with the distro repo.

*Then*

you should be able to install emacs.

At Tue, 12 Nov 2024 01:55:04 +0100 Josef Wolf <jw at raven.inka.de> wrote:

> 
> Hello all,
> 
> 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.
>  
> 
> Now I'm lost.
> 
> Any help?
> 

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                         



More information about the ubuntu-users mailing list