Unable to add repository through the GUI in 24.04.1

Hi, I have encountered a strange problem in Ubuntu 24.04.1. Not sure if other encounter the same problem or there is something wrong in my set up. It is a fresh install on a brand new laptop.

The issue is I am not able to add repositories through the GUI in Software&Updates or synaptic > Repositories (which invokes S&U). I could type in the apt line in the box and apply but nothing is added to the list of repositories.

I know how to add repo with the command line and terminal so I am not asking for help to add repo here. Just want to check if it happens to others, I couldn’t find a bug report.

Thanks.

Please add how (The Command) and what repo you were adding to help us.
Thanks

Can we also see the output from this:
cat /etc/apt/sources.list

Note that sources.list is actually empty on 24.04 and onwards, the format has changed and repos have each their own file under /etc/apt/sources.list.d/ now

2 Likes

@ogra Thank you for the correction!

It has nothing to do with the sources or whether it is in /etc/apt/sources.list or in the directory /etc/apt/sources.list.d. I don’t think those are relevant as I can add repositories with the cmd and terminal per usual.

It appears to be a problem with the Software&Updates GUI. I want to know if that can be reproduced by others. Thanks.

That was a known bug but it seems to have been fixed, just not released.

I’ll ping the appropriate people. :smile:

EDIT: It was released, just not marked as such. I wonder why. Anyhow, make sure everything is updated.

EDIT AGAIN: This was for the Qt interface. Disregard.

Here’s the bug for the GTK interface, meaning it was fixed before 24.04 was released, meaning you might have entered something incorrectly in the deb line.

1 Like

@eeickmeyer

Not sure if it is the same issue. synaptic does start and it works, just that I can’t add repo through the Repositories tab (Software Properties). Type in apt line, click add source, it all goes smoothly except that source is not added.

It doesn’t crash or do anything drastic like in the bug report. Except for this one issue it works as expected otherwise.

The new repo does show up in Software Properties’ list and checked once I have added it through the GUI.

System is completely up to date.

Are you talking about synaptic only the whole time ?

Since it isn’t supported in Ubuntu and comes straight from Debian into universe as-is, I doubt anyone has tested if its software properties dialog supports handling the new format at all, so it might well be that there are still issues (until Debian switches the default too at least)

@ogra
Synaptic invokes the Software&Updates GUI and it is the same thing as far as this issue is concerned. You can do it with Software&Updates (aka software-properties-gtk) directly even without installing synaptic. It is the same issue.

Edited: Starting software-properties-gtk in terminal and add source, repo is not added, and there is no error message on the terminal.

That’s actually not true. @ogra knows these things, he’s been part of Ubuntu since its founding.

@eeickmeyer

But the same issue exists by running software-properties-gtk directly.

Just try it with software-properties-gtk and forget about synaptic if you think it is a distraction.

Heh, I must admit that I don’t… I haven’t used synaptic in probably 18y or so and wasn’t aware it launches the standard software properties nowadays… (I wonder what it does on Debian then, where you don’t have that …)

I guess this deserves an

ubuntu-bug software-properties-gtk

so it can get researched further…

@ogra

As far as I know synaptic works exactly the same way in Debian.
https://wiki.debian.org/Synaptic
Only difference is in Debian there is no ppa so it is not as likely that you would add repositories.

software-properties-gtk has been in debian for years as I have done Debian some years ago and it was there.

1 Like