Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change apt repository documentation to deb822 #1143

Open
jagiella opened this issue Oct 22, 2024 · 3 comments
Open

Change apt repository documentation to deb822 #1143

jagiella opened this issue Oct 22, 2024 · 3 comments

Comments

@jagiella
Copy link

jagiella commented Oct 22, 2024

The feature request

Since Ubuntu 24.04 the standard way of adding apt repositories has changed to using the deb822 format.

Proposed solution

Could you please update the README to something like this:

@shiftkey package feed

wget -qO - https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null
sudo  sh -c 'cat <<EOT > /etc/apt/sources.list.d/shiftkey-packages.sources
Types: deb
URIs: https://apt.packages.shiftkey.dev/ubuntu/
Suites: any
Architectures: amd64
Components: main
Signed-By: /usr/share/keyrings/shiftkey-packages.gpg
EOT'

@mwt package feed

wget -qO - https://mirror.mwt.me/shiftkey-desktop/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/mwt-desktop.gpg > /dev/null
sudo  sh -c 'cat <<EOT > /etc/apt/sources.list.d/mwt-desktop.sources
Types: deb
URIs: https://mirror.mwt.me/shiftkey-desktop/deb/
Suites: any
Architectures: amd64
Components: main
Signed-By: /usr/share/keyrings/mwt-desktop.gpg
EOT'

Additional context

No response

@shiftkey
Copy link
Owner

Is this backwards compatible with earlier Ubuntu's, or other APT-based distributions? I'm not sure I want to use the latest syntax if it's going to break other users...

@jagiella
Copy link
Author

jagiella commented Oct 22, 2024

Debian has deprecated APT's original sources.list file format. As of Debian 11 (and Ubuntu 20.10), APT uses the newer "DEB822" format by default. This format has been supported since APT 1.1, which goes back to Ubuntu 16.04 and Debian 9.

was mentioned ansible/ansible#77073 and can also be found in the apt manpage and apt changelogs .

On my PC currently running ubuntu 24.10 the old list-file approach is deprecated and is not working anymore.

@theofficialgman
Copy link

can confirm the above APT 1.1 minimum requirement (quite old now).

the only things that didn't get support until more recently were the GUIs for managing the users enabled apt repos. In the GUI cases, the user simply wouldn't see any DEB822 repos in the GUI (but they still work of course).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants