LinuxQuestions.org
Review your favorite Linux distribution.
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-25-2020, 08:13 PM   #1
mkeating24
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
Question Slackpkg not updating -current packages


On a system that I recently upgraded from 14.2 to -current, slackpkg is acting up. For example (one of many), an update of the curl package came available a few days ago, and here are some relevant command outputs (all after running slackpkg update, of course):

Code:
root@swcurrent:~# grep n\/curl /var/lib/slackpkg/ChangeLog.txt 
n/curl-7.71.0-x86_64-1.txz:  Upgraded.
n/curl-7.70.0-x86_64-1.txz:  Upgraded.
[...about 38 truncated lines...]

root@swcurrent:~# ls -al /var/log/packages/curl*
-rw-r--r-- 1 root root 24029 Jun  9 12:51 /var/log/packages/curl-7.70.0-i586-1
So ChangeLog.txt knows that curl-7.71.0-x86_64-1 is available, and /var/log/packages knows that curl-7.70.0-i586-1 is currently installed. But when I try to upgrade curl, I get the following:
Code:
root@swcurrent:~# slackpkg upgrade curl

Checking local integrity... DONE
Looking for curl in package list. Please wait... DONE

No packages match the pattern for upgrade. Try:

        /usr/sbin/slackpkg install|reinstall
Here is some configuration-related information to show all uncommented lines in the following files:
Code:
root@swcurrent:~# grep -v ^# /etc/slackpkg/mirrors
https://mirrors.slackware.com/slackware/slackware64-current/

root@swcurrent:~# grep -v ^# /etc/slackpkg/blacklist
kernel-generic
kernel-generic-smp
kernel-huge
kernel-huge-smp
kernel-modules
kernel-modules-smp

root@swcurrent:~# grep -v ^# /etc/slackpkg/slackpkg.conf
TEMP=/var/cache/packages
WORKDIR=/var/lib/slackpkg
WGETFLAGS="--passive-ftp"
DELALL=on
CHECKMD5=on
CHECKGPG=on
CHECKSIZE=off
PRIORITY=( patches %PKGMAIN extra pasture testing )
POSTINST=on
ONLY_NEW_DOTNEW=off
ONOFF=on
DOWNLOAD_ALL=on
DIALOG=on
BATCH=off
DEFAULT_ANSWER=n
USE_INCLUDES=on
SPINNING=on
DIALOG_MAXARGS=139000
I have tried referencing other mirrors specifically (for example, the SlackBuilds mirror), but the result is the same: no upgrading. I deleted and reinstalled slackpkg using removepkg and installpkg (with slackpkg-2.83.0-noarch-4.txz) to no effect. I have removed /var/lib/slackpkg to have slackpkg recreate a fresh version.

Two other puzzle pieces that might help:
Code:
root@swcurrent:~# slackpkg search curl

Looking for curl in package list. Please wait... DONE

The list below shows all packages with name matching "curl".

[uninstalled] - pycurl-7.43.0.5-x86_64-1
[uninstalled] - curl-7.71.0-x86_64-1

You can search specific files using "slackpkg file-search file".
That is, slackpkg knows that curl has curl-7.71.0-x86_64-1 available, but it believes curl to be "uninstalled." However...
Code:
root@swcurrent:~# slackpkg remove curl
...does recognize curl-7.70.0-i586-1 as a package that can be removed. Interesting to me (and hoping I did not bury the lede), is the following:
Code:
root@swcurrent:~# slackpkg install curl

Looking for curl in package list. Please wait... DONE

No packages match the pattern for install. Try:

        /usr/sbin/slackpkg reinstall|upgrade
This is happening not just with curl but with nearly all packages. And it is a recent problem; the files in /var/log/removed_packages/ show that over a thousand packages got removed when getting upgraded on June 9. Even today, a couple of packages upgraded successfully (xxHash and kernel-source), but most did not.

Any ideas why this might be happening? What more information could I provide to help sleuth this out? Most of all... how might I fix this? ;-)

Many thanks in advance.
 
Old 06-27-2020, 12:39 PM   #2
z80
Member
 
Registered: Jul 2019
Location: Europe
Distribution: Slackware
Posts: 37

Rep: Reputation: 18
Did you run a "slackpkg update" prior to "slackpkg upgrade ...".
Without that slackpkg has no knowledge about the availabe updates.

Besides, the better way to upgrade current is:
(optional: slackpkg check-updates)
slackpkg update
slackpkg install-new
slackpkg upgrade-all

Otherwise you might miss required dependencies.
Make sure you run lilo/elilo after upgrading the kernel or blacklist the kernel alltogether.

A slackpkg clean-system to remove no longer needed packages should be run as well (once in a while).

And if you use additional packages (for example Alienbob's you should have a look at slackpkg+
 
Old 06-27-2020, 01:06 PM   #3
davjohn
Member
 
Registered: Jan 2017
Posts: 39

Rep: Reputation: Disabled
Do you have 32 or 64 bit Slackware?
From output you provided it seems you have 32 bit curl installed, but set 64 bit mirror.
You probably need to set 32 bit mirror https://mirrors.slackware.com/slackw...kware-current/ instead of https://mirrors.slackware.com/slackw...are64-current/
 
1 members found this post helpful.
Old 06-28-2020, 02:48 AM   #4
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,207

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Based on everything you posted I'd say you have not run 'slackpkg update'

If you note an new change log in your mirror you MUST run 'slackpkg update' to update the local database with the changes.
 
Old 07-06-2020, 06:07 PM   #5
mkeating24
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Cool

Quote:
Originally Posted by z80 View Post
Did you run a "slackpkg update" prior to "slackpkg upgrade ...".
Thanks for the reply. Yes... I have run "slackpkg update" prior to "slackpkg upgrade ..." or "slackpkg upgrade-all" but still some newly released packages do not upgrade (but a few do).

Now I am suspecting that davjohn may have hit it on the head: could it be possible that I installed 32-bit Slackware on this 64-bit capable system?? I have a 64-bit kernel running, and
Code:
:~# uname -srv
Linux 5.4.50 #1 SMP Wed Jul 1 13:27:59 CDT 2020
...but /var/lib/pkgtools/packages/ has all 32-bit package names.

Argh!!
I am a bit amazed now that this is still running. :-O

Quote:
Originally Posted by davjohn View Post
Do you have 32 or 64 bit Slackware?
I think this is the key. What a mixup!

This is what I get for keeping an old 32-bit installation DVD around for Slackware 14.2.

Thanks to all!!
 
Old 07-06-2020, 06:10 PM   #6
mkeating24
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Good thing this is one of my "have fun and experiment" workstations!
 
  


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 upgrade-all returns 'no packages to upgrade' after slackpkg-update has downloaded files san2ban Slackware 8 11-01-2019 05:44 AM
[SOLVED] Updating through slackpkg didnt upgraded the kernel in slackware64-current sinar.kk Slackware 10 02-26-2016 06:08 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
Updating packages w/out Slackpkg Konphine Slackware 4 09-25-2011 02:40 PM
Updating to -current with slackpkg macbeth8 Slackware 8 04-04-2008 07:14 PM

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

All times are GMT -5. The time now is 07:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration