Package Repositories Empty Ubuntu 24.04

SYSTEM INFORMATION
OS type and version Ubuntu Linux 24.04.1
Usermin version 2.102
Virtualmin version 7.20.2
Theme version 21.20.7
Nginx version 1.24.0
Package updates All installed packages are up to date

as proof of concept I did an in place upgrade from Ubuntu 22.04.5 to 24.04.1, all went reasonably well with one glitch the package repositories tab is now empty like this

on looking around in /etc/apt sources.list now contains the following message

# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources

and the contents of ubuntu.sources is

Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
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

as you can see the format of the file is different. Is it the case that webmin can not read this new format ?
The output from apt update is

root@server:/etc/apt# apt update
Hit:1 http://as-repository.openvpn.net/as/debian noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease                                                                                                                                                   
Hit:3 https://software.virtualmin.com/vm/7/gpl/apt virtualmin InRelease                                                                                                                                            
Hit:4 http://archive.ubuntu.com/ubuntu noble InRelease                                            
Get:5 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]     
Hit:6 http://archive.ubuntu.com/ubuntu noble-backports InRelease                       
Ign:7 https://download.webmin.com/download/newkey/repository stable InRelease
Hit:8 https://download.webmin.com/download/newkey/repository stable Release
Fetched 126 kB in 2s (64.7 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@server:/etc/apt# 

as you can see from this apt is reading the new format no problem so I guess webmin will update the system from apt correctly.
note virtualmin.list is in the old format for .list files and apt reads that fine. What I have not tried is converting ubuntu.sources into a list file would that work ?

Is this thread related?

no I don’t think so, I don’t have any problems with apt baulking at incorrect keys, it’s just webmin does not show the repositories that apt has configured (screenshot 1) but as you can see from the last output apt is working correctly

This is a known issue, and either @Jamie or I will add support for the new repository format used by Ubuntu in some time.

but I guess I will get updates in the mean time ?

Yes, you’ll still receive updates without any issues. Webmin just can’t see those repos, but that doesn’t mean APT is.

@Ilia is the issue here the format of the output of the apt command?

We don’t parse Webmin output when displaying repos.

This is because Ubuntu introduced changes to its repository format starting with Ubuntu 24.04, which now distributes repositories as deb822-formatted .sources files, e.g:

# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources

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

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

Though, it still supports the old APT source list format.

Oh I see now … hmm, to fix this we’ll need to change the code that parses the repository files. I’ll take a look at this?

Yes, sure, if you’d like to.

Or I welcome a PR if you want to take a crack at it!

Yes, absolutely! I will send you one in a bit!

The PR is here:

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.