desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Change apt repository documentation to deb822

Open jagiella opened this issue 1 year ago • 4 comments

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

jagiella avatar Oct 22 '24 09:10 jagiella

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...

shiftkey avatar Oct 22 '24 11:10 shiftkey

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 https://github.com/ansible/ansible/issues/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.

jagiella avatar Oct 22 '24 12:10 jagiella

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).

theofficialgman avatar Nov 05 '24 16:11 theofficialgman

It seems there is also an SSL issue with https://apt.packages.shiftkey.dev/. Running

wget -qO - https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null

Gives me gpg: no valid OpenPGP data found.

mscheltienne avatar Feb 27 '25 10:02 mscheltienne