LinuxQuestions.org
Visit Jeremy's Blog.
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 06-09-2021, 09:57 AM   #1
scorpion77
Member
 
Registered: Sep 2003
Distribution: Slackware64 current
Posts: 93

Rep: Reputation: 15
Cannot update with slackpkg+


Hi,

I just reinstalled Slackware64 using this current ISO (https://slackware.uk/people/alien-cu...64-current-iso).
So it's a fresh install, but unexpectedly slackpkg+ is not working. I'm using slackpkg+-1.7.6-noarch-5mt
I set verbose at level 3 on slackpkgplus.conf
If I run slackpkg update gpg, I got this:

Code:
Getting key from https://www.slackware.com/infra/keys/GPG-KEY
                        Slackware Linux Project's GPG key added



==============================================================================
  INFO! Debug informations
------------------------------------------------------------------------------
https://www.slackware.com/infra/keys/GPG-KEY --> OK
The temp directory /tmp/slackpkg.cjME7y will NOT be removed!
==============================================================================
Then I run slackpkg update, and I got this:

Code:
FATAL! No Slackware GPG-KEY imported.
If you are upgrading from an older release of slackpkg+, all keys must to be reimported.
Please run
  # slackpkg update gpg



==============================================================================
  INFO! Debug informations
------------------------------------------------------------------------------
The temp directory /tmp/slackpkg.0C5RO6 will NOT be removed!
==============================================================================
How is it possible? I have never had issues with slackpkg update gpg and slackpkg update commands.
How can I solve?
If I disable slackpkg+, slackpkg is running fine.

Thank you in advance,

Scorpion77
 
Old 06-09-2021, 11:28 AM   #2
gattocarlo
Member
 
Registered: Jan 2020
Posts: 37

Rep: Reputation: Disabled
I'm sorry I have no answer because I didn't try upgrading my system in the last month, but I think your problem may be related to a recently reported vulnerability with gpg-keys:

https://www.linuxquestions.org/quest...ed-4175694561/

which lead to the Mon Jun 7 18:53:49 UTC 2021 change log entry:

Code:
ap/slackpkg-15.0.5-noarch-1.txz: Upgraded.
       Add "--" option to "command cd" in bash completion file. (akinomyoga)
       shell-completions/slackpkg.bash: add "show-changelog".
       Import bash-completion file from upstream project.
       Added the new-config actions for specific files. (Piter PUNK)
       Harden slackpkg with respect to obtaining GPG key. (CRTS)
I didn't read that thread in its entirety but I think there you could find some hint to fix your problem.

I hope this may give you at least some little help.

Last edited by gattocarlo; 06-09-2021 at 11:29 AM. Reason: typos
 
Old 06-09-2021, 11:33 AM   #3
Linpassion
Member
 
Registered: Feb 2020
Posts: 107

Rep: Reputation: Disabled
Has you uncomment mirror file to choose ftp o http? I've use slackpkg under non current version by no problem.
Can you follow the official steps

https://docs.slackware.com/slackware:slackpkg

Last edited by Linpassion; 06-09-2021 at 11:36 AM.
 
Old 06-09-2021, 12:05 PM   #4
scorpion77
Member
 
Registered: Sep 2003
Distribution: Slackware64 current
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Linpassion View Post
Has you uncomment mirror file to choose ftp o http? I've use slackpkg under non current version by no problem.
Can you follow the official steps

https://docs.slackware.com/slackware:slackpkg
My slackpkgplus.conf is the same for years and has always worked.
 
Old 06-09-2021, 12:41 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,260

Rep: Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845
It's possible the change to the official slackpkg update broke slackpkg+. Hopefully someone else running the latest versions can chime in to see if theirs is working or broken. If it's broken, I imagine it will be patched within a day or two.
 
Old 06-09-2021, 01:00 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 6,143

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
It's possible the change to the official slackpkg update broke slackpkg+.
if this is the case, someone should better notify the slackpkg+ maintainer, zerouno.
 
Old 06-09-2021, 01:41 PM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,755

Rep: Reputation: 695Reputation: 695Reputation: 695Reputation: 695Reputation: 695Reputation: 695
FWIW, here is what I have installed, and working fine.

Code:
ls -l /var/lib/pkgtools/packages | grep slackpkg
-rw-r--r-- 1 root root 3.7K Jun  8 06:31 slackpkg-15.0.5-noarch-1
-rw-r--r-- 1 root root 1.5K May 27 04:57 slackpkg+-1.7.6-noarch-5m
I did an update to the June 7th updates and all worked as expected.
 
Old 06-09-2021, 02:18 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,260

Rep: Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845Reputation: 5845
Quote:
Originally Posted by ponce View Post
if this is the case, someone should better notify the slackpkg+ maintainer, zerouno.
I don't easily have the ability to check since I don't run -current. But it seems like camorri has tested it and it works fine with the new slackpkg update, so it seems OP's issue is not tied to the update.
 
Old 06-09-2021, 04:51 PM   #9
seb_62
LQ Newbie
 
Registered: Feb 2015
Location: North of France
Distribution: slackware 14.2 & current
Posts: 17

Rep: Reputation: Disabled
Same problem here : fresh install of current, slackpkg alone works great, the add of slackpkg+ lead to this strange behavior :
- no update of the gpg keys for alienbob and restricted area (uncommented as usual in the slackpkgplus.conf file),
- only update of the slackware gpg key
- but "slackpkg update" ask for the gpg key update...

Thanks for your advices

Séb
 
Old 06-09-2021, 11:53 PM   #10
truepatriot76
Member
 
Registered: Apr 2014
Location: California, USA
Distribution: slackware64-current
Posts: 123

Rep: Reputation: 84
Quote:
Originally Posted by seb_62 View Post
Same problem here : fresh install of current, slackpkg alone works great, the add of slackpkg+ lead to this strange behavior :
- no update of the gpg keys for alienbob and restricted area (uncommented as usual in the slackpkgplus.conf file),
- only update of the slackware gpg key
- but "slackpkg update" ask for the gpg key update...

Thanks for your advices

Séb
You can try a different mirror in /etc/slackpkg/slackpkgplus.conf. My ISP doesn't particularly like http://bear.alienbase.nl for some reason.

For -current64 you could use (for example):

MIRRORPLUS['alienbob']=http://slackware.uk/people/alien/sbrepos/current/x86_64/
 
Old 06-10-2021, 12:24 AM   #11
seb_62
LQ Newbie
 
Registered: Feb 2015
Location: North of France
Distribution: slackware 14.2 & current
Posts: 17

Rep: Reputation: Disabled
Thank you, but that doesn't work : even if the only mirror activated in slackpkg+ is the one for updating slackpkg+ itself, the behaviour I described is observed.
 
Old 06-10-2021, 12:43 AM   #12
truepatriot76
Member
 
Registered: Apr 2014
Location: California, USA
Distribution: slackware64-current
Posts: 123

Rep: Reputation: 84
what are the results for the following:

Code:
find /etc -iname *.new
I'm thinking you may possibly have a badly out of date /etc/slackpkg/slackpkgplus.conf or slackpkg.conf

Last edited by truepatriot76; 06-10-2021 at 12:50 AM.
 
Old 06-10-2021, 08:03 AM   #13
krisstoffe
LQ Newbie
 
Registered: Jun 2021
Location: Paris, France
Distribution: slackware64-curent
Posts: 1

Rep: Reputation: Disabled
I think the issue lies with get and import GPG keys. If your keys are up-to-date, no issue. But with a fresh Slackware-current install, as soon as you install slackpkgplus and declare additionnal mirrors (e.g. alienbob, etc ...), slackpkgplus is unable to grab the new GPG keys.

I'm not 100% sure, but I noticed that slackpkg-15.0.5-noarch-1 defines new functions named get_gpg_key and import_gpg_key which are not overrided in /usr/libexec/slackpkg/functions.d/slackpkgplus.sh

Last edited by krisstoffe; 06-10-2021 at 08:05 AM.
 
Old 06-10-2021, 10:02 AM   #14
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 740

Rep: Reputation: 293Reputation: 293Reputation: 293
Yep, slackpkg+ needs an upgrade due to the new gpg routines in slackpkg. As the OP reported, slackpkg update gpg works without slackpkg+. The output below is with the 'CHECKGPG=off' setting in slackpkg.conf:

Code:
root@laptop:/# slackpkg update gpg

    File: /tmp/slackpkg.kMppXY/gpgkey -> GPG-KEY              .. Downloading... 

pub  1024D/40102233 2003-02-26 Slackware Linux Project <security@slackware.com>
sub  1024g/4E523569 2003-02-26 [expires: ????-??-??]

    File: slackpkgplus         -> GPG-KEY              .. Downloading... 


                   !!! W A R N I N G !!!
    Repository 'slackpkgplus' does NOT contain the GPG-KEY
    You SHOULD disable GPG check by setting 'CHECKGPG=off'
    in /etc/slackpkg/slackpkg.conf or use slackpkg with
    '-checkgpg=off' : 'slackpkg -checkgpg=off install packge'



    File: restricted           -> GPG-KEY              .. Downloading... 


                   !!! W A R N I N G !!!
    Repository 'restricted' does NOT contain the GPG-KEY
    You SHOULD disable GPG check by setting 'CHECKGPG=off'
    in /etc/slackpkg/slackpkg.conf or use slackpkg with
    '-checkgpg=off' : 'slackpkg -checkgpg=off install packge'



    File: alienbob             -> GPG-KEY              .. Downloading... 


                   !!! W A R N I N G !!!
    Repository 'alienbob' does NOT contain the GPG-KEY
    You SHOULD disable GPG check by setting 'CHECKGPG=off'
    in /etc/slackpkg/slackpkg.conf or use slackpkg with
    '-checkgpg=off' : 'slackpkg -checkgpg=off install packge'


                        Slackware Linux Project's GPG key added

root@laptop:/#
Even ignoring the gpg warnings and continuing to download the 3rd party mirror files does no good. The net effect is the same. The 3rd party mirror files will be ignored by slackpkg & slackpkg+.

Code:
root@laptop:/# slackpkg update

Updating the package lists...
        Downloading...
                ChangeLogs
    File: slackware            -> ChangeLog.txt        .. Cached.
    File: slackpkgplus         -> ChangeLog.txt        .. Downloading... 
 Downloading... 
    File: restricted           -> ChangeLog.txt        .. Downloading... 
 Downloading... 
 Downloading... 
 Downloading... 
 Downloading... 
 Downloading... 
 Downloading... 
    File: alienbob             -> ChangeLog.txt        .. Downloading... 
 Downloading... 
 Downloading... 
 Downloading... 
 Downloading... 
 Downloading... 
 Downloading... 
    File: slackpkgplus         -> CHECKSUMS.md5        .. Downloading... 

                        !!! F A T A L !!!
    Repository 'slackpkgplus' FAILS the CHECKSUMS.md5 download
    The repository may be invalid and will be SKIPPED.

    File: restricted           -> CHECKSUMS.md5        .. Downloading... 

                        !!! F A T A L !!!
    Repository 'restricted' FAILS the CHECKSUMS.md5 download
    The repository may be invalid and will be SKIPPED.

    File: alienbob             -> CHECKSUMS.md5        .. Downloading... 

                        !!! F A T A L !!!
    Repository 'alienbob' FAILS the CHECKSUMS.md5 download
    The repository may be invalid and will be SKIPPED.


                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)? y

                List of all files
    File: patches              -> MANIFEST.bz2         .. Cached.
    File: slackware            -> MANIFEST.bz2         .. Cached.
    File: extra                -> MANIFEST.bz2         .. Cached.
    File: pasture              -> MANIFEST.bz2         .. Cached.
    File: testing              -> MANIFEST.bz2         .. Cached.
                Checksums
    File: slackware            -> CHECKSUMS.md5        .. Cached.
    File: slackware            -> CHECKSUMS.md5.asc    .. Cached.

                WARNING: Without CHECKGPG, we can't check if this file is
                         signed by:

                         Slackware Linux Project <security@slackware.com>.

                         Enabling CHECKGPG is highly recommended for best
                         security.

                Package List
    File: slackware            -> FILELIST.TXT         .. Cached.
                Package descriptions
    File: patches              -> PACKAGES.TXT         .. Cached.
    File: slackware            -> PACKAGES.TXT         .. Cached.
    File: extra                -> PACKAGES.TXT         .. Cached.
    File: pasture              -> PACKAGES.TXT         .. Cached.
    File: testing              -> PACKAGES.TXT         .. Cached.
        Formatting lists to slackpkg style...
                Package List: using CHECKSUMS.md5 as source
                Package descriptions


==============================================================================
  WARNING! One or more errors occurred while slackpkg was running
------------------------------------------------------------------------------
slackpkgplus: SKIPPING Invalid repository (fails to download CHECKSUMS.md5)
    ( http://slakfinder.org/slackpkg+dev/CHECKSUMS.md5 )
restricted: SKIPPING Invalid repository (fails to download CHECKSUMS.md5)
    ( http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.2/x86/CHECKSUMS.md5 )
alienbob: SKIPPING Invalid repository (fails to download CHECKSUMS.md5)
    ( http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86/CHECKSUMS.md5 )

root@laptop:/#
Always fun when upstream changes affect downstream work. I run into different downstream issues with autoslackpkg too. I'm waiting for slackpkg & slackpkg+ to settle down for 15.0 before releasing a new autoslackpkg. In the meantime lots of refactoring is taking place!
 
Old 06-10-2021, 10:50 AM   #15
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,919

Rep: Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802
Yep, it's broke.

slackpkg - version 15.0.5 / slackpkg+ 1.7.6

Made a back up of /var/lib/slackpkg, then deleted it. Here is what happens:
Code:
slackpkg update gpg

You have selected a mirror for Slackware -current in /etc/slackpkg/mirrors,
but Slackware version 14.2+ appears to be installed.

Slackware -current is the development (i.e. unstable) tree.

Is this really what you want?

To confirm your choice, press Y, else press N. Then, press Enter: y

Slackpkg will not show this warning again unless you remove the
//var/lib/slackpkg/current file. 

                        Getting key from https://www.slackware.com/infra/keys/GPG-KEY
                        Slackware Linux Project's GPG key added

slackpkg update

FATAL! No Slackware GPG-KEY imported.
Please run
  # slackpkg update gpg
When you run slackpkg update gpg, you will get this every time.
Code:
slackpkg update gpg

                        Getting key from https://www.slackware.com/infra/keys/GPG-KEY
                        Slackware Linux Project's GPG key added
The following is after turning off slackpkg+

Code:
SLACKPKGPLUS=off slackpkg update gpg

                        Getting key from https://www.slackware.com/infra/keys/GPG-KEY
                        Slackware Linux Project's GPG key added

:/var/lib/slackpkg# ls -l
total 4
drwxr-xr-x 2 root root 4096 Jun 10 23:26 cache/
-rw-r--r-- 1 root root    0 Jun 10 23:26 current
-rw-r--r-- 1 root root    0 Jun 10 23:26 install.log

:/var/lib/slackpkg# SLACKPKGPLUS=off slackpkg update 

Updating the package lists...
        Downloading...
                        Linking /home/slackware/slackware64-current/CHECKSUMS.md5.asc...
Files //var/lib/slackpkg/CHECKSUMS.md5.asc and /tmp/slackpkg.Ed9m2y/CHECKSUMS.md5.asc differ

        Downloading...
                        Linking /home/slackware/slackware64-current/ChangeLog.txt...
                List of all files
                        Linking /home/slackware/slackware64-current/patches/MANIFEST.bz2...
                        Linking /home/slackware/slackware64-current/testing/MANIFEST.bz2...
                        Linking /home/slackware/slackware64-current/slackware64/MANIFEST.bz2...
                        Linking /home/slackware/slackware64-current/extra/MANIFEST.bz2...
                        Linking /home/slackware/slackware64-current/pasture/MANIFEST.bz2...
                Checksums
                        Linking /home/slackware/slackware64-current/CHECKSUMS.md5...
                        Linking /home/slackware/slackware64-current/CHECKSUMS.md5.asc...
                Package List
                        Linking /home/slackware/slackware64-current/FILELIST.TXT...
                Package descriptions
                        Linking /home/slackware/slackware64-current/patches/PACKAGES.TXT...
                        Linking /home/slackware/slackware64-current/testing/PACKAGES.TXT...
                        Linking /home/slackware/slackware64-current/slackware64/PACKAGES.TXT...
                        Linking /home/slackware/slackware64-current/extra/PACKAGES.TXT...
        Formatting lists to slackpkg style...
                Package List: using CHECKSUMS.md5 as source
                Package descriptions

:/var/lib/slackpkg# ls -l
total 6616
-rw-r--r-- 1 root root 1075278 Jun 10 23:34 CHECKSUMS.md5
-rw-r--r-- 1 root root     163 Jun 10 23:34 CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 1522690 Jun 10 23:34 ChangeLog.txt
-rw-r--r-- 1 root root      11 Jun 10 23:34 LASTUPDATE
-rw-r--r-- 1 root root  885715 Jun 10 23:34 PACKAGES.TXT
drwxr-xr-x 2 root root    4096 Jun 10 23:26 cache/
-rw-r--r-- 1 root root       0 Jun 10 23:26 current
-rw-r--r-- 1 root root   22355 Jun 10 23:34 extra-filelist.gz
-rw-r--r-- 1 root root       0 Jun 10 23:26 install.log
-rw-r--r-- 1 root root      21 Jun 10 23:34 patches-filelist.gz
-rw-r--r-- 1 root root  141534 Jun 10 23:34 pkglist
-rw-r--r-- 1 root root 3096453 Jun 10 23:34 slackware64-filelist.gz
-rw-r--r-- 1 root root      21 Jun 10 23:34 testing-filelist.gz
root@racermach:/var/lib/slackpkg# slackpkg update gpg

                        Getting key from https://www.slackware.com/infra/keys/GPG-KEY
                        Slackware Linux Project's GPG key added
NOTE: With my restored /var/lib/slackpkg directory I can still use slackpkg with slackpkg+ with no issues aside from using 'slackpkg update gpg' which produces this output.
Code:
root@racermach:~# slackpkg update gpg

                        Getting key from https://www.slackware.com/infra/keys/GPG-KEY
                        Slackware Linux Project's GPG key added
This is the listing of /var/lib/slackpkg/ as restored.
Code:
:/var/lib/slackpkg# ls -l
total 9752
-rw-r--r-- 1 root root 1650054 Jun 10 23:38 CHECKSUMS.md5
-rw-r--r-- 1 root root     469 Jun 10 23:38 CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 1522690 Jun 10 23:38 ChangeLog.txt
drwxr-xr-x 2 root root    4096 Jun 10 23:38 ChangeLogs/
-rw-r--r-- 1 root root 1445085 Jun 10 23:38 PACKAGES.TXT
-rw-r--r-- 1 root root 1583791 Jun 10 23:38 SLACKPKGPLUS_alienbob-filelist.gz
-rw-r--r-- 1 root root      21 Jun 10 23:38 SLACKPKGPLUS_justpkgs-filelist.gz
-rw-r--r-- 1 root root  161005 Jun 10 23:38 SLACKPKGPLUS_multilib-filelist.gz
-rw-r--r-- 1 root root  152274 Jun 10 23:38 SLACKPKGPLUS_nonslack-filelist.gz
-rw-r--r-- 1 root root   22246 Jun 10 23:38 SLACKPKGPLUS_restricted-filelist.gz
-rw-r--r-- 1 root root      21 Jun 10 23:38 SLACKPKGPLUS_slackpkgbeta-filelist.gz
-rw-r--r-- 1 root root     324 Jun 10 23:38 SLACKPKGPLUS_slackpkgplus-filelist.gz
drwxr-xr-x 2 root root    4096 May 29 00:25 cache/
-rw-r--r-- 1 root root       0 May 29 00:24 current
-rw-r--r-- 1 root root   22355 Jun 10 23:38 extra-filelist.gz
drwxr-xr-x 2 root root    4096 May 29 00:25 gpg/
-rw-r--r-- 1 root root   17001 Jun 10 22:09 install.log
-rw-r--r-- 1 root root      21 Jun 10 23:38 patches-filelist.gz
-rw-r--r-- 1 root root  255871 Jun 10 23:38 pkglist
-rw-r--r-- 1 root root 3096453 Jun 10 23:38 slackware64-filelist.gz
-rw-r--r-- 1 root root      21 Jun 10 23:38 testing-filelist.gz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] slackpkg is not able to update due to a certificate error. Post install, slackpkg running for 1st time (Slackware 14.2). fighter_fish Slackware - Installation 2 02-07-2021 09:27 PM
SARPI on Pi3 - Ran slackpkg update & slackpkg upgrade-all and now won't boot, can't find init petejc Slackware - ARM 11 03-25-2020 04:30 AM
[SOLVED] Slackpkg upgrade-all returns 'no packages to upgrade' after slackpkg-update has downloaded files san2ban Slackware 8 11-01-2019 05:44 AM
[SOLVED] [ENCHANCEMENT] slackpkg+: do not show the notices "pkglist is older than 24h..." and "remember to re-run 'slackpkg update''..."... yars Slackware 1 01-09-2016 09:56 AM

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

All times are GMT -5. The time now is 04:50 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