You are not logged in.

#1 2017-03-05 16:26:26

anselm
Banned
Registered: 2016-05-11
Posts: 120

[SOLVED] I need to update an old install: Public keyring not found

I had to bring out an old computer because newer one run down. Older PC has a very old installation of Arch Linux. Several years old, because I didn't use it after the install. I try to update the packages now. However I get an error message:

Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine

After trying the mentioned command:

 sudo pacman-key --init
Cannot find the gpg binary required for all pacman-key operations.

When I try to install gnupg which provide the binary, then I get of course the original error message:

warning: Public keyring not found; have you run 'pacman-key --init'
error: GPGME error: Invalid crypto engine

Last edited by anselm (2017-03-06 08:51:30)

Offline

#2 2017-03-05 16:47:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] I need to update an old install: Public keyring not found

Not an Installation issue, moving to NC..


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-03-05 16:55:18

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: [SOLVED] I need to update an old install: Public keyring not found

Somehow I need to provide a GPG binary but without installation.

Offline

#4 2017-03-05 17:31:50

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: [SOLVED] I need to update an old install: Public keyring not found

Maybe should I play with the Siglevel in pacman.conf?

Offline

#5 2017-03-05 17:37:22

loqs
Member
Registered: 2014-03-06
Posts: 18,206

Re: [SOLVED] I need to update an old install: Public keyring not found

When was the last full system update? ( check /var/log/pacman.log )
Do you have recent arch boot media?

Offline

#6 2017-03-05 17:39:28

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: [SOLVED] I need to update an old install: Public keyring not found

Problem solved! I had to set siglevel to Never

[core]
SigLevel = Never

and the update pacman

sudo pacman -Syy pacman

Offline

#7 2017-03-05 17:45:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,287

Re: [SOLVED] I need to update an old install: Public keyring not found

...which likely broke things.

For anyone else coming across this, that is not the answer.

Offline

#8 2017-03-05 17:57:14

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: [SOLVED] I need to update an old install: Public keyring not found

After that I was able to install gnupg, but another problem arises when invoking pacman-key --init

gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
chmod: cannot access ‘/etc/pacman.d/gnupg/trustdb.gpg’: No such file or directory
gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory

Offline

#9 2017-03-05 17:58:04

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: [SOLVED] I need to update an old install: Public keyring not found

Scimmia wrote:

...which likely broke things.

For anyone else coming across this, that is not the answer.


Oh, I see. Then what should do?

Offline

#10 2017-03-05 18:12:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,287

Re: [SOLVED] I need to update an old install: Public keyring not found

The best thing to do would be to fix the gpg issue. Boot an install disk and use pacman's root option along with the ALA to reinstall the things that were broken, using the versions available at the time. Then update incrementally using the ALA.

Offline

#11 2017-03-05 19:16:41

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: [SOLVED] I need to update an old install: Public keyring not found

Finally I managed to do the system update, but there is another problem now: neither Chromium nor Opera browser don't start

When I try to run from a console:

opera
Illegal instruction (core dumped)

Same with Cromium

chromium
Illegal instruction (core dumped)

Offline

#12 2017-03-05 19:32:04

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: [SOLVED] I need to update an old install: Public keyring not found

Too bad, I have AMD Athlon without SSE2 instuction set. Neither Opera nor Chromium won't work.

Offline

#13 2017-03-05 19:37:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] I need to update an old install: Public keyring not found

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2017-03-05 21:28:29

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] I need to update an old install: Public keyring not found

Scimmia wrote:

The best thing to do would be to fix the gpg issue. Boot an install disk and use pacman's root option along with the ALA to reinstall the things that were broken, using the versions available at the time. Then update incrementally using the ALA.

Please either spell out acronyms or provide a link when helping new(ish) users. Even I had no idea what "ALA" was at first (I still call it ARM in my head).

For the curious:
ALA: Arch Linux Archive

It's an archive of old packages that a user can use to incrementally update the system by stepping through upgrades chronologically.


@anelm
Use the edit function to append info to your last post instead of bumping the thread. Please read our forum policy.

Given the errors that you are getting, you may have incompatible libraries installed on your system. If the system is inconsistent then it may not be able to upgrade itself correctly. Follow Scimmia's suggestion to boot the install disk and use it to upgrade your system. Use "pacman -Syyuu" when you do and it should fix everything. Scan the news archive on the main website for any manual changes that may be required.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#15 2017-03-05 23:56:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,287

Re: [SOLVED] I need to update an old install: Public keyring not found

anselm wrote:

Too bad, I have AMD Athlon without SSE2 instuction set. Neither Opera nor Chromium won't work.

You've seen the news on the front page that i686 support is likely going away, right?

Xyne, thanks for providing the links, I'll keep that in mind for next time.

Offline

Board footer

Powered by FluxBB