Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60982 closed defect (fixed)

MacPorts installation fails - OSX SIerra 10.12.6 - Xcode 9.2 - CLT

Reported by: iriann Owned by:
Priority: Normal Milestone:
Component: base Version: 2.6.3
Keywords: Cc: jmroot (Joshua Root), ryandesign (Ryan Carsten Schmidt)
Port:

Description

The installer fails to complete with following message:

"The installer encountered and error that caused the installation to fail. Contact the software manufacturer for assistance."

I did follow the installation guide steps on site.

Attachments (3)

Installer Log 9-Aug-2020.txt (9.0 KB) - added by iriann 4 years ago.
Installer Log 9-Aug-2020.2.txt (9.0 KB) - added by iriann 4 years ago.
install.log-21-Aug-2020.txt (8.6 KB) - added by mikeyearworth 4 years ago.
Installation Log

Download all attachments as: .zip

Change History (25)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: installation error removed

Can you provide an installation log file that shows what went wrong?

Go through the installation again. If it fails again, from the Window menu, choose Installer Log. Click Save in that window, save the log to a file, and attach it to this ticket.

Changed 4 years ago by iriann

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

The part where it says

An error occurred while extracting files from the package “MacPorts-2.6.3-10.12-Sierra.pkg”.

cpio read error: bad file format

makes me think that you have a corrupted download. Would you try deleting MacPorts-2.6.3-10.12-Sierra.pkg and downloading a fresh copy from https://distfiles.macports.org/MacPorts/?

comment:3 Changed 4 years ago by iriann

I did what you said but installer returns the same error as before.

Changed 4 years ago by iriann

comment:4 Changed 4 years ago by jmroot (Joshua Root)

The pkg is signed, so Installer would fail to verify the signature right at the start if it had been modified.

comment:5 Changed 4 years ago by iriann

i moved the download file to different location (from downloads folder to desktop) and the installer was writing packages but stuck for too long hour and i force quit it.

comment:6 Changed 4 years ago by iriann

After reboot, re-download the installer, moving it to desktop and run it from there, installer completed successfully. I am not sure which was the problem exactly (corrupt download/execution location of installer) but I report the steps I took if someone is facing the same problem in the future.

Thank you Joshua Root for you help and your time.

comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

Glad you got it working. The only other suggestion I could think of was that maybe there is something wrong with your disk; you might want to open Disk Utility and run First Aid just to make sure.

Changed 4 years ago by mikeyearworth

Attachment: install.log-21-Aug-2020.txt added

Installation Log

comment:8 Changed 4 years ago by mikeyearworth

Resolution: worksforme
Status: closedreopened

I have been able to reproduce this problem trying to install MacPorts-2.6.3-10.12-Sierra.pkg onto macOS 10.12.6 with Xcode 9.3 with CLT. I tried a few times from ~/Downloads and then ~/Desktop. Same problem every time. I have just run First Aid and found 0 errors.

Aug 21 15:19:34 iMac installd[353]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “MacPorts-2.6.3-10.12-Sierra.pkg”." UserInfo={NSUnderlyingError=0x7fac3af91a60 {Error Domain=BOMCopierFatalError Code=1 "cpio read error: bad file format"

See install.log-21-Aug-2020.txt for the whole installation log.

comment:9 Changed 4 years ago by mikeyearworth

This is now FYI

I have now performed a Git Install, which worked fine and I'm up and running.

comment:10 Changed 4 years ago by mrkapqa

can confirm that the installer is still not installing on Mac OS Sierra. Manual installation functions, but involves creating a .bash_profile which is missing on MacOS Sierra?

comment:11 Changed 4 years ago by todo (Yu-Lun Chen)

I also ran into the same problem ("cpio read error: bad file format"). Here are my configs:

  • Sierra 10.12.6
  • XCode 8.3.3
  • XQuartz 2.7.11
  • I actually deleted my old MacPort.

I have tried to download the .pkg files twice, but neither of them is working. Below are the error logs from console.

Oct  7 09:02:13 papabear installd[854]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “MacPorts-2.6.3-10.12-Sierra.pkg”." UserInfo={NSUnderlyingError=0x7f935a5147b0 {Error Domain=BOMCopierFatalError Code=1 "cpio read error: bad file format" UserInfo={destinationPath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/B363E0E7-6416-49BF-9F58-6F1E8027F648.activeSandbox/Root, offset=94929, type=BOMCopierFatalError, sourcePath=/Users/XXX/Downloads/MacPorts-2.6.3-10.12-Sierra.pkg, NSLocalizedFailureReason=cpio read error: bad file format}}, NSFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/B363E0E7-6416-49BF-9F58-6F1E8027F648.activeSandbox/Root, NSURL=file:///Users/XXX/Downloads/MacPorts-2.6.3-10.12-Sierra.pkg#MacPorts-2.6.3-component.pkg, PKInstallPackageIdentifier=org.macports.MacPorts, NSLocalizedDescription=An error occurred while extracting files from the package “MacPorts-2.6.3-10.12-Sierra.pkg”.} {
        NSFilePath = "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/B363E0E7-6416-49BF-9F58-6F1E8027F648.activeSandbox/Root";
        NSLocalizedDescription = "An error occurred while extracting files from the package \U201cMacPorts-2.6.3-10.12-Sierra.pkg\U201d.";
        NSURL = "file:///Users/XXX/Downloads/MacPorts-2.6.3-10.12-Sierra.pkg#MacPorts-2.6.3-component.pkg";
        NSUnderlyingError = "Error Domain=BOMCopierFatalError Code=1 \"cpio read error: bad file format\" UserInfo={destinationPath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/B363E0E7-6416-49BF-9F58-6F1E8027F648.activeSandbox/Root, offset=94929, type=BOMCopierFatalError, sourcePath=/Users/XXX/Downloads/MacPorts-2.6.3-10.12-Sierra.pkg, NSLocalizedFailureReason=cpio read error: bad file format}";
        PKInstallPackageIdentifier = "org.macports.MacPorts";
    }
Oct  7 09:02:13 papabear installd[854]: PackageKit: Running idle tasks
Oct  7 09:02:13 papabear Installer[2128]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “MacPorts-2.6.3-10.12-Sierra.pkg”." UserInfo={NSLocalizedDescription=An error occurred while extracting files from the package “MacPorts-2.6.3-10.12-Sierra.pkg”., NSFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/B363E0E7-6416-49BF-9F58-6F1E8027F648.activeSandbox/Root, NSURL=file:///Users/XXX/Downloads/MacPorts-2.6.3-10.12-Sierra.pkg#MacPorts-2.6.3-component.pkg, PKInstallPackageIdentifier=org.macports.MacPorts, NSUnderlyingError=0x600000459920 {Error Domain=BOMCopierFatalError Code=1 "cpio read error: bad file format" UserInfo={NSLocalizedFailureReason=cpio read error: bad file format, offset=94929, type=BOMCopierFatalError, sourcePath=/Users/XXX/Downloads/MacPorts-2.6.3-10.12-Sierra.pkg, destinationPath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/B363E0E7-6416-49BF-9F58-6F1E8027F648.activeSandbox/Root}}}

My temporary workaround is to install MacPorts-2.6.2-10.12-Sierra.pkg. My concern with 2.6.2 is if I do a selfupdate, I'll break it again. Can someone confirm this will not happen?

Thanks!

comment:12 Changed 4 years ago by kencu (Ken)

Hate to say the obvious, but is the file on the server just bad?

% curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.6.3-10.12-Sierra.pkg
% pkgutil --expand MacPorts-2.6.3-10.12-Sierra.pkg ./pkg
% gzip -dc ./pkg/MacPorts-2.6.3-component.pkg/Payload > output                   
gzip: data stream error
gzip: ./pkg/MacPorts-2.6.3-component.pkg/Payload: uncompress failed

whereas this gives no errors:

curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.6.2-10.12-Sierra.pkg
pkgutil --expand MacPorts-2.6.2-10.12-Sierra.pkg ./pkg
gzip -dc ./pkg/MacPorts-2.6.2-component.pkg/Payload > output
Last edited 4 years ago by kencu (Ken) (previous) (diff)

comment:13 in reply to:  11 Changed 4 years ago by kencu (Ken)

Replying to todo:

Can someone confirm this will not happen?

99.99% sure. You will install 2.6.2 from a good pkg file. Then when you selfupdate it will download the new source files and build itself.

So you will never touch the (wonky?) 2.6.3 pkg.

comment:14 Changed 4 years ago by kencu (Ken)

Cc: jmroot added

comment:15 Changed 4 years ago by kencu (Ken)

Josh, please note potential bad file https://distfiles.macports.org/MacPorts/MacPorts-2.6.3-10.12-Sierra.pkg as per comment:12

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:16 Changed 4 years ago by jmroot (Joshua Root)

That's what Ryan thought in comment:2, but it seems unlikely in light of comment:6.

comment:17 Changed 4 years ago by kencu (Ken)

well I don't think it's a corrupt download. I think it's a corrupt file that needs to be replaced.

2.6.4 can't be all that far off, I guess.

comment:18 Changed 4 years ago by kencu (Ken)

but who knows?

comment:19 Changed 4 years ago by jmroot (Joshua Root)

I rebuilt the installer anyway, so try https://github.com/macports/macports-base/releases/download/v2.6.3/MacPorts-2.6.3-10.12-Sierra.pkg and report back if you were having issues.

comment:20 Changed 4 years ago by kencu (Ken)

The new 2.6.3 pkg from github decompresses without error. Hopefully that will make it out to the various distfiles mirrors in due course of time, somehow.

Last edited 4 years ago by kencu (Ken) (previous) (diff)

comment:21 Changed 4 years ago by jmroot (Joshua Root)

Cc: ryandesign added

A user on IRC confirmed that the new pkg works. Ryan, could you please replace the 2.6.3 Sierra pkg and .chk.txt file on distfiles.macports.org with the new ones I uploaded to GitHub?

comment:22 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

Thanks Josh. I've replaced the three files on the private server; they should appear on the public server within the hour.

Note: See TracTickets for help on using tickets.