Can't add any PPAs in Mint 20

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
tralph3
Level 1
Level 1
Posts: 5
Joined: Thu Jun 18, 2020 5:10 pm

Can't add any PPAs in Mint 20

Post by tralph3 »

Hi, I've been using Mint 20 for the past two weeks. Everything works perfectly, I'm very happy with this OS and I plan to keep it as a replacement to Windows... maybe forever. But there's one big problem that I can't seem to be able to solve, I can't add PPAs to install third party software.

This problem began a couple of days ago, since it was not present before it. There seems to be an issue with missing keys. As soon as I installed the OS one of the first things I did was to try to install RetroArch, and for that I had to add libretro's PPA. I followed the instructions and it worked perfectly fine, no issues whatsoever. Then a couple of days later I was looking for a replacement to MusicBee and found Guayadeque (I actually managed to make MusicBee run well, but at this point I was still searching). So the instructions told to add a PPA and... issues began. When I tried to add the PPA, there was a problem with some signatures being skipped because there was no key or something of the sorts. You can see I made a post about it here https://www.guayadeque.org/viewtopic.php?t=6656.

I made a post on StackExchange too: https://unix.stackexchange.com/question ... ux-mint-20

I talked to the support channel on the Linux Mint community Discord server, I talked to the official support channel on HexChat, I asked a friend who uses Linux daily. Nobody could provide an answer to this issue. The best response I got was "It's probably a problem with the PPA, they haven't updated their keys for Mint 20" <-plausible, but unlikely, since this happens with every PPA (lutris has this problem to, just to bring some bigger names into the table). They also told me "reinstall the OS" <-not an option.

After trying to add the PPA and having the issue, the PPA does get added, I can see it on the Software Sources app, but trying to update from it is futile. It doesn't let me do it because it's unsigned, and it won't sign it because of missing keys. This effectively borks the "apt update" command until I remove the PPA because it throws that error when updating.

So, I'm out of ideas, I have absolutely no clue on what might be causing this nor where to even begin with to fix it. Here's a link to a recording I made showcasing the problem in action: https://cdn.discordapp.com/attachments/ ... .33.27.mp4

Please, help, I'm desperate.

User avatar
smurphos
Level 16
Level 16
Posts: 6749
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Can't add any PPAs in Mint 20

Post by smurphos »

Hi,

Can open a terminal and rerun the attempt to add the Lutris PPA. The copy the output from the terminal including the error messages and paste into your reply in between [code][/code] tags.

I can see the cause of the problem on your video (it's a partially installed OBS repo key) but it will be easier for me to provide guidance to fix if I can copy paste from your output.

Edit - OK I can see you posted the output on the stack exchange thread.

To fix

Code: Select all

sudo rm /etc/apt/trusted.gpg.d/home:antergos.asc
Then try adding the Lutris PPA again.

What's the software you are getting from the antergos OBS repo?
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

tralph3
Level 1
Level 1
Posts: 5
Joined: Thu Jun 18, 2020 5:10 pm

Re: Can't add any PPAs in Mint 20

Post by tralph3 »

You're A GOD. It actually worked! I can't believe it, after all of this time I was beggining to think I actually had to nuke my OS. Ok, I don't know what this antegros thing is. I remember to have encountered the issue with Guayadeque, also when trying to add a PPA for a webkit based login screen, and also for lutris. Of those three I'm only really interested in lutris, I don't care for Guayadeque anymore since I managed to make MusicBee run, and maybe I'll look into login screen customization later. About OBS... I have no clue. Assuming you are referint to Open Broadcast Software, I never used it and have no plans to, never added any PPA related to it neither attempted to, so I don't know how could that have made something. Could you elaborate a bit on the cause of the issue so I know what to do in case I encounter it in the future? Thanks.

User avatar
smurphos
Level 16
Level 16
Posts: 6749
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Can't add any PPAs in Mint 20

Post by smurphos »

tralph3 wrote:
Sun Jun 28, 2020 4:15 am
You're A GOD. It actually worked! I can't believe it, after all of this time I was beggining to think I actually had to nuke my OS. Ok, I don't know what this antegros thing is. I remember to have encountered the issue with Guayadeque, also when trying to add a PPA for a webkit based login screen, and also for lutris. Of those three I'm only really interested in lutris, I don't care for Guayadeque anymore since I managed to make MusicBee run, and maybe I'll look into login screen customization later. About OBS... I have no clue. Assuming you are referint to Open Broadcast Software, I never used it and have no plans to, never added any PPA related to it neither attempted to, so I don't know how could that have made something. Could you elaborate a bit on the cause of the issue so I know what to do in case I encounter it in the future? Thanks.
OBS is the openSuse Build Service - they provide an easy way for application developers to host a third party repos for software projects. Unfortunately it appears that the instructions they provide for importing signing keys breaks Mint. I'm pretty sure it's a Mint bug as I've tested in Ubuntu and it doesn't cause the same issue.

It will be the webkit based login screen repo that caused the breakage - I guess you followed the instructions here - https://software.opensuse.org/download. ... t2-greeter

Assuming yes to complete the cleanup also run

Code: Select all

sudo rm /etc/apt/sources.list.d/home:antergos.list
If you do really need to add one of these repos give me a shout - I have a workaround pending the bug being fixed in Mint.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

tralph3
Level 1
Level 1
Posts: 5
Joined: Thu Jun 18, 2020 5:10 pm

Re: Can't add any PPAs in Mint 20

Post by tralph3 »

Yes that's exactly what I did. I just want to have a nice looking and highly customizable login screen, as the default is kinda bland. I saw this and looked right up my alley, but if you have a better suggestion pelase, do so. It's amazing to me that you were able to track down exactly what I did when I didn't even remember, shows how much you know about this. I'm on Cinnamon btw.

reticulatus
Level 1
Level 1
Posts: 17
Joined: Tue Jul 11, 2017 8:43 am
Location: UK

Re: Can't add any PPAs in Mint 20

Post by reticulatus »

I had the same problem after installing Waterfox Classic using the instructions for xUbuntu 20.04 at:
https://software.opensuse.org//download ... lassic-kpe

This downloaded the Release.key file as /etc/apt/trusted.gpg.d/home:hawkeye116477:waterfox.asc
which caused errors when trying to install other PPAs.

I deleted that file and went back to the old instructions where the wget command downloads the Release.key file to the current directory and you then run:

Code: Select all

sudo apt-key add - < Release.key
This worked and I could then install other PPAs without getting the errors.

User avatar
smurphos
Level 16
Level 16
Posts: 6749
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Can't add any PPAs in Mint 20

Post by smurphos »

reticulatus wrote:
Sun Jun 28, 2020 4:19 pm
This worked and I could then install other PPAs without getting the errors.
Yep - that's more or less my suggested workaround aswell - my formulations uses /tmp just to avoid cruft.

E.g when the instructions say for example

Code: Select all

sudo wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O "/etc/apt/trusted.gpg.d/home:ungoogled_chromium.asc"
Instead run

Code: Select all

wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O /tmp/home:ungoogled_chromium.asc; sudo apt-key add /tmp/home:ungoogled_chromium.asc
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
nicolaasjan
Level 1
Level 1
Posts: 16
Joined: Sun Sep 23, 2012 2:26 pm
Location: The Netherlands

Re: Can't add any PPAs in Mint 20

Post by nicolaasjan »

smurphos wrote:
Mon Jun 29, 2020 12:09 am

E.g when the instructions say for example

Code: Select all

sudo wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O "/etc/apt/trusted.gpg.d/home:ungoogled_chromium.asc"
Instead run

Code: Select all

wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O /tmp/home:ungoogled_chromium.asc; sudo apt-key add /tmp/home:ungoogled_chromium.asc
FYI, they changed their command from:

Code: Select all

sudo wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O "/etc/apt/trusted.gpg.d/home:ungoogled_chromium.asc"
to:

Code: Select all

curl -fsSL https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home:ungoogled_chromium.gpg > /dev/null
:?
Linux Mint 19.3 Mate

User avatar
smurphos
Level 16
Level 16
Posts: 6749
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Can't add any PPAs in Mint 20

Post by smurphos »

Thanks for the heads up - opensuse appear to have changed the instructions for all the OBS repos in the last couple of days. Now to check if the new ones work without breaking things in Mint....

Edit - the revised OBS instructions still don't result in a properly installed key in Mint and subsequent PPA additions still fail. On regular Ubuntu it works fine.

https://github.com/linuxmint/mintsystem/issues/119
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
xenopeek
Level 24
Level 24
Posts: 24623
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Can't add any PPAs in Mint 20

Post by xenopeek »

The cause is OBS provided instructions that wrote the gpg keyfile directly to /etc/trusted.gpg.d/ but that doesn't work right for all APT tools. smurphos figured out the gpg keyfile should be written by apt-key to work right with all APT tools. Instructions here have been updated: https://linuxmint-user-guide.readthedoc ... d-chromium

If you added ungoogled chromium with the old instructions, running this should let you add PPAs again and list all keys in Software Sources—unless you have more OBS repositories for which you directly wrote a gpg keyfile in /etc/apt/trusted.gpg.d/ instead of using apt-key for that:

Code: Select all

sudo rm -v '/etc/apt/trusted.gpg.d/home:ungoogled_chromium.asc'
wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O - | sudo apt-key add -
apt update
Image

Post Reply

Return to “Software & Applications”