linuxmint / mintupdate

The Linux Mint Update Manager
320 stars 156 forks source link

The PPA add-apt-repository command line does not work #770

Open kimariterikishi opened 1 year ago

kimariterikishi commented 1 year ago

Describe the bug It was fine before, it hasn't worked on Linux Mint 21 release or for a while.

To Reproduce

sudo apt-get update
...
Hiba:9 http://ppa.launchpad.net/savoury1/vlc3/ubuntu jammy InRelease
--> Az alábbi aláírások nem ellenőrizhetők, mert a nyilvános kulcs nem érhető el: NO_PUBKEY 374C7797FB006459
Csomaglisták olvasása... Kész
--> W: Hiba történt az aláírás ellenőrzése közben. A tároló nem frissült, és az előző indexfájl lesz használva. GPG hiba: http://ppa.launchpad.net/savoury1/vlc3/ubuntu jammy InRelease: Az alábbi aláírások nem ellenőrizhetők, mert a nyilvános kulcs nem érhető el: NO_PUBKEY 374C7797FB006459
--> W: Sikertelen letöltés: http://ppa.launchpad.net/savoury1/vlc3/ubuntu/dists/jammy/InRelease  Az alábbi aláírások nem ellenőrizhetők, mert a nyilvános kulcs nem érhető el: NO_PUBKEY 374C7797FB006459
W: Néhány indexfájlt nem sikerült letölteni. Figyelmen kívül lettek hagyva, vagy régebbiek lettek felhasználva.

Expected behavior I expected it to work as before, or as tested for me by someone on this system:

sudo add-apt-repository ppa:jonaski/strawberry
Repository: 'deb https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu/ kinetic main'
Description:
Strawberry Music Player
More info: https://launchpad.net/~jonaski/+archive/ubuntu/strawberry
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/jonaski-ubuntu-strawberry-kinetic.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/jonaski-ubuntu-strawberry-kinetic.list
--> Adding key to /etc/apt/trusted.gpg.d/jonaski-ubuntu-strawberry.gpg with fingerprint BE5ED0F9261CAAD9A1E5B1A4CD6289E999EA819D
Találat:1 http://hu.archive.ubuntu.com/ubuntu kinetic InRelease
Találat:2 http://hu.archive.ubuntu.com/ubuntu kinetic-updates InRelease        
Találat:3 http://hu.archive.ubuntu.com/ubuntu kinetic-backports InRelease      
Találat:4 http://security.ubuntu.com/ubuntu kinetic-security InRelease         
Letöltés:5 https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu kinetic InRelease [18,1 kB]
Találat:6 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu kinetic InRelease
Letöltés:7 https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu kinetic/main amd64 Packages [756 B]
Letöltés:8 https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu kinetic/main Translation-en [768 B]
Letöltve 19,6 kB 1mp alatt (14,6 kB/s)                           
Csomaglisták olvasása... Kész

Distribution:

Software version: 5.8.8

Logs: The "sudo apt-get update" command shows the problem in detail: the OpenPGP location flaw.

Additional context May belong here:

*Warning: apt-key is deprecated*. Manage keyring files in trusted.gpg.d instead (*see apt-key(8)*).

I think PPA is also important for Linux Mint users. The „workaround” is an example, but it is quite complicated:

echo -e "deb [signed-by=/usr/share/keyrings/savoury1-vlc3-jammy.gpg] http://ppa.launchpad.net/savoury1/vlc3/ubuntu jammy main\n# deb-src [signed-by=/usr/share/keyrings/savoury1-vlc3-jammy.gpg] http://ppa.launchpad.net/savoury1/vlc3/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/savoury1-vlc3-jammy.list

gpg --export 374C7797FB006459 | sudo gpg --dearmor -o /usr/share/keyrings/savoury1-vlc3-jammy.gpg >/dev/null

sudo apt-get update

sudo apt-get dist-upgrade

Best regards.

carlosmintfan commented 1 year ago

Does the “Add missing keys” option in Software Sources > Maintenance solve it?