You are not logged in.

#1 2017-10-20 08:01:30

Intradastingly
Member
Registered: 2017-10-20
Posts: 5

Error corrupted database(PGP signature)) unknown trust. (SOLVED)

was trying to install sublime-text on my system with this
https://www.sublimetext.com/docs/3/linu … ories.html

And it for some reason it messed up the key signatures.
I can't install new programs now, and nothing I've tried works.

This is what I get every time I try to pacman -S.
error: sublime-text: signature from "Sublime HQ Pty Ltd <support@sublimetext.com>" is unknown trust
error: database 'sublime-text' is not valid (invalid or corrupted database (PGP signature))

I've tried the pacman-key --init thing. As well as the dirmngr_ldapservers.conf file fix. No work.

Any help would be much appreciated!

Last edited by Intradastingly (2017-10-20 14:30:42)

Offline

#2 2017-10-20 08:48:01

Intradastingly
Member
Registered: 2017-10-20
Posts: 5

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

Nevermind I figured it out.

I just deleted the sublime-text repository entry at the end of the /etc/pacman.conf.

Offline

#3 2017-10-20 12:39:40

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

You need to install using a supported package or build your own PKGBUILD. Installing software outside of Arch's package manager is waiting for a problem to happen.

Remove sublime and whatever else that installer did to your system, then install sublime from the AUR -- OR -- create your own PKGBUILD for it.

Also, you should mark this thread as [SOLVED] by editing your first post and appending [SOLVED] to the title.

Last edited by mrunion (2017-10-20 12:40:52)


Matt

"It is very difficult to educate the educated."

Offline

#4 2017-10-20 14:29:48

Intradastingly
Member
Registered: 2017-10-20
Posts: 5

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

Thanks for the feedback!

Offline

#5 2017-10-20 18:31:31

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

mrunion wrote:

You need to install using a supported package or build your own PKGBUILD. Installing software outside of Arch's package manager is waiting for a problem to happen.

Remove sublime and whatever else that installer did to your system, then install sublime from the AUR -- OR -- create your own PKGBUILD for it.

Also, you should mark this thread as [SOLVED] by editing your first post and appending [SOLVED] to the title.

What.

"I just deleted the sublime-text repository entry at the end of the /etc/pacman.conf."

Sublime Text offers a pacman repository for Arch Linux users to install their proprietary program from. That's not an installer.

Their instructions are:

curl -O https://download.sublimetext.com/sublimehq-pub.gpg && sudo pacman-key --add sublimehq-pub.gpg && sudo pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg
echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | sudo tee -a /etc/pacman.conf

Which is pretty darn reasonable when it comes to unofficial repos with mysterious packages. tongue

...

I don't know how pacman-key --add ... && pacman-key --lsign-key ... would mess up *other* packages though. And this is a purely gpg/pacman-key issue.

What does pacman-key --list-key 8A8F901A report?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#6 2017-10-20 18:40:15

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

Eschwartz wrote:

I don't know how pacman-key --add ... && pacman-key --lsign-key ... would mess up *other* packages though. And this is a purely gpg/pacman-key issue.

What does pacman-key --list-key 8A8F901A report?

pacman refuses to start if any repository is configured with a signature and the signature is not trusted or invalid. I guess for some reason the sublime key is not added correctly to the keyring.

Last edited by progandy (2017-10-20 18:41:59)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2017-10-20 19:41:07

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

Oh, good point, pacman will ignore a missing database signature (since official repos aren't signed), but if one is available it will check the validity.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2017-10-20 19:55:55

Intradastingly
Member
Registered: 2017-10-20
Posts: 5

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

pacman-key --list-key 8A8F901A gives me this.

gpg: Note: trustdb not writable
pub   rsa4096 2017-05-08 [SCEA]
      1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A
uid           [ unknown] Sublime HQ Pty Ltd <support@sublimetext.com>
sub   rsa4096 2017-05-08 [S]

Offline

#9 2017-10-20 20:33:26

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

Did you sign it with --lsign-key? What is the output of

pacman-key --list-sig 8A8F901A

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#10 2017-10-20 20:39:59

Intradastingly
Member
Registered: 2017-10-20
Posts: 5

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

No I didn't, here is the output.

gpg: Note: trustdb not writable
pub   rsa4096 2017-05-08 [SCEA]
      1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A
uid           [ unknown] Sublime HQ Pty Ltd <support@sublimetext.com>
sig 3        ADAE6AD28A8F901A 2017-05-08  Sublime HQ Pty Ltd <support@sublimetext.com>
sub   rsa4096 2017-05-08 [S]
sig          ADAE6AD28A8F901A 2017-05-08  Sublime HQ Pty Ltd <support@sublimetext.com>

Offline

#11 2017-10-20 21:12:41

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Error corrupted database(PGP signature)) unknown trust. (SOLVED)

There is the problem. Since you did not sign the key, pacman does not trust it and aborts when it tries to verify the sublime-text repository.

Edit: By the way, the instructions for [sublime-text] include the --lsign-key command.

Last edited by progandy (2017-10-20 21:16:31)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB