[GH-ISSUE #5469] PPA installation: Key is stored in legacy trusted.gpg keyring (Linux Mint) #3009

Closed
opened 2026-05-05 09:39:41 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Frostbyte4664 on GitHub (Nov 11, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5469

Adding the PPA with sudo add-apt-repository ppa:deki/firejail stores the key in the legacy trusted.gpg keyring, which has been depreciated in favor of separating individual keys.

image

I wrote a small bash script to download the key and add the repository properly.
Something like this should be used in place of of add-apt-repository.

# Get codename of distro for list entry
codename=$( awk -F= '/UBUNTU_CODENAME/{print $2}' /etc/os-release )

# Add gpg key
wget -qO- "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x60537cdcf684460c" |\
gpg --dearmor |\
sudo tee /usr/share/keyrings/firejail-keyring.gpg > /dev/null

# Add repository
echo -e "deb [ signed-by=/usr/share/keyrings/firejail-keyring.gpg ] https://ppa.launchpadcontent.net/deki/firejail/ubuntu $codename main" |\
sudo tee /etc/apt/sources.list.d/firejail.list > /dev/null
Originally created by @Frostbyte4664 on GitHub (Nov 11, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5469 Adding the PPA with `sudo add-apt-repository ppa:deki/firejail` stores the key in the legacy trusted.gpg keyring, which has been depreciated in favor of separating individual keys. ![image](https://user-images.githubusercontent.com/72130297/201266192-f90ca8d0-8f66-437e-a09e-81dfed44de2e.png) I wrote a small bash script to download the key and add the repository properly. Something like this should be used in place of of `add-apt-repository`. ~~~ # Get codename of distro for list entry codename=$( awk -F= '/UBUNTU_CODENAME/{print $2}' /etc/os-release ) # Add gpg key wget -qO- "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x60537cdcf684460c" |\ gpg --dearmor |\ sudo tee /usr/share/keyrings/firejail-keyring.gpg > /dev/null # Add repository echo -e "deb [ signed-by=/usr/share/keyrings/firejail-keyring.gpg ] https://ppa.launchpadcontent.net/deki/firejail/ubuntu $codename main" |\ sudo tee /etc/apt/sources.list.d/firejail.list > /dev/null ~~~
gitea-mirror 2026-05-05 09:39:41 -06:00
Author
Owner

@reinerh commented on GitHub (Nov 11, 2022):

Thanks for the heads-up. Interestingly the add-apt-repository method is still the one recommended by launchpad.

I would expect that the ubuntu developers fix add-apt-repository to use the new way of storing keys.

<!-- gh-comment-id:1312059731 --> @reinerh commented on GitHub (Nov 11, 2022): Thanks for the heads-up. Interestingly the `add-apt-repository` method is still the one recommended by [launchpad](https://launchpad.net/~deki/+archive/ubuntu/firejail). I would expect that the ubuntu developers fix add-apt-repository to use the new way of storing keys.
Author
Owner

@Frostbyte4664 commented on GitHub (Nov 11, 2022):

I'm dumb. This problem is not present in the latest release of Ubuntu, but it is present in the latest release of Linux Mint.

<!-- gh-comment-id:1312221339 --> @Frostbyte4664 commented on GitHub (Nov 11, 2022): I'm dumb. This problem is not present in the latest release of Ubuntu, but it is present in the latest release of Linux Mint.
Author
Owner

@reinerh commented on GitHub (Nov 12, 2022):

I'll close the issue then. It sounds like add-apt-repository is still the recommended way. I assume that it will fix itself once Mint updates their tools.

<!-- gh-comment-id:1312576016 --> @reinerh commented on GitHub (Nov 12, 2022): I'll close the issue then. It sounds like `add-apt-repository` is still the recommended way. I assume that it will fix itself once Mint updates their tools.
Author
Owner

@kmk3 commented on GitHub (Nov 13, 2022):

(Re-closing as "not planned" since nothing was changed in firejail)

<!-- gh-comment-id:1312792281 --> @kmk3 commented on GitHub (Nov 13, 2022): (Re-closing as "not planned" since nothing was changed in firejail)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3009
No description provided.