Opened 9 years ago

Closed 9 years ago

#47786 closed defect (fixed)

ghostscript @9.16_0: mapping resources checksum mismatch

Reported by: gideonsimpson Owned by: takanori@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: anupamsg@…, Ionic (Mihai Moldovan)
Port: ghostscript

Description (last modified by larryv (Lawrence Velázquez))

:~$ sudo port install ghostscript
--->  Computing dependencies for ghostscript
--->  Fetching archive for ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ghostscript
--->  Fetching distfiles for ghostscript
--->  Verifying checksums for ghostscript
Error: Checksum (rmd160) mismatch for 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
Error: Checksum (sha256) mismatch for 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
Error: org.macports.checksum for port ghostscript returned: Unable to verify file checksums
Please see the log file for port ghostscript for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port ghostscript failed

Change History (14)

comment:1 Changed 9 years ago by gideonsimpson

Cc: gideon.simpson@… added

Cc Me!

comment:2 Changed 9 years ago by anupamsg@…

Cc: anupamsg@… added

Cc Me!

comment:3 Changed 9 years ago by larryv (Lawrence Velázquez)

Cc: ionic@… added; gideon.simpson@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to takanori@…
Summary: checksum mitmatch on ghostscriptghostscript @9.16_0: mapping resources checksum mismatch

comment:4 Changed 9 years ago by Ionic (Mihai Moldovan)

Don't understand this. It worked fine for me when I updated it.

Given we're fetching a specific commit archive, the checksum can't suddenly change either.

I cleaned my local distfiles for ghostscript and had port re-fetch and check both. The recorded checksum matches.

I'm unable to reproduce your problem. Maybe you downloaded a HTML file?

Please try

sudo port clean --all ghostscript

and to install again.

comment:5 Changed 9 years ago by gideonsimpson

I did:

sudo port clean --all ghostscript

When I then tried to install again, I got a different checksum error:

:~$ sudo port install ghostscript
--->  Computing dependencies for ghostscript
--->  Fetching archive for ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ghostscript
--->  Fetching distfiles for ghostscript
--->  Attempting to fetch ghostscript-9.16.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ghostscript
--->  Attempting to fetch ghostscript-9.16.tar.gz from http://sea.us.distfiles.macports.org/macports/distfiles/ghostscript
--->  Attempting to fetch ghostscript-fonts-other-6.0.tar.gz from http://superb-dca2.dl.sourceforge.net/gs-fonts
--->  Attempting to fetch 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip from https://github.com/adobe-type-tools/mapping-resources-pdf/archive/
--->  Verifying checksums for ghostscript
Error: Checksum (rmd160) mismatch for 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
Error: Checksum (sha256) mismatch for 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
Error: org.macports.checksum for port ghostscript returned: Unable to verify file checksums
Please see the log file for port ghostscript for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port ghostscript failed

comment:6 Changed 9 years ago by Ionic (Mihai Moldovan)

There's 2 weird things there.

  1. Why didn't it try to fetch from our mirrors first? Again, it did for me.
  2. Again a mismatch.

Can you tell me what

file /opt/local/var/macports/distfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip

outputs? If it doesn't work, get the correct path via

port distfiles ghostscript

comment:7 Changed 9 years ago by gideonsimpson

:~$ file /opt/local/var/macports/distfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
/opt/local/var/macports/distfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip: Zip archive data, at least v1.0 to extract

and

:~$ port distfiles ghostscript
--->  Distfiles for ghostscript
[ghostscript-9.16.tar.gz] /opt/local/var/macports/distfiles/ghostscript/ghostscript-9.16.tar.gz
 rmd160: 9c483b93ccd106bae6db36b3335fae4e91177aec
 sha256: 746d77280cca8afdd3d4c2c1389e332ed9b0605bd107bcaae1d761b061d1a68d
  http://downloads.ghostscript.com/public/ghostscript-9.16.tar.gz
  http://distfiles.macports.org/ghostscript/ghostscript-9.16.tar.gz
  http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/ghostscript/ghostscript-9.16.tar.gz
  http://cjj.kr.distfiles.macports.org/ghostscript/ghostscript-9.16.tar.gz
  http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/ghostscript/ghostscript-9.16.tar.gz
  http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/ghostscript/ghostscript-9.16.tar.gz
  http://jog.id.distfiles.macports.org/macports/mpdistfiles/ghostscript/ghostscript-9.16.tar.gz
  http://lil.fr.distfiles.macports.org/ghostscript/ghostscript-9.16.tar.gz
  http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/ghostscript/ghostscript-9.16.tar.gz
  http://nue.de.distfiles.macports.org/macports/distfiles/ghostscript/ghostscript-9.16.tar.gz
  http://osl.no.distfiles.macports.org/ghostscript/ghostscript-9.16.tar.gz
  http://sea.us.distfiles.macports.org/macports/distfiles/ghostscript/ghostscript-9.16.tar.gz
  http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ghostscript/ghostscript-9.16.tar.gz
  http://svn.macports.org/repository/macports/distfiles/ghostscript/ghostscript-9.16.tar.gz
 
[ghostscript-fonts-other-6.0.tar.gz] /opt/local/var/macports/distfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
 rmd160: ab60dbf71e7d91283a106c3df381cadfe173082f
 sha256: 4fa051e341167008d37fe34c19d241060cd17b13909932cd7ca7fe759243c2de
  http://aarnet.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://citylan.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://freefr.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://garr.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://heanet.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://hivelocity.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://internode.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://jaist.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://kent.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://nchc.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://netcologne.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://optimate.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://softlayer-dal.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://superb-dca2.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://switch.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://ufpr.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://waix.dl.sourceforge.net/gs-fonts/ghostscript-fonts-other-6.0.tar.gz
  http://distfiles.macports.org/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://cjj.kr.distfiles.macports.org/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://jog.id.distfiles.macports.org/macports/mpdistfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://lil.fr.distfiles.macports.org/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://nue.de.distfiles.macports.org/macports/distfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://osl.no.distfiles.macports.org/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://sea.us.distfiles.macports.org/macports/distfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
  http://svn.macports.org/repository/macports/distfiles/ghostscript/ghostscript-fonts-other-6.0.tar.gz
 
[3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip] /opt/local/var/macports/distfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
 rmd160: 1bb3b507ec48b559e4388553391ebece2468dc73
 sha256: 769bf8961b1dbf443a865f7c26363ea143854be5eefe3e61b3ee4c0ebe80a50a
  https://github.com/adobe-type-tools/mapping-resources-pdf/archive/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://distfiles.macports.org/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://cjj.kr.distfiles.macports.org/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://jog.id.distfiles.macports.org/macports/mpdistfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://lil.fr.distfiles.macports.org/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://nue.de.distfiles.macports.org/macports/distfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://osl.no.distfiles.macports.org/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://sea.us.distfiles.macports.org/macports/distfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
  http://svn.macports.org/repository/macports/distfiles/ghostscript/3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip

comment:8 Changed 9 years ago by jjsmith.macports@…

I'm new to using macports and I was attempting to install Scapy when I encountered this error. I've been hung-up on the ghostscript dependency due to apparent checksum errors. The following output is after I did a sudo port clean --all ghostscript

:~$ sudo port install scapy
--->  Computing dependencies for scapy
--->  Dependencies to be installed: ImageMagick ghostscript jbigkit lcms2 openexr ilmbase openjpeg urw-fonts webp graphviz gd2 libvpx xpm gts glib2 libffi netpbm jasper libLASi pango Xft2 xrender xorg-renderproto cairo libpixman xorg-xcb-util gobject-introspection py27-mako py27-beaker py27-setuptools py27-markupsafe harfbuzz graphite2 poppler curl curl-ca-bundle openjpeg15 poppler-data xorg-libXaw xorg-libXmu py27-crypto gmp py27-gnuplot gnuplot aquaterm libcaca freeglut libGLU mesa xorg-dri2proto xorg-glproto xorg-libXdamage xorg-damageproto xorg-libXfixes xorg-fixesproto xorg-libXi xorg-inputproto xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto imlib2 giflib libid3tag libcerf lua readline wxWidgets-3.0 wxWidgets_select py27-numpy libgcc cctools llvm-3.5 libcxx llvm_select gcc_select isl ld64 ld64-latest libmpc mpfr py27-cython cython_select py27-nose nosetests_select py27-libdnet libdnet py27-pylibpcap libpcap swig-python swig pcre py27-readline
--->  Fetching archive for ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.16_0+x11.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/ghostscript
--->  Fetching distfiles for ghostscript
--->  Attempting to fetch ghostscript-9.16.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ghostscript
--->  Attempting to fetch ghostscript-9.16.tar.gz from http://distfiles.macports.org/ghostscript
--->  Attempting to fetch ghostscript-fonts-other-6.0.tar.gz from http://softlayer-dal.dl.sourceforge.net/gs-fonts
--->  Attempting to fetch 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ghostscript
--->  Attempting to fetch 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip from https://github.com/adobe-type-tools/mapping-resources-pdf/archive/
--->  Verifying checksums for ghostscript                                            
Error: Checksum (rmd160) mismatch for 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
Error: Checksum (sha256) mismatch for 3128b3872aa14a4c066d5cbcdde66a3b6bba0982.zip
Error: org.macports.checksum for port ghostscript returned: Unable to verify file checksums
Error: Failed to install ghostscript
Please see the log file for port ghostscript for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/main.log
Error: The following dependencies were not installed: ImageMagick ghostscript jbigkit lcms2 openexr ilmbase openjpeg urw-fonts webp graphviz gd2 libvpx xpm gts glib2 libffi netpbm jasper libLASi pango Xft2 xrender xorg-renderproto cairo libpixman xorg-xcb-util gobject-introspection py27-mako py27-beaker py27-setuptools py27-markupsafe harfbuzz graphite2 poppler curl curl-ca-bundle openjpeg15 poppler-data xorg-libXaw xorg-libXmu py27-crypto gmp py27-gnuplot gnuplot aquaterm libcaca freeglut libGLU mesa xorg-dri2proto xorg-glproto xorg-libXdamage xorg-damageproto xorg-libXfixes xorg-fixesproto xorg-libXi xorg-inputproto xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto imlib2 giflib libid3tag libcerf lua readline wxWidgets-3.0 wxWidgets_select py27-numpy libgcc cctools llvm-3.5 libcxx llvm_select gcc_select isl ld64 ld64-latest libmpc mpfr py27-cython cython_select py27-nose nosetests_select py27-libdnet libdnet py27-pylibpcap libpcap swig-python swig pcre py27-readline
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port scapy failed
Last edited 9 years ago by jjsmith.macports@… (previous) (diff)

comment:9 Changed 9 years ago by Ionic (Mihai Moldovan)

Resolution: fixed
Status: newclosed

Holy mother of distfiles.

I just re-downloaded the distfile from github and it indeed gives me a different checksum, while the cached distfile on the buildbots that were downloaded a few days ago have the "correct" checksum as recorded in the Portfile.

What sorcery?

I guess I will do a "stealth update" fix, but, but, but...

Updated in r136561.

It might take some time to hit your favorite rsync mirror.

Wait half an hour and run

sudo port selfupdate

then try the failed operations again. If it still doesn't work, wait longer.

comment:10 Changed 9 years ago by Ionic (Mihai Moldovan)

I'd appreciate feedback on this, btw.

Especially if people decide to not upgrade/install today but a few days later. I'm afraid github might produce different tarballs yet again.

comment:11 Changed 9 years ago by cpage@…

I had this issue yesterday and your fix seems to have done the trick. Since I have several more installs to do early next week, I'll add a note if the problem crops up again.

comment:12 Changed 9 years ago by cpage@…

Still seems to be OK. Thanks for the fix.

comment:13 Changed 9 years ago by Ionic (Mihai Moldovan)

Resolution: fixed
Status: closedreopened

Nope, still a problem. I just hit it again...

Seems to be happening every other day. Crap.

Thank you, github.

comment:14 Changed 9 years ago by Ionic (Mihai Moldovan)

Resolution: fixed
Status: reopenedclosed

False alarm, I just messed up locally. The files/checksums still match. Sorry for the noise.

Note: See TracTickets for help on using tickets.