Skip to content

apt-key is deprecated #353

@KrisAphalon

Description

@KrisAphalon

Operating System/Distribution

Which distribution of Linux are you using?

Sparky Linux (Debian-based), uname -a:

Linux Aphalon 5.9.0-rc5-sparky-amd64 #1 SMP Mon Sep 14 22:47:07 CEST 2020 x86_64 GNU/Linux

Installer

Which version of the app?

Doesn't matter

Which installer type?

.deb package repository

What happened?

Trying to follow Debian/Ubuntu distributions installation guide leads to error:

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

after line:

wget -qO - https://packagecloud.io/shiftkey/desktop/gpgkey | sudo apt-key add -

Which leads to public key not being added and later error while using apt update

A proper way to add it (the one that worked for me) would be something along the lines of:

wget -qO - https://packagecloud.io/shiftkey/desktop/gpgkey | sudo tee /etc/apt/trusted.gpg.d/shiftkey-desktop.asc > /dev/null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions