LinuxQuestions.org
Review your favorite Linux distribution.
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 05-22-2014, 06:32 AM   #1
slackgraham
LQ Newbie
 
Registered: Apr 2012
Posts: 13

Rep: Reputation: Disabled
slackpkg md5sum error


Hi all,

slackpkg upgrade for a couple of packages completed with a warning along the lines of the below:
Code:
==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while slackpkg was running:

mozilla-firefox-24.5.0esr-x86_64-1_slack14.1.txz:       md5sum
However it was actually installed.

I manually uninstalled it (but may have run it first), and then reinstalled with slackpkg. No complaints this time.

So my main questions is:
Is my system now trustworthy, since a doInst.sh belonging to an incorrect (by error or design) package was run ?

Secondly, why did slackpkg install something on which it reported an incorrect md5sum?

Another detail - somewhere prior to the md5sum I had killed slackpkg mid-download, then ran it again later. Could this be a cause of the incorrect md5sum, or confused slackpkg?

thanks,
graham.
 
Old 05-22-2014, 06:51 AM   #2
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
If slackpkg really did that I would consider it a bug
 
Old 05-22-2014, 07:12 AM   #3
slackgraham
LQ Newbie
 
Registered: Apr 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I'll see if I can reproduce.
 
Old 05-22-2014, 07:58 AM   #4
slackgraham
LQ Newbie
 
Registered: Apr 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I can reproduce:
1 - install mozilla-firefox from the 14.1 iso (ie. an old version)
2 - set slackpkg mirror to ftp://mirrors...
3 - slackpkg update
4 - slackpkg upgrade-all (select firefox)
5 - kill it part way through.
6 - change the mirror to http://mirrors...
7 - slackpkg upgrade-all (select firefox)

Upgrade happens, with md5sum warning afterwards.

Edit: actually it seems that steps 2 & 6 aren't necessary (that's just the process I originally followed).

Last edited by slackgraham; 05-22-2014 at 08:04 AM. Reason: more detail
 
Old 05-22-2014, 08:49 AM   #5
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
That looks silly. Why would slackpkg check md5 if it is not going to matter? I mean, why check if it is going to install it anyways?
 
Old 05-22-2014, 05:25 PM   #6
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I had the same issue when I upgraded one machine from 14.0 to 14.1 using slackpkg with a WIFI connection. The connection was not quite good and from time to time I lost it. When the connection was lost, the package currently being downloaded was not saved on the PC and slackpkg continued to the next file to be downloaded (either a package or an asc signature file).

[off-topic]by default, slackpkg downloads first all the packages selected before installing them, this can be changed by setting DOWNLOAD_ALL=off in /etc/slackpkg/slackpkg.conf[/off-topic]

After installing the packages that were successfully downloaded, slackpkg tried to download again the packages whose download failed the first time. During the second attempt, some packages were successfully installed and others failed again.

After this second trial, there was no third one and slackpkg reported the warning only once for packages that could be installed after the second download and twice for those packages when first and second attempts at download failed.

An example: let's say, I want to download 3 packages: aaaa, bbbb, cccc

During the first download pass of slackpkg:

aaaa.txz => donwload OK
aaaa.txz.asc => download OK
bbbb.txz => download OK
bbbb.txz.asc => download NOT OK
cccc.txz => download NOT OK
ccc.txz.asc = > download NOT OK


During the installation pass of slackpkg:

aaaa.txz => installed
bbbb.txz => not installed because of download error of asc signature file
cccc.txz => not installed because of download error

Then slackpkg tries again to download and install bbbb and cccc:

bbbb.txz => download OK
bbbb.txz.asc => download NOT OK
cccc.txz => download OK
ccc.txz.asc = > download OK

then slackpkg installs cccc.txz but not bbbb.txz and reports the following warnings
Code:
One or more errors occurred while slackpkg was running:
bbbb.txz: md5sum
cccc.txz: md5sum
bbbb.txz: md5sum
To sum it up. If the package appears only one time, it's OK the package was properly installed (during the second try). But if the package appears twice in the report, it was not installed.

At least that's my own experience
 
1 members found this post helpful.
Old 05-22-2014, 05:33 PM   #7
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by moisespedro View Post
That looks silly. Why would slackpkg check md5 if it is not going to matter? I mean, why check if it is going to install it anyways?
By default, there is a md5sum check. So it matters. From /etc/slackpkg/slackpkg.conf:

Code:
# If CHECKMD5 is "on", the system will check the md5sums of all packages before
# install/upgrade/reinstall is performed.
CHECKMD5=on
 
1 members found this post helpful.
Old 11-04-2014, 02:14 AM   #8
amenos42
Member
 
Registered: Jun 2013
Location: USA
Distribution: Slackware
Posts: 47

Rep: Reputation: Disabled
Quote:
Originally Posted by gegechris99 View Post
At least that's my own experience
Thank you, I had the same problem and your post resolved it. Apparently it's a problem of ignorance alone. p.s. it's always good to hear people describe Slackware as if it's a mystical entity.
 
Old 11-04-2014, 05:12 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
After selecting a mirror, run this:
Code:
slackpkg update gpg
Only needs to be done once, unless you change mirrors.
Then:
Code:
slackpkg update
 
  


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
[SOLVED] seamonkey md5sum error with slackpkg tfrei Slackware 3 04-09-2011 10:56 AM
[SOLVED] slackpkg md5sum errors. What to do? catkin Slackware 3 09-18-2010 09:59 AM
Slackpkg and pkgtools md5sum error piratesmack Slackware 3 04-16-2009 07:18 PM
slackpkg md5sum errors with two different motherboards walmartshopper Slackware 8 12-19-2008 02:25 PM
YOU md5sum error linux-rulz SUSE / openSUSE 1 12-21-2004 01:49 AM

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

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