#55539 closed defect (invalid)
installer: Error the package path specified was invalid
Reported by: | mcandre (Andrew Pennebaker) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | |
Keywords: | Cc: | ||
Port: |
Description
I'm trying to install MacPorts v2.4.2 in High Sierra, but I'm getting an error instead.
Trace:
$ curl -o /Users/vagrant/MacPorts-2.4.2-10.13-HighSierra.pkg https://github.com/macports/macports-base/releases/download/v2.4.2/MacPorts-2.4.2-10.13-HighSierra.pkg $ sudo installer -verbose -pkg /Users/vagrant/MacPorts-2.4.2-10.13-HighSierra.pkg -target / installer: Error the package path specified was invalid: '/Users/vagrant/MacPorts-2.4.2-10.13-HighSierra.pkg'.
Change History (3)
comment:1 Changed 7 years ago by neverpanic (Clemens Lang)
comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Component: | ports → base |
---|---|
Resolution: | → invalid |
Status: | new → closed |
GitHub redirects the download location. Use the -L
flag to curl to tell it to follow that redirect, as Clemens showed.
comment:3 Changed 7 years ago by mcandre (Andrew Pennebaker)
Confirmed, thank you for the tip! I'm now using -L by default in my curl scripts to ensure that any HTTP redirects are followed. MacPorts now works in my Vagrant box!
Note: See
TracTickets for help on using
tickets.
You will have to provide more information that this. Did you check that the download was successful? What's the filesize of the downloaded file? What's its sha256 checksum?
If I download the file, it seems to be parsed just fine: