LinuxQuestions.org
Visit Jeremy's Blog.
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 09-08-2014, 03:15 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Strange checksum and/or GPG error on third-party Slackware repository


Hi,

I'm currently uploading a huge batch of updates for MLED and MLES, my own Slackware repositories.

I've been using Eric Hameleers' gen_repos_files.sh script to generate checksums, signatures and everything. But it seems like I'm having trouble getting things right. For a start, I configured the MLES-14.0-32bit repository:

http://www.microlinux.fr/slackware/MLES-14.0-32bit/

This script was used to generate repository metadata:

https://github.com/kikinovak/slackwa...repos_files.sh

I uploaded everything and tried to test this repo on a sandbox machine, with slackpkg+. I ran 'slackpkg update gpg' which fetched the GPG key fine. Then I ran 'slackpkg update', but I keep getting FATAL errors, and slackpkg complains about either wrong checksums and/or wrong GPG key.

I checked and double-checked everything and can't seem to find my mistake.

Any suggestions?
 
Old 09-08-2014, 03:57 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,184

Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
Hi,

I'm currently uploading a huge batch of updates for MLED and MLES, my own Slackware repositories.

I've been using Eric Hameleers' gen_repos_files.sh script to generate checksums, signatures and everything. But it seems like I'm having trouble getting things right. For a start, I configured the MLES-14.0-32bit repository:

http://www.microlinux.fr/slackware/MLES-14.0-32bit/

This script was used to generate repository metadata:

https://github.com/kikinovak/slackwa...repos_files.sh

I uploaded everything and tried to test this repo on a sandbox machine, with slackpkg+. I ran 'slackpkg update gpg' which fetched the GPG key fine. Then I ran 'slackpkg update', but I keep getting FATAL errors, and slackpkg complains about either wrong checksums and/or wrong GPG key.

I checked and double-checked everything and can't seem to find my mistake.

Any suggestions?
It seems that slackpkg fetch the files GPG-KEY and CHECKSUMS.md5 (among others) from the un-commented mirror in /etc/slackpkg/mirrors. So if this mirror is an official Slackware mirror it won't find your own files. Caveat: I just had a quick look, so I'm not sure of what I just wrote.

PS if you really meant "slackpkg+ update" (is there a slackpkg+ "update" option?) I have no clue as I never used slackpkg+ yet.

Last edited by Didier Spaier; 09-08-2014 at 12:44 PM. Reason: PS added.
 
Old 09-08-2014, 04:00 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Hi Niki

My mirror of your repository (http://taper.alienbase.nl/mirrors/people/kikinovak/) looks OK.
In "MLED-14.1-64bit" I ran this check:
Code:
tail +13 CHECKSUMS.md5 | md5sum --check | grep -v OK
and this resulted in empty output, which means that all md5 checksums were OK.

Note that you seem to be using a version of my script that is a bit old. The current script writes this in the header of the CHECKSUMS.md5 script:
Code:
These are the MD5 message digests for the files in this directory.
If you want to test your files, use 'md5sum' and compare the values to
the ones listed here.

To test all these files, use this command:

tail +13 CHECKSUMS.md5 | md5sum --check | less

'md5sum' can be found in the GNU coreutils package on ftp.gnu.org in
/pub/gnu, or at any GNU mirror site.

MD5 message digest                Filename
while your copy of it writes:
Code:
These are the MD5 message digests for the files in this directory.
If you want to test your files, use 'md5sum' and compare the values to
the ones listed here.

To test all these files, use this command:

md5sum -c CHECKSUMS.md5 | less

'md5sum' can be found in the GNU coreutils package on ftp.gnu.org in
/pub/gnu, or at any GNU mirror site.

MD5 message digest                Filename
a subtle difference.
Anyway, your repository seems to be OK so the issue must be a local one, on your own computer.

Eric
 
Old 09-08-2014, 12:11 PM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Thanks for the heads-up, Didier and Eric.

I cleared all the metadata and replaced the old gen_repos_files.sh with the last version, which I edited for every single one of the seven different repositories. Then I cleared all the existing metadata and recreated it with the new scripts. Now everything is working fine.

Cheers & marking as SOLVED.
 
Old 09-08-2014, 02:13 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Why d you have seven different copies of the script? You can create seven configuration files and use a single script - much easier to keep uptodate.

Eric
 
Old 09-08-2014, 02:29 PM   #6
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by Alien Bob View Post
Why d you have seven different copies of the script? You can create seven configuration files and use a single script - much easier to keep uptodate.

Eric
Must be a combination of copy & paste combined with the thought that this script doesn't get updated very often. Quick & dirty, but hey, it works.
 
  


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
slackpkg: gpg error (md5 checksum) theCalcaholic Slackware 8 02-17-2014 06:37 PM
confused about gpg checksum verification procedure for debian iso JacekZ Debian 4 02-11-2014 01:13 AM
[SOLVED] Slackware pkg update - CHECKSUM.md5 error madsovenielsen Slackware 4 08-09-2011 10:27 AM
Error importing the GPG key for the freshrpms repository in FC5 squall1986 Fedora 1 11-17-2006 12:20 AM

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

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