LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2017, 10:33 AM   #1
nodir
Member
 
Registered: May 2016
Posts: 222

Rep: Reputation: Disabled
how to slackpkg update gpg ?


Code:
ROOT# slackpkg upgrade-all

You need the GPG key of Slackware Linux Project <security@slackware.com>.
To download and install that key, run:

	# slackpkg update gpg

You can disable GPG checking too, but it is not a good idea.
To disable GPG, edit slackpkg.conf and change the value of the CHECKGPG
variable to off - you can see an example in the original slackpkg.conf.new
file distributed with slackpkg.


ROOT# slackpkg update gpg

			Downloading http://bear.alienbase.nl/mirrors/slackware/slackware-14.2/GPG-KEY...
--2017-04-10 17:28:27--  http://bear.alienbase.nl/mirrors/slackware/slackware-14.2/GPG-KEY
Resolving bear.alienbase.nl... 163.172.25.142
Connecting to bear.alienbase.nl|163.172.25.142|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1572 (1.5K)
Saving to: ‘/tmp/slackpkg.7lNcI1/gpgkey’

/tmp/slackpkg.7lNcI1/gpgkey             100%[=============================================================================>]   1.54K  --.-KB/s    in 0s      

2017-04-10 17:28:27 (58.3 MB/s) - ‘/tmp/slackpkg.7lNcI1/gpgkey’ saved [1572/1572]


ROOT#
If i run slackpkg upgrade-all again, i get the same error.
thanks in advance.
 
Old 04-10-2017, 10:43 AM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Please read the error output again.

Especially this part.

Code:
You need the GPG key of Slackware Linux Project <security@slackware.com>.
To download and install that key, run:

	# slackpkg update gpg
Edit: Maybe I need to read better too?

Last edited by orbea; 04-10-2017 at 10:45 AM.
 
Old 04-10-2017, 10:44 AM   #3
nodir
Member
 
Registered: May 2016
Posts: 222

Original Poster
Rep: Reputation: Disabled
As you can see i ran the command, but the errors stays. That *is* the problem.
 
Old 04-10-2017, 10:47 AM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Sorry, its a bit too early for me it seems.

Is it the specific mirror? Does it still occur if you use:

ftp://ftp.osuosl.org/.2/slackware/slackware64-14.2/

Of course make sure the slackware version and architecture match.
 
Old 04-10-2017, 10:50 AM   #5
nodir
Member
 
Registered: May 2016
Posts: 222

Original Poster
Rep: Reputation: Disabled
I am using current, there doesn't seem to be osuosl mirror for it.

btw: slackpkg update gpg outputs it would save the file to ‘/tmp/slackpkg.BzU9yL/gpgkey’,
but there isn't a slackpkg.BzU9yL directory at all (hence no gpgkey either)

edit:
I found http://ftp.osuosl.org/.2/slackware/slackware-current/
but it doesn't help.

Last edited by nodir; 04-10-2017 at 10:53 AM.
 
Old 04-10-2017, 11:19 AM   #6
BigTig
Member
 
Registered: Aug 2015
Posts: 61

Rep: Reputation: Disabled
Are you running slackpkg update AFTER running slackpkg update gpg and BEFORE running slackpkg upgrade-all? I ask because I was having a similar problem recently, and it was simply because I neglected to do this...
 
Old 04-10-2017, 11:30 AM   #7
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Well, the reason why you don't see the temp directory or gpg key is because slackpkg deletes that directory after the command is run.

slackpkg has the following commands that get executed when you run `slackpkg update gpg`:

Code:
getfile ${SOURCE}GPG-KEY $TMPDIR/gpgkey
gpg --yes --batch --delete-key "$SLACKKEY" &>/dev/null
gpg --import $TMPDIR/gpgkey &>/dev/null && \
echo -e "\t\t\tSlackware Linux Project's GPG key added"
(These are lines 301-304 in slackpkg.) It seems to me like something must be going wrong in these lines. Perhaps temporarily turning off the stdout and stderr redirection to /dev/null would shed some light on the issue. In other words, change those lines to:

Code:
getfile ${SOURCE}GPG-KEY $TMPDIR/gpgkey
gpg --yes --batch --delete-key "$SLACKKEY"
gpg --import $TMPDIR/gpgkey && \
echo -e "\t\t\tSlackware Linux Project's GPG key added"
Then try `slackpkg update gpg` again and see if there is any enlightening error message.

Last edited by montagdude; 04-10-2017 at 11:33 AM.
 
1 members found this post helpful.
Old 04-10-2017, 11:38 AM   #8
nodir
Member
 
Registered: May 2016
Posts: 222

Original Poster
Rep: Reputation: Disabled
Code:
ROOT# getfile ${SOURCE}GPG-KEY $TMPDIR/gpgkey
bash: getfile: command not found
ROOT# slackpkg search getfile

awk: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
Looking for getfile in package list. Please wait... DONE

No package name matches the pattern.
Pretty lost.

editing /usr/sbin/slackpkg gives.
Code:
ROOT# slackpkg update gpg

			Downloading http://ftp.mirrorservice.org/sites/ftp.slackware.com/pub/slackware/slackware-current/GPG-KEY...
--2017-04-10 18:39:27--  http://ftp.mirrorservice.org/sites/ftp.slackware.com/pub/slackware/slackware-current/GPG-KEY
Resolving ftp.mirrorservice.org... 212.219.56.184, 2001:630:341:12::184
Connecting to ftp.mirrorservice.org|212.219.56.184|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1572 (1.5K)
Saving to: ‘/tmp/slackpkg.Ihaplm/gpgkey’

/tmp/slackpkg.Ihaplm/gpgkey             100%[=============================================================================>]   1.54K  --.-KB/s    in 0s      

2017-04-10 18:39:27 (44.4 MB/s) - ‘/tmp/slackpkg.Ihaplm/gpgkey’ saved [1572/1572]

gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory

ROOT#

Last edited by nodir; 04-10-2017 at 11:42 AM.
 
Old 04-10-2017, 11:40 AM   #9
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
I meant just change those lines in /usr/sbin/slackpkg, don't try to enter them yourself from the command line. It won't work that way.
 
Old 04-10-2017, 11:43 AM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by nodir View Post
Code:
awk: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
That's not a good error. This says you're missing the readline and aaa_elflibs packages, as that file is containted in both of them.

Did you already run slackpkg upgrade-all, but maybe had the wrong mirror picked (32bit instead of 64bit or vice versa)? This could install the wrong version of packages and could break a lot of things in your install. This could easily lead to issues preventing the gpg key from being properly imported.
 
Old 04-10-2017, 11:44 AM   #11
nodir
Member
 
Registered: May 2016
Posts: 222

Original Poster
Rep: Reputation: Disabled
yup, figured it out and edited the previous post.
errror message stays round the lines of
Code:
gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
the complete output is in the previous post.
 
Old 04-10-2017, 11:47 AM   #12
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Yeah, something's buggered-up good.
 
Old 04-10-2017, 11:47 AM   #13
nodir
Member
 
Registered: May 2016
Posts: 222

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
That's not a good error. This says you're missing the readline and aaa_elflibs packages, as that file is containted in both of them.

Did you already run slackpkg upgrade-all, but maybe had the wrong mirror picked (32bit instead of 64bit or vice versa)? This could install the wrong version of packages and could break a lot of things in your install. This could easily lead to issues preventing the gpg key from being properly imported.
I didn't change the mirrors before the error occured.
After that i changed them, but couldn't run "slackpkg upgrade-all" anymore, hence i can't have run it.
 
Old 04-10-2017, 11:48 AM   #14
nodir
Member
 
Registered: May 2016
Posts: 222

Original Poster
Rep: Reputation: Disabled
to make it short: the install is broken beyond repair?
 
Old 04-10-2017, 11:56 AM   #15
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Well, it's hard to tell what exactly has happened to your system. Before scrapping it completely you could try reinstalling the aaa_elflibs and readline packages. I don't think slackpkg will work, but you can try that first. If that fails, try getting them from your installation media or a mirror (but make sure you are using the package for the correct architecture - 32 bit or 64 bit). Then use:

Code:
upgradepkg --reinstall --install-new /path/to/txz/file
where you replace /path/to/txz/file with the actual path. I'm not sure if upgradepkg will work or not with your system in its current state, but it's also worth a try.

But I think it's quite possible that those are not the only things that are messed up with your system.

Last edited by montagdude; 04-10-2017 at 11:58 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'slackpkg update' gets 'gpg fail.' What to do? Martha Adams Linux - Security 4 05-19-2016 08:19 PM
[SOLVED] Slackpkg update error - gpg signature on cheksum stoa Slackware 2 06-13-2015 05:28 PM
Slackpkg refuses to update - always claims a GPG error black hole sun Slackware 14 09-05-2011 12:30 PM
[SOLVED] slackpkg gpg problems Josh000 Slackware 20 03-08-2011 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration