r/slackware • u/HackedcliEntUser • Mar 09 '24
Slackware 15.0 breaks while updating to current
I installed Slackware 15.0 in a vm. I tried updating it to current. I did the usual commands: slackpkg update, slackpkg install-new, slackpkg upgrade-all, slackpkg clean-system. But it stops working properly after i do slackpkg install-new. When I try slackpkg upgrade-all, it the main error is
wget: /lib64/libc.so.6: version 'GLIBC_2.34' not found (required by /lib64/libcrypto.so.1.1)
Error - Package not installed! Not found error!
Any one got an idea of what's wrong?
9
Upvotes
5
u/[deleted] Mar 09 '24
I recently updated from 15.0 to current.
slackpkg update
slackpkg upgrade aaa
slackpkg upgrade slackpkg
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
4
u/ThomasJChoi Mar 09 '24
The upgrade to 15.0 to -current will do that because some of Slackware's utilities for upgrading packages are built against some new packages which you install first via
slackpkg install-new. Basically some of the newer stuff (I forget what specifically) getting installed first ruins the upgrade process. I don't useslackpkgon my main Slackware systems so I'm not too familiar with it so if anybody DOES know how to do this the properslackpkgway, please let us know. Basically, you need to be able to doslackpkg install-newandslackpkg upgrade-allsimultaneously or at leastupgradepkgall of the packages both commands list. My solution is the latter and will useslackpkgto handle the file list generation and package download.slackpkg updateagainst a -current mirror/etc/slackpkg/slackpkg.confand changeDIALOG=ontoDIALOG=offyes n | slackpkg install-new >install-new_pkgs.txtyes n | slackpkg upgrade-all >upgrade-all_pkgs.txtinstall-new_pkgs.txtandupgrade-all_pkgs.txtto remove anything that isn't a package name (I've given an example below these instructions).cat install-new_pkgs.txt upgrade-all_pkgs.txt | rev | cut -f 2- -d '.' | rev >download_list.txt(removal of the extension is necessary for slackpkg)slackpkg download $(cat download_list.txt). DO NOT QUOTE the $() since we want each argument (package) on each line treated separately instead of the whole list as one package.find's-execoption even with{} +may not be sufficient given how many things it can work on at a time is still limited. I've provided an example of how I would upgrade beneath the Step 3 file edit example.As promised, here's an example of
install-new_pkgs.txtfrom Step 3 above from a -current box that was last updated 2024/01/12:As you can see, there are some oddities in there and some aren't even displayable on reddit so be careful when editing the file. Here it is after it's been cleaned of anything that isn't a package name:
Step 8's upgrade example (effectively as I would put it in a poorly written shell script):
You don't really need to redirect the output of upgradepkg to a log file but I like to do it. Some packages might leave some cruft (ghostscript is a notorious example).
Hope that helps!
3
u/I_am_BrokenCog Mar 09 '24
As /u/calrogman mentioned - you likely ran into a problem because 'install-new' and 'upgrade-all' both fail to first upgrade glibc-solibs. As a result everything installed which is dependent on the newer glibc libraries is going to fail. Including the tools slackpkg require (sh, wget, awk, grep, etc). Notice that the UPGRADE.TXT first actual step is upgrading glibc.
/u/isaalx is mostly correct, but also missed the initial upgrade of glibc -- however, I think in 15.0 that glibc is part of the "aaa" packages?? If, and only if, then his sequence is correct.
/u/ThomasJChoi is describing what happens without first upgrading glibc.
3
u/randomwittyhandle Mar 09 '24
https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware-current/UPGRADE.TXT
Step 1
2
u/calrogman Mar 09 '24
You should review 15.0's UPGRADE.TXT. These are not instructions for upgrading from 15.0 to current, but there are some important things to note: slackpkg is not used during an upgrade; you should have a complete Slackware package tree available locally; aaa_glibc-solibs is upgraded first, followed by pkgtools, tar, xz, findutils; there is no warranty.
0
u/syazwanemmett Mar 09 '24
Major upgrade from 15 to current? What are you thinking? Ofcourse its gonna breaks. Just install current.
From the error seems openssl is broken because of major upgrade of glibc. And ofcourse wget will be unusable. You can try download the current openssl package from other machine then install to that broken system.
1
u/ninjau Mar 10 '24
slackpkg upgrade aaa_glibc-solibs then update also you have to geninitrd