[Spec] APT deb822 sources by default

I think we’ll eventually add support for allowlists and blocklists, but it’s not there yet. They will likely available in both formats.

Updates to the specification:

  • Moved 23.04 to 23.10, 23.10 tasks to 24.04
  • Added placeholder section for the places that write the sources.list currently
  • Added some details on what we implemented in 23.10

Hi, I’d just like to follow up on a couple points here.

For the initial booted ISO, the sources.list file can be found in the livecd-rootfs source code here. As you can see, there’s quite a few commented items, so in general, that format needs cleaning up.

For Lubuntu, we use Calamares. While I’m not expecting support in implementing it, I’d like us to decide on a common, complete format for ubuntu.sources that doesn’t include many unnecessary, commented-out lines. Maybe comment out Types: deb deb-src above each line, something like that. Once implemented in Calamares, I’ll update this comment with our schema. Hopefully we can compromise on something before release day.

Thanks.

UPDATE: The behavior is slightly odd, since it does not look like you can configure multiple sources in one file. Regardless, I’ve separated Lubuntu’s installed sources files into the following:

  • ubuntu.sources: closest mirror, $codename and $codename-updates, Main and Universe
  • ubuntu_security.sources: Ubuntu Security mirror, $codename-security, Main and Universe
  • ubuntu_nonfree.sources: closest mirror, $codename and $codename-updates, Restricted and Multiverse, disabled by default (unless enabled via the installer checkbox, which also installs ubuntu-restricted-extras)

Obviously, Ubuntu proper only enables Main (and maybe Restricted for drivers?) so this will need some slight adjustment for general usage. Regardless, I think this will be a good starting point.

@tsimonq2 Hmm you are wrong you can absolutely configure multiple sources in one file, and I strongly encourage that we should only have one file.

2 Likes

Hmm you are wrong

Which I am sometimes, being human and all. :wink:

Thanks for the followup, I’ll iterate on it further.

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