LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-26-2023, 01:04 AM   #1
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-current
Posts: 515

Rep: Reputation: 291Reputation: 291Reputation: 291
Problem attempting to upgrade 15.0 to current


Houston, we have a problem.

Clipped from 'man slackpkg'
___________
Slackpkg can be used to upgrade the whole distribution.
The usual way is to do:

# slackpkg update
# slackpkg install-new
# slackpkg upgrade-all
# slackpkg clean-system
________________________________________________________________


This little video shows exactly where the attempted upgrade from 15.0
to current goes wrong during the 2nd step of 'slackpkg install-new'

http://glennmcc.org/Major_Problem.webm
 
Old 10-26-2023, 01:14 AM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
Yes, man slackpkg gives bad advice. UPGRADE.TXT tells:
Code:
1.  Upgrade your glibc shared libraries. This is important, or things
    might go haywire during the next part of the upgrade:

    upgradepkg --install-new /root/slackware/a/aaa_glibc-solibs-*.txz
In this post https://www.linuxquestions.org/quest...ml#post6434992 I tell slackpkg users run slackpkg upgrade aaa_glibc-solibs before slackpkg install-new. And in the previous post https://www.linuxquestions.org/quest...ml#post6434978 I explain why.
 
1 members found this post helpful.
Old 10-26-2023, 01:27 AM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
If you don't know how to fix it, try this:
Code:
ncftpget ftp://elektroni.phys.tut.fi/slackware64-current/slackware64/a/aaa_glibc-solibs-2.38-x86_64-3.txz
upgradepkg aaa_glibc-solibs-2.38-x86_64-3.txz
And then continue with slackpkg.
 
1 members found this post helpful.
Old 10-26-2023, 12:30 PM   #4
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-current
Posts: 515

Original Poster
Rep: Reputation: 291Reputation: 291Reputation: 291
[QUOTE=Petri Kaukasoina;6460943]Yes, man slackpkg gives bad advice. UPGRADE.TXT tells:
Code:
1.  Upgrade your glibc shared libraries. This is important, or things
    might go haywire during the next part of the upgrade:

    upgradepkg --install-new /root/slackware/a/aaa_glibc-solibs-*.txz
Thank you, I will try that.
 
Old 10-26-2023, 01:42 PM   #5
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-current
Posts: 515

Original Poster
Rep: Reputation: 291Reputation: 291Reputation: 291
Nope... still no good.

As soon as libunistring gets upgraded I then get several hundred of these errors
most of which have scrolled off-screen.

Code:
Package: xwininfo-1.1.6-x86_64-1.txz
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/x/xwininfo-1.1.6-x86_64-1.txz...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/x/xwininfo-1.1.6-x86_64-1.txz.asc...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
        ERROR - Package not installed! Not found error!

Package: xwud-1.0.6-x86_64-1.txz
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/x/xwud-1.0.6-x86_64-1.txz...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/x/xwud-1.0.6-x86_64-1.txz.asc...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
        ERROR - Package not installed! Not found error!

Package: xxHash-0.8.2-x86_64-1.txz
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/l/xxHash-0.8.2-x86_64-1.txz...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/l/xxHash-0.8.2-x86_64-1.txz.asc...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
        ERROR - Package not installed! Not found error!

Package: xz-5.4.4-x86_64-1.txz
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/a/xz-5.4.4-x86_64-1.txz...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/a/xz-5.4.4-x86_64-1.txz.asc...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
        ERROR - Package not installed! Not found error!

Package: yptools-4.2.3-x86_64-6.txz
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/n/yptools-4.2.3-x86_64-6.txz...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/n/yptools-4.2.3-x86_64-6.txz.asc...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
        ERROR - Package not installed! Not found error!

Package: zlib-1.3-x86_64-1.txz
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/l/zlib-1.3-x86_64-1.txz...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/l/zlib-1.3-x86_64-1.txz.asc...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
        ERROR - Package not installed! Not found error!

Package: zsh-5.9-x86_64-1.txz
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/ap/zsh-5.9-x86_64-1.txz...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/ap/zsh-5.9-x86_64-1.txz.asc...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
        ERROR - Package not installed! Not found error!

Package: zstd-1.5.5-x86_64-3.txz
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/l/zstd-1.5.5-x86_64-3.txz...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
                        Downloading http://192.168.1.11/slackware/slackware64-current/./slackware64/l/zstd-1.5.5-x86_64-3.txz.asc...
wget: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
        ERROR - Package not installed! Not found error!
I'll try again but this time I'll try waiting till all other packages have been upgraded before upgrading libunistring.

It's a good thing that I keep a 100% backup of the system to restore otherwise I'd need to re-install from scratch.

Last edited by glennmcc; 10-26-2023 at 01:50 PM.
 
Old 10-26-2023, 02:31 PM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
For some reason your slackpkg downloads one package at a time, then installs it, and downloads the next one, and so on.

You upgraded libunistring before wget. The old wget stopped working because it is built against the older libunistring you didn't have any longer. Without wget slackpkg didn't download any longer.

If you upgrade wget before libunistring, wget will stop working because it is built against the newer libunistring you don't have yet. Without wget slackpkg won't download any longer.

Because of this chicken-and-egg problem /etc/slackpkg/slackpkg.conf has this on:
Code:
# If this variable is set to "on", all files will be downloaded before the
# requested operation (install or upgrade) is performed.   If set to "off",
# then the files will be downloaded and the operation (install/upgrade)
# performed one by one.  Default=on
DOWNLOAD_ALL=on
Have you changed it?

Last edited by Petri Kaukasoina; 10-26-2023 at 02:32 PM.
 
1 members found this post helpful.
Old 10-26-2023, 02:42 PM   #7
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-current
Posts: 515

Original Poster
Rep: Reputation: 291Reputation: 291Reputation: 291
Quote:
Originally Posted by Petri Kaukasoina View Post
For some reason your slackpkg downloads one package at a time, then installs it, and downloads the next one, and so on.

You upgraded libunistring before wget. The old wget stopped working because it is built against the older libunistring you didn't have any longer. Without wget slackpkg didn't download any longer.

If you upgrade wget before libunistring, wget will stop working because it is built against the newer libunistring you don't have yet. Without wget slackpkg won't download any longer.

Because of this chicken-and-egg problem /etc/slackpkg/slackpkg.conf has this on:
Code:
# If this variable is set to "on", all files will be downloaded before the
# requested operation (install or upgrade) is performed.   If set to "off",
# then the files will be downloaded and the operation (install/upgrade)
# performed one by one.  Default=on
DOWNLOAD_ALL=on
Have you changed it?
Yes, I changed it to DOWNLOAD_ALL=off so that I can watch each package being upgraded.

I'll change it back to DOWNLOAD_ALL=on
 
Old 10-26-2023, 03:10 PM   #8
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Excellent instructions as always by Petri K.
I'm lazy. I would just back up my important things: docs, pictures, etc. and then download a slackware64-current ISO from tadgy and do a clean install of -current. Then restore your data from back-ups.
 
Old 10-26-2023, 03:32 PM   #9
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-current
Posts: 515

Original Poster
Rep: Reputation: 291Reputation: 291Reputation: 291
That did the job

The 2 'key points' for a successful upgrade from 15.0 to current are,

1) slackpkg upgrade aaa_glibc-solibs before upgrading anything else

2) be sure to have DOWNLOAD_ALL=on in /etc/slackpkg/slackpkg.conf

Thank you !


Might be a good idea to have this info in 'man slackpkg'

Last edited by glennmcc; 10-26-2023 at 03:33 PM.
 
1 members found this post helpful.
Old 10-26-2023, 07:05 PM   #10
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Good catch !

Since I had this problem following current a while back, I always keep a copy of my targeted Slackware tree(s) with rsync (thanks AlienBob !) and upgrade with basic
Code:
upgradepkg --terse *.t?z
I check the changelog for additions and deletions.
 
Old 10-27-2023, 11:36 AM   #11
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-current
Posts: 515

Original Poster
Rep: Reputation: 291Reputation: 291Reputation: 291
Hmmmm.... it seems that _this_ is not working correctly.

Code:
+--------------------------+
Mon Feb  8 05:13:26 UTC 2021

ap/slackpkg-15.0-noarch-1.txz:  Upgraded.
  These are some of the important changes (see the ChangeLog for more):
  Note that this slackpkg release contains a backwards-incompatible change to
  the blacklisting syntax (e.g. glibc ---> glibc-*). This changes the prior
  behavior of the blacklist function; previously, adding "glibc" to the
  blacklist would cause glibc, glibc-profile, glibc-zoneinfo, et al to be
  ignored by slackpkg. The new behavior is that *only* the glibc package is
  ignored. If you want to blacklist all packages whose names begin with glibc,
  you would need to add "glibc.*" to the blacklist now. Also note that any
  special characters, e.g. "+", will need to be escaped in the blacklist file.
  To blacklist entire package sets, a trailing slash is now required: e.g. kde/
  Another backwards-incompatibility warning: check-updates will now return 1 if
  there are updates available - this will make it easier to use this feature
  with cron (thanks to Peter Hyman).
  Added support for Slackware-AArch64 (thanks to Stuart Winter).

  Added aaa_glibc-solibs and aaa_libraries to the "do these first" routine. <----
[If that worked correctly, we _shouldn't_ need to first upgrade aaa_glibc-solibs manually before proceeding with an upgrade.]
  Thanks to Robby Workman for the new slackpkg release!
_________________

Last edited by glennmcc; 10-27-2023 at 11:38 AM.
 
Old 10-27-2023, 11:52 AM   #12
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
Quote:
Originally Posted by glennmcc View Post
Added aaa_glibc-solibs and aaa_libraries to the "do these first" routine. <----
[If that worked correctly, we _shouldn't_ need to first upgrade aaa_glibc-solibs manually before proceeding with an upgrade.]
Yes, it's taken care in slackpkg upgrade-all. Packages pkgtools, aaa_glibc-solibs, glibc-solibs, aaa_libraries, aaa_elflibs, readline, sed are in the "do these first" list. But before that you ran slackpkg install-new, and it only installs new 'Added' packages, it does not upgrade, so the "do these first" list was not considered. wget stopped working already when slackpkg install-new installed openssl11.
 
Old 10-27-2023, 12:34 PM   #13
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-current
Posts: 515

Original Poster
Rep: Reputation: 291Reputation: 291Reputation: 291
Well then, it _should_ work correctly and _not_ require the manual upgrade of aaa_glibc-solibs
if this is the order in which the upgrade is done ?

slackpkg update
slackpkg upgrade-all
slackpkg install-new
slackpkg clean-system
 
Old 10-27-2023, 12:39 PM   #14
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
This is the script I have been using to keep slackware up to date. It doesn't ask anything, so a good blacklist is a must.

If slackpkg or aaa_glibc-solibs has a new version, it upgrades them first before running install-new and upgrade-all.
Code:
#!/bin/sh

# use this only with a working /etc/slackpkg/blacklist

# afterwards, consider the .new files if exist, for example:
# slackpkg new-config

slackpkg check-updates 2> /dev/null | grep -E 'No updated packages|No news' && exit

if [ "$(/bin/id -u)" != 0 ]; then
  echo 'Run as root.'
  exit 1
fi

export TERSE=0

slackpkg -batch=on update

OLD=$(cd /var/adm/packages; echo slackpkg-*)
NEW=$(sed -n '0,/^ap\/\(slackpkg-.*\)\.txz:.*$/s//\1/p' /var/lib/slackpkg/ChangeLog.txt)
NEW=${NEW:-$OLD}
if [ "$OLD" != "$NEW" ]; then
  slackpkg -batch=on -default_answer=y upgrade slackpkg
  echo Check /etc/slackpkg config files. Continue?
  echo '<return> if ok'
  echo '<Ctrl-C> to stop'
  read line
  slackpkg -batch=on update
fi

OLD=$(cd /var/adm/packages; echo aaa_glibc-solibs-*)
NEW=$(sed -n '0,/^a\/\(aaa_glibc-solibs-.*\)\.txz:.*$/s//\1/p' /var/lib/slackpkg/ChangeLog.txt)
NEW=${NEW:-$OLD}
if [ "$OLD" != "$NEW" ]; then
  slackpkg -batch=on -default_answer=y upgrade aaa_glibc-solibs
fi

slackpkg -batch=on -default_answer=y install-new
slackpkg -batch=on -default_answer=y upgrade-all
slackpkg -batch=on -default_answer=y clean-system
slackpkg -batch=on new-config
 
2 members found this post helpful.
Old 10-27-2023, 12:41 PM   #15
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
Quote:
Originally Posted by glennmcc View Post
Well then, it _should_ work correctly and _not_ require the manual upgrade of aaa_glibc-solibs
if this is the order in which the upgrade is done ?

slackpkg update
slackpkg upgrade-all
slackpkg install-new
slackpkg clean-system
No. The correct order is this:

Code:
slackpkg update
slackpkg upgrade aaa_glibc-solibs
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
If you upgrade-all before install-new, you upgrade some packages to versions with new dependencies you don't yet have before install-new.

Last edited by Petri Kaukasoina; 10-27-2023 at 12:48 PM.
 
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
[Slackware64 15.1-current] KDE: attempting select application style menu entry crashes dchmelik Slackware 2 07-16-2022 11:54 PM
current+KDE 4.7.4 attempting to install kernel 3.1.5 aocab Slackware 9 02-02-2012 05:16 PM
Error Message When attempting upgrade to 8.04 lts ericbrown56 Linux - Newbie 5 01-13-2009 06:52 AM
Attempting to recover from Xandros SP2 upgrade jtoad Debian 3 07-20-2005 05:15 AM
Apt Hangs when attempting upgrade shane25119 Debian 5 06-16-2004 06:42 PM

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

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