Opened 8 years ago

Closed 8 years ago

#52176 closed defect (worksforme)

expat: failed verification with key /opt/local/share/macports/macports-pubkey.pem

Reported by: michael.cox1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: expat

Description

Attempting to install arb on OSX 10.11.6 El Capitan. Fresh install of macports, no other ports previously installed. Have xcode, plus additional tools and xquartz. Have accepted xcode license.

sudo port install arb

fails with warning failed to verify signature for archive and errors for archivefetch of expat and install of expat.

Attachments (1)

main.log (2.5 KB) - added by michael.cox1@… 8 years ago.

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by michael.cox1@…

Attachment: main.log added

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

Cc: matt.cottrell@… removed
Port: arb removed
Summary: arb 6.0.4 Install Failed Signatureexpat: failed verification with key /opt/local/share/macports/macports-pubkey.pem

Can't really explain why that would have happened. Have you tried again? If the same problem occurs again when you try to install arb, does it also happen when you try to install expat directly? If not, try installing other dependencies of arb manually first; this could be another manifestation of #50986.

comment:2 Changed 8 years ago by michael.cox1@…

Thanks - just tried again, same error. Same error when trying expat directly and then also with other dependencies (tried xfig, spidermonkey, ncurses). Followed #50986 and I can successfully ping packages.macports.org so might not be completely the same? Will try uninstalling and reinstalling macports.

[Edit] Uninstalling per https://guide.macports.org/chunked/installing.macports.uninstalling.html and reinstalling from the .pkg had no effect, same error.

Last edited 8 years ago by michael.cox1@… (previous) (diff)

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, then it's not #50986.

If it's a fresh install of MacPorts, it seems unlikely that uninstalling and reinstalling it would change anything.

Since the error message is about openssl verification failure, I would investigate whether your /usr/bin/openssl command is working.

comment:4 Changed 8 years ago by michael.cox1@…

openssl seems to be functioning fine, I can generate keys etc. It is version 0.9.8zh that comes with el capitan and the current version is 1.1.0. Does macports require the current version?

comment:5 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

MacPorts requires whatever version of openssl came with your OS. I'm running out of ideas... Is it possible the MacPorts public key is missing or wrong or not readable on your system?

comment:6 Changed 8 years ago by larryv (Lawrence Velázquez)

:msg:archivefetch --->  Attempting to fetch expat-2.2.0_0.darwin_15.x86_64.tbz2.rmd160 from http://nou.nc.packages.macports.org/pub/macports/packages.macports.org/expat
:debug:archivefetch failed verification with key /opt/local/share/macports/macports-pubkey.pem
:debug:archivefetch openssl output: Verification Failure

Ryan: I wonder if there’s something funny about this mirror? Haven’t we seen issues with it before?

Michael: Can you try this?

  1. Run sudo port install arb and verify that you still see the problem.
  2. Uncomment the host_blacklist line in /opt/local/etc/macports/macports.conf.
  3. Set it to “nou.nc.packages.macports.org”.
  4. Try sudo port install arb again.

comment:7 Changed 8 years ago by michael.cox1@…

Thanks for your help Larry, Ryan,

Sorry for delay have been at a series of meetings. Haven't installed anything or changed anything since the last discussion. Tried the command again and it has worked, I had to install xorg-libXt separately as needed to be run with +flat_namespace, but then ran sudo port install arb again and all has been fine.

Checking where it looked for expat:

--->  Fetching archive for expat
--->  Attempting to fetch expat-2.2.0_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/expat
--->  Attempting to fetch expat-2.2.0_0.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/expat

Realised there's no log file when installation works, so hopefully this is correct? Anyway installation now successful, thanks for your help and let me know if there's any further info that'd be helpful in case this is something that might happen again.

Cheers

Mike

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

Resolution: worksforme
Status: newclosed

I just tried installing the package from the nou.nc server and it worked fine:

$ port -b install expat -universal
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.2.0_0.darwin_15.x86_64.tbz2 from http://nou.nc.packages.macports.org/pub/macports/packages.macports.org/expat
--->  Attempting to fetch expat-2.2.0_0.darwin_15.x86_64.tbz2.rmd160 from http://nou.nc.packages.macports.org/pub/macports/packages.macports.org/expat
--->  Installing expat @2.2.0_0
--->  Deactivating expat @2.2.0_0+universal
--->  Activating expat @2.2.0_0
--->  Cleaning expat

So, not sure why it didn't work for you. Glad you got it working now.

Note: See TracTickets for help on using tickets.