LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-18-2020, 02:20 PM   #1
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Slackpkg - Fix Checksum md5 Errors


Greetz
I'm extremely new at slackpkg but so far it is pretty OK and not the travesty I once assumed it could be. However I'm getting several checksum md5 matching errors which I assume is referring to previous packages. I further assume that "slackpkg clean-system" might be the answer BUT I don't want to even risk losing packages I've installed, especially after failing to uncheck the kernel packages resulted in slackpkg deleting my custom (and substantially newer) kernel and it's /lib/modules. Thankfully I had a backup and I won't make that mistake again but that's why I'm, asking here instead of just "jumping in".

So my question is, how do I resolve the un-upgraded items that checksum'd out without losing what 3rd party stuff I have installed?
 
Old 12-18-2020, 03:01 PM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,482
Blog Entries: 2

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
Post

Welcome under the slackpkg "shadow"

I'd advise checking the /etc/slackpkg/blacklist next
(mine FWIW)
Code:
# This is a blacklist file. Any packages listed here won't be
# upgraded, removed, or installed by slackpkg.
#
# The correct syntax is:
#
# To blacklist the package xorg-server-1.6.3-x86_64-1 the line will be:
# xorg-server
#
# DON'T put any space(s) before or after the package name or regexp.
# If you do this, the blacklist will NOT work.

#
# Automated upgrade of kernel packages aren't a good idea (and you need to
# run "lilo" after upgrade). If you think the same, uncomment the lines
# below 
#
#kernel-firmware
kernel-generic
#kernel-generic-smp
kernel-headers
kernel-huge
#kernel-huge-smp
kernel-modules
#kernel-modules-smp
kernel-source

#
# aaa_elflibs should NOT be blacklisted!
#

# You can blacklist using regular expressions.
#
# Don't use *full* regex here, because all of the following 
# will be checked for the regex: series, name, version, arch, 
# build and fullname.
#
# This one will blacklist all SBo packages:
[0-9]+_SBo
#*firefox*
 
Old 12-18-2020, 03:12 PM   #3
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
In normal working conditions, there should not be checksum md5 matching errors when using slackpkg with a properly configured repository. I experienced such errors when a package download was stopped and restarted (automatically by slackpkg),the message was of no consequence as, in the end, the package was downloaded and installed.

To avoid having your 3rd party packages deleted by slackpkg, you can blacklist them (i.e. add them to /etc/slackpkg/blacklist) so they don't appear when running "slackpkg clean-system".
Here's the example for blacklisting SBo packages. It also means that your 3rd party packages have a tag to avoid listing them all one by one:
Code:
# You can blacklist using regular expressions.
#
# Don't use *full* regex here, because all of the following 
# will be checked for the regex: series, name, version, arch, 
# build and fullname.
#
# This one will blacklist all SBo packages:
[0-9]+_SBo
My experience with slackpkg is only positive. It simplifies maintenance of multiple systems. I'm also using slackpkg+ which is an extension to retrieve trusted 3rd party repositories (like those of alienbob).
 
1 members found this post helpful.
Old 12-18-2020, 03:30 PM   #4
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
Checksum issues are usually the result of a broken mirror (or one that is in the middle of updating). Try a different mirror and see if the problem with checksums goes away.

(You can try my slack-mirror-speedtest.sh script to see what mirrors are the fastest for you. It defaults to the US mirrors.)

As for clean-system, others have already pointed out that you can blacklist packages from it (and you can blacklist tags as well, so you can blacklist all alien and SBo packages pretty easily). But clean-system doesn't blindly remove packages, it will show you a prompt with all packages selected by default and you deselect the packages you don't want removed. You can easily cancel out of the list by selecting cancel or Ctrl+C. It only starts removing packages if you proceed further.
 
2 members found this post helpful.
Old 12-18-2020, 03:58 PM   #5
truepatriot76
Member
 
Registered: Apr 2014
Location: California, USA
Distribution: slackware64-current
Posts: 233

Rep: Reputation: 195Reputation: 195
I find some mirrors are better than others in this regard - the kernel.org mirror, in the US, has yet to let me down.

Last edited by truepatriot76; 12-18-2020 at 04:00 PM.
 
Old 12-18-2020, 07:15 PM   #6
truepatriot76
Member
 
Registered: Apr 2014
Location: California, USA
Distribution: slackware64-current
Posts: 233

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by bassmadrigal View Post
Checksum issues are usually the result of a broken mirror (or one that is in the middle of updating). Try a different mirror and see if the problem with checksums goes away.

(You can try my slack-mirror-speedtest.sh script to see what mirrors are the fastest for you. It defaults to the US mirrors.)

As for clean-system, others have already pointed out that you can blacklist packages from it (and you can blacklist tags as well, so you can blacklist all alien and SBo packages pretty easily). But clean-system doesn't blindly remove packages, it will show you a prompt with all packages selected by default and you deselect the packages you don't want removed. You can easily cancel out of the list by selecting cancel or Ctrl+C. It only starts removing packages if you proceed further.
That is super handy bassmadrigal - thank you! Since xmission.com(slightly faster) and kernel.org are #1 & #2 on my list, I'll stick with kernel.org, but it's very nice to know what my speedy alternatives are.
 
Old 12-19-2020, 03:56 AM   #7
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Thanks all. I'm marking this solved. Permanently blacklisting kernel updates is preferable to manually unchecking them each time but had nothing to do with checksum errors. What solved my problem was manually editing "/etc/resolv.conf" which NetworkManager had set with the router base addrerss. I changed it to 1.1.1.1 and everything is copacetic now though I do wonder why slackpkg searches domains other than just what I un-comment. No biggy now though.
 
Old 12-19-2020, 11:51 AM   #8
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 enorbet View Post
though I do wonder why slackpkg searches domains other than just what I un-comment. No biggy now though.
slackpkg can only use the mirror you specify. However, if you specify mirror.slackware.com, it will use the "mirrorbrain" backend (on that server, not on your machine) that will try and find the one closest to you.
 
Old 12-19-2020, 04:50 PM   #9
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by bassmadrigal View Post
slackpkg can only use the mirror you specify. However, if you specify mirror.slackware.com, it will use the "mirrorbrain" backend (on that server, not on your machine) that will try and find the one closest to you.
Actually, I unchecked only the kernel.org US site since truepatriot76 mentioned it was fast and reliable. I surely don't yet fully understand slackpkg but I see it searching (and failing) to connect with "slakfinder", "bear.alienbob.nl" and one or two others. It works now so it's just idle curiosity plaguing my OCD desire to know all the fundamentals, but it only costs a few seconds at most, so backburner it goes.
 
Old 12-19-2020, 07:26 PM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
I don't know if this will be seen in a "SOLVED" thread but I have a sincere request.

I DO know PV, Eric and all the developer contributors are always very busy and especially now with both Xmas and the last few steps toward a new Official Release seemingly imminent....

BUT.....

Could someone, sometime fairly soon, either/both take down old "HowTos" and/or update newer ones? Maybe I'm mistaken but the most recent docs I've seen on wireless, including the important wpa_supplicant, and slackpkg(+) are outdated. For example the Slackpkg+ docs still list "ktown" and as far as I can tell, unless we are supposed to use the MIRRORPLUS line for 14.2 and let Slackpkg+ figure out we're on Current, I will keep getting errors that "alienbob repoaddress" is not configured and frustrating errors like this

Code:
                     !!! F A T A L !!!
    Repository 'multilib' FAILS the CHECKSUMS.md5 download
    The repository may be invalid and will be SKIPPED.
It may have been (or may return to being) a PITA to download files individually and manually upgradepkg --install-new but at least I knew what I was doing and didn't depend on other's means and instructions for more complex automated utilities like slqackpkg. This has been easy in some spots but a real uphill battle in others. Any help you might deliver with clear, up to date docs would be greatly appreciated.
 
Old 12-19-2020, 08:28 PM   #11
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 enorbet View Post
Actually, I unchecked only the kernel.org US site since truepatriot76 mentioned it was fast and reliable. I surely don't yet fully understand slackpkg but I see it searching (and failing) to connect with "slakfinder", "bear.alienbob.nl" and one or two others. It works now so it's just idle curiosity plaguing my OCD desire to know all the fundamentals, but it only costs a few seconds at most, so backburner it goes.
This is likely because you have slackpkg+ installed. You'd need to look in your slackpkg+ config file (not sure the exact name). slackpkg+ is essentially an extension to slackpkg and works seamlessly with slackpkg. It opens up the possibility to have multiple repos listed (like multilib and slackpkg+ repos that are likely being checked with the above addresses).
 
Old 12-19-2020, 08:37 PM   #12
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,611

Rep: Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933
Are you using the Princeton mirror? I had no end of troubles with checksum errors with them, and it seemed like they updated hours after everyone else did. I switched mirrors, and the issues went away.
 
1 members found this post helpful.
Old 12-19-2020, 09:02 PM   #13
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Thanks garpu, good to know but bassmadrigal is on the ball. I installed slackpkg+ to try to get a damned update for multilib and probably should stop for the day or the spot where I've been beating my head against the wall will break through and the way my day is going the whole damned house will collapse.

Please ignore rant - Ya know, I really don't mind much when an update installs something new that fails in some way or just doesn't work but oh man! do I hate it when they break my old stuff. Grrrrr! I'm so upset I'm about to go back to 32 bit just so I don't have to deal with multilib complications. I'm sure I'm irrationally biased since I really don't recall anything like extra flaming hoops to jump through when 16bit came to 8bit, or when 32bit came to 16. Furthermore I really am not expecting to rocket up to a Mothership and hack an alien race whose conquered interstellar travels operating system a la Independence Day I just want to be able to run the stuff I commonly use without days of frustrating labor dealing with oild documentation.

BTW and relevant to my rant, I noticed that Princeton mirror hasn't been updated since 11/13, at least 2 updates old... still showing KDEv4. With this kind of lag on mirrors how is anyone supposed to know where to go to get up to date Multlibn Compat32 files?

Right now Steam won't launch and worse, my favorite music player, Aqualung, won't either AND it broke my 32 bit libraries to run the v3 KPackage that I use basically every day. Don't mind me, I'm gonna go eat worms
 
Old 12-20-2020, 03:41 AM   #14
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Quote:
Originally Posted by enorbet View Post
BTW and relevant to my rant, I noticed that Princeton mirror hasn't been updated since 11/13, at least 2 updates old... still showing KDEv4. With this kind of lag on mirrors how is anyone supposed to know where to go to get up to date Multlibn Compat32 files?
This is the main mirror (I don't know if you can call it that) for multilib (it's in Europe).
Code:
https://slackware.nl/people/alien/multilib/
Admittedly the README is a bit old but mainly due to the outdated listing of gcc and glic packages for each Slackware version. Other parts are still relevant, including "Enabling multilib":
Quote:
Enabling multilib
=================

Fast-track (examples assume slackware64-14.2 ... change to your needs).
All of the following commands should be executed as the 'root' user:

* In the location where you found this README, download the subdirectory with
the name that corresponds to the Slackware version you are running. For
Slackware64 14.2 for instance, you would run the following command:
# lftp -c 'open http://slackware.com/~alien/multilib/ ; mirror -c -e 14.2'
and then change into the new "14.2" directory which has been created on
your computer:
# cd 14.2
* First, you will upgrade your 64bit Slackware gcc and glibc packages to their
multilib versions by running the command:
# upgradepkg --reinstall --install-new *.t?z
in the directory you just changed to (the "14.2" directory in our case).
This will upgrade gcc and glibc packages, and also install a new package
called "compat32-tools".
* You are now going to install 32-bit compatibility packages to support all
the 32-bit programs you may want to run (roughly 60 MB of packages, not all
that much really!). These packages are located in the subdirectory called
"slackware64-compat32" which you also downloaded with the "lftp" command
shown above. Run this command:
# upgradepkg --install-new slackware64-compat32/*-compat32/*.t?z
* This procedure will also work if you already had a multilib setup and have
upgraded your Slackware to a newer release (new compat32 packages will be
installed and existing ones will be upgraded).
* Done! You need to reboot because of the glibc upgrade.
I would recommend that you manually install multilib as explained above. The main reason is that gcc and glibc needs to be upgraded with their multilib version ('slackpkg install multib' will not do that). After the initial installation, you can just keep it updated with:
Code:
slackpkg upgrade multilib
slackpkg install multilib # to pick up the occasional new compat32 package
 
Old 12-20-2020, 03:47 AM   #15
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
For the avoidance of doubt, you need slackpkg+ to manage multilib with slackpkg.
Regarding slackpkg+ configuration, for multilib, don't forget to set PKGS_PRIORITY in /etc/slackpkg/slackpkgplus.conf to make sure that gcc and glib packages are updated by their multilib version and not their stock Slackware one.

Code:
PKGS_PRIORITY=( multilib )
 
  


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
sbopkg shows md5 checksum errors -- slackware64 14.2 stable sinar.kk Slackware 1 07-15-2016 04:58 AM
[SOLVED] Slackware 14.0 mirror @ taper.alienbase.nl has md5 checksum errors. MadMaverick9 Slackware 9 12-26-2015 10:45 AM
slackpkg: gpg error (md5 checksum) theCalcaholic Slackware 8 02-17-2014 06:37 PM
Checksum 4 Slackware download - what type of checksum is this. Earnest Lux Linux - Newbie 1 02-02-2008 08:02 PM
On and off random MD5 checksum errors. xbennyboy SUSE / openSUSE 5 12-27-2006 01:10 AM

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

All times are GMT -5. The time now is 11:47 AM.

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