[Spec] APT deb822 sources by default

ubuntu-advantage-tools will adopt the deb822 format to comply with this spec, starting in version 31 - which will land in 24.04 and backported to 16.04+

Living status notes for noble:

  • ubuntu-release-upgrader: :white_check_mark: Updates to noble switch to ubuntu.sources
  • curtin: :white_check_mark: (AFACT)
  • livecd-rootfs: :link: WIP

Following up from the Calamares side of things:

  • Tweaked our automirror module to match the de facto standard thus far.
  • Provided my two cents on the livecd-rootfs MP after some thought. I think this is a great start, just might need some minor tweaks on wording.

Also, let me just get this straight… so we have livecd-rootfs, curtin, and calamares all creating their own ubuntu.sources file at this point. When should we actually just make this into a common tool and switch all three to use it? :wink:

Thanks!

Updates to noble switch to ubuntu.sources? but installing fro ISO dated 2024-01-18 I still see the old sources.list

Well yes, that’s what the status doc says. If you upgrade from an old release to noble, you get deb822 sources, but you don’t get any in the images just yet, the livecd-rootfs change is still pending.

And upgrading Noble installed from an old ISO? EG my ISO dated 2024-01-18 ?

1 Like

@juliank I just upgraded to noble and lost a bunch of apt sources entries as (I am guessing) ubuntu-release-upgrader only upgraded one lot of entries from an old sources.list file into the new format - should I file a bug against u-r-u?

Yes please file a bug!

Installed from ISO dated 2024-02-15. software-properties-gtk does not start

Yes that’s a duplicate of Bug #2053165 “[noble] Version 2.7.5 causes software-properties t...” : Bugs : python-apt package : Ubuntu

You should be able to mark a bug as a duplicate of another.

1 Like

FYI I did revert to this one:
https://launchpad.net/ubuntu/+source/python-apt/2.7.1~ubuntu1/+build/27047450/+files/python3-apt_2.7.1~ubuntu1_amd64.deb
(I do use old sources format).

1 Like

gtk works perfectly now after downgrading python with the provided deb file! Thanks mate!

New here and to Linux. Seeing this after ignoring the python issue for a long time. I ignorantly upgraded to the dev branch of Ubuntu 24.04 from Ubuntu 22.04 LTS as a result of trying out do-release-upgrade blindly. (I didn’t bother to look up the -d flag and what it does.)

I avoided the software-properties-gtk python issue by deleting the older source files/entries from the /etc/apt/ folder as recommended by some in the LaunchPad Bug Report #2053228 linked above.

After Software & Updates started up again: out of all the repositories I did want to add, only AnyDesk’s one worked. Not only did the rest not work but those caused the app to crash. I had to manually remove the new entries/files from the /etc/apt/ folder again in order to continue opening it directly.

Glad to see that it has some solution but I’ll be avoiding it for now since the vulnerability in XZ Utils is still being cleaned up. There’s a long way to go.

Will this be completed by Noble release?

the latest daily builds (4/20/2024) still have the wrong sources.list and no ubuntu.sources file

eg:
https://cdimage.ubuntu.com/daily-preinstalled/pending/noble-preinstalled-desktop-arm64+raspi.img.xz

sources.list

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ noble main restricted universe

Thanks for bringing this to our attention. Along with some other reports of issues, this made us realize the images were still being built with a version of ubuntu-image lacking support for deb822 sources. This has been corrected, and you should now see the correct behavior in the 20240421.1 daily image.

Correction: the ubuntu-image used for the dailies was the right one (as we build from candidate in noble), but we did not have the deb822 images enabled in the definitions for the pi images indeed. This should now be fixed and today’s desktop daily should, in theory, have the right sources list. Can you test it once it’s made available?

For some reason, software-properties-gtk handles these new sources just fine but not the qt interface:

1 Like

So after some time with a messy Software sources (duplicate: checked items in 1st tab and additional sources in 2nd).
I had to separate each repo like this for ubuntu.sources and delete old sources.list:

Types: deb
URIs: http://archive.ubuntu.com/ubuntu
Suites: noble
Components: main universe restricted 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

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

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

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

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

(I don’t know what’s the correct security repo…)
It does not work if I put all the repos in the same source (noble noble-updates etc.) as permitted by new format.

On my install from last ISO in ubuntu.sources are no comments but there are in ubuntu.sources.curtin.orig

corrado@corrado-n9-noble:~$ cat /etc/apt/sources.list.d/ubuntu.sources
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
corrado@corrado-n9-noble:~$ cat /etc/apt/sources.list.d/ubuntu.sources.curtin.orig
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

## Ubuntu distribution repository
##
## The following settings can be adjusted to configure which packages to use from Ubuntu.
## Mirror your choices (except for URIs and Suites) in the security section below to
## ensure timely security updates.
##
## Types: Append deb-src to enable the fetching of source package.
## URIs: A URL to the repository (you may add multiple URLs)
## Suites: The following additional suites can be configured
##   <name>-updates   - Major bug fix updates produced after the final release of the
##                      distribution.
##   <name>-backports - software from this repository may not have been tested as
##                      extensively as that contained in the main release, although it includes
##                      newer versions of some applications which may provide useful features.
##                      Also, please note that software in backports WILL NOT receive any review
##                      or updates from the Ubuntu security team.
## Components: Aside from main, the following components can be added to the list
##   restricted  - Software that may not be under a free license, or protected by patents.
##   universe    - Community maintained packages. Software in this repository receives maintenance
##                 from volunteers in the Ubuntu community, or a 10 year security maintenance
##                 commitment from Canonical when an Ubuntu Pro subscription is attached.
##   multiverse  - Community maintained of restricted. Software from this repository is
##                 ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
##                 licence. Please satisfy yourself as to your rights to use the software.
##                 Also, please note that software in multiverse WILL NOT receive any
##                 review or updates from the Ubuntu security team.
##
## See the sources.list(5) manual page for further settings.
Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
corrado@corrado-n9-noble:~$