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 · 2 comments
Open

Change apt repository documentation to deb822 #1143

jagiella opened this issue Oct 22, 2024 · 2 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
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
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.

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

No branches or pull requests

2 participants