PapirusDevelopmentTeam / papirus-icon-theme

Pixel perfect icon theme for Linux
https://git.io/papirus-icon-theme
GNU General Public License v3.0
6.69k stars 423 forks source link

Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details #3006

Closed arun-mani-j closed 2 years ago

arun-mani-j commented 2 years ago

Tried my best to make sure it's not a duplicate, but if yes, I'm sorry.

I installed the icon pack using the commands mentioned in Debian and derivatives.

During sudo apt update, I get this warning.

W: http://ppa.launchpad.net/papirus/papirus/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

My version of apt is 2.4.0, so you can view the deprecation section in unstable man pages (as of writing this issue).

Since I'm on testing edition and also since it is only warning, we have a lot of time to upgrade the existing installation setup.

Thank you :smile:

ItsKruistz commented 2 years ago

you can just use the installation script instead (wget -qO- https://git.io/papirus-icon-theme-install | sh)

arun-mani-j commented 2 years ago

@nguyensang28

  1. I'm not installing the icon set now. I already installed it in late 2020s and this warning started appearing after apt's update to 2.4.0. So I guess, the installation instructions for PPA should be updated and existing users' installations via PPA can be upgraded if possible without them having to do a reinstall. :)
  2. I checked the script you mentioned. It appears to be doing direct install by downloading the latest icon release. I personally prefer apt (i.e. PPA here) as they are integrated well into the existing package manager. Hence, I can update every package via it without the need to manually keep checking for updates for individual packages. (Github's Watch exists, I agree, but package manager are more comfortable than subscribe-update mechanism). Is there any plan to deprecate the PPA in future by the maintainers?
varlesh commented 2 years ago

On new apt version keys located on /etc/apt/trusted.gpg.d directory. For solve this need add key with new method:

sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/papirus.gpg --keyserver keyserver.ubuntu.com --recv E58A9D36647CAE7F
sudo chmod 644 /etc/apt/trusted.gpg.d/papirus.gpg
arun-mani-j commented 2 years ago

Hii @varlesh Thanks for the update. I tried the new instructions to remove the warning.

The first step was to locate the old key and remove it. Using apt-key list and searching for any key that is located in /etc/apt/trusted.gpg and then removing that corresponding key as

sudo apt-key del 647CAE7F

This worked fine. Next I removed the old sources.list file by sudo rm /etc/apt/sources.list.d/papirus-ppa.list. Then I ran sudo apt update. So far all good.

I copy pasted the new instructions but it gave the following error.

$ sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/papirus.gpg --keyserver keyserver.ubuntu.com --recv E58A9D36647CAE7F
gpg: keyring '/etc/apt/trusted.gpg.d/papirus.gpg' created
gpg: failed to create temporary file '/root/.gnupg/.#lk0x000055f4448cc780.vaiozone.4301': No such file or directory
gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr

(The commands before this command ran fine, I have dirmngr installed too, even restarted system).

I think this issue is because of the use of sudo for gpg which makes it locate keys from /root instead of /home/username. I tried searching other repos for how they are using gpg to import keys, I checked zsh-completions repo. Here they are downloading the key, piping it to gpg and then adding it to /etc/apt/trusted.gpg.d.

I thought of doing same, I searched for 0xE58A9D36647CAE7F in keyserver.ubuntu.com and got this. I clicked the link in key and copied the GPG Public Key.

Then I did

$ cat key.txt | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/papirus.gpg > /dev/null
$ sudo chmod 644 /etc/apt/trusted.gpg.d/papirus.gpg # I don't know if it is needed (other repos don't use it)
# But I still did it because the papirus.gpg file in trusted.gpg.d didn't have rw-r-r 

This imported the key! I ran sudo apt update and everything worked fine.

Finally, I don't know if the issue is a thing that happened because of some quirks in my system, but this is how I solved. May be if future readers face the same problem, they can solve using this.

Thanks again :smile: !

varlesh commented 2 years ago

@J-Arun-Mani Please check this command on your OS (after sudo rm /etc/apt/trusted.gpg.d/papirus.gpg), it's get key fine?: curl -fsSL 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xe58a9d36647cae7f' | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/papirus.gpg > /dev/null

varlesh commented 2 years ago

@dsgsdg3 Похоже какие-то проблемы с конфигом gpg или dirmnr по-дефолту в skel или где-либо еще. Вверху альтернативный способ получения ключа, протестируйте плиз.

arun-mani-j commented 2 years ago

@varlesh yes, it works fine.

To summarize, this is exactly what I did to ensure:

$ # Removal
$ sudo rm /etc/apt/trusted.gpg.d/papirus.gpg
$ sudo rm /etc/apt/sources.list.d/papirus-ppa.list 
$ sudo apt update 
$ # Install
$  sudo sh -c "echo 'deb http://ppa.launchpad.net/papirus/papirus/ubuntu focal main' > /etc/apt/sources.list.d/papirus-ppa.list"
$ curl -fsSL 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xe58a9d36647cae7f' | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/papirus.gpg > /dev/null
$ # Checking
$ sudo apt update
...
Hit:3 http://ppa.launchpad.net/papirus/papirus/ubuntu focal InRelease
...

So yea, this works fine :v:

LahimaGuru commented 2 years ago

Hi, I think I'm having kind of the same error, but i've tried lot of things and still cant make it wotk, after Docker installation I went to "apt'get update" giving me this problem:

W: https://download.docker.com/linux/debian/dists/buster/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

I started with Kali Linux a month ago and I'm still nobb...if anyone could help me will be very thankful.

arun-mani-j commented 2 years ago

@LahimaGuru Hi there. This repo is for Papirus icons and so you should check out Docker user groups on how to fix the warning. Because the steps involved will vary by a lot of degree.

With that,

  1. Install using the repository uses the new method which shouldn't give you the warning. You should ask Docker devs for the updating guide.
  2. If you are a beginner, please skip Kali and use a general purpose OS like Debian, Fedora, Ubuntu or Linux Mint. Cheers.
ghost commented 2 years ago

мне это не интересно. я скачал с сайта и установил https://www.pling.com/p/1166289/ извини. если мне надо. я сам обновлю в ручном режиме.

пт, 11 мар. 2022 г. в 17:10, J Arun Mani @.***>:

@LahimaGuru https://github.com/LahimaGuru Hi there. This repo is for Papirus icons and so you should check out Docker user groups on how to fix the warning. Because the steps involved will vary by a lot of degree.

With that,

  1. Install using the repository https://docs.docker.com/engine/install/debian/#install-using-the-repository uses the new method which shouldn't give you the warning. You should ask Docker devs for the updating guide.
  2. If you are a beginner, please skip Kali and use a general purpose OS like Debian, Fedora, Ubuntu or Linux Mint. Cheers.

— Reply to this email directly, view it on GitHub https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/issues/3006#issuecomment-1065147406, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXBQP4MJ4UAOZRQ64TV3ZYDU7NH5HANCNFSM5PO6DUBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.*** com>

maxengel commented 2 years ago

@varlesh: I've found that on a fresh install of Linux Mint 21, if I follow the instructions for (Ubuntu and Derivatives)[https://github.com/PapirusDevelopmentTeam/papirus-icon-theme#ubuntu-and-derivatives} I still get the error: W: http://ppa.launchpad.net/papirus/papirus/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.