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

Keith keithw at caramail.com
Tue Nov 12 14:41:48 UTC 2024


On 11/11/24 6:55 PM, Josef Wolf 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?
> 

I'd check your sources list for Ubuntu repos

$ apt-add-repository -L

Types: deb
URIs: http://us.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Yours should be similar. Make sure the noble-updates and noble-security 
suites are present.

If they're there, then possibly you're connecting to a mirror that is 
not properly sync'd with the main Ubuntu archive server.

-- 
Keith









More information about the ubuntu-users mailing list