Opened 15 months ago

Last modified 15 months ago

#66747 assigned defect

zlib @1.2.13 archive signature verification failure

Reported by: rowlandcarson Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: zlib

Description (last modified by jmroot (Joshua Root))

After installing MacPorts I tried to install GPXSee and got the following error message:

--->  Fetching archive for zlib
--->  Attempting to fetch zlib-1.2.13_0.darwin_21.arm64.tbz2 from https://packages.macports.org/zlib
--->  Attempting to fetch zlib-1.2.13_0.darwin_21.arm64.tbz2.rmd160 from https://packages.macports.org/zlib
Warning: Failed to verify signature for archive!
Error: Failed to archivefetch zlib: version @1.2.13_0
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zlib/zlib/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port GPXSee failed

I am attaching the file referred to above.

in friendship

Rowland

Attachments (1)

main.log (5.8 KB) - added by rowlandcarson 15 months ago.
error log file

Download all attachments as: .zip

Change History (6)

Changed 15 months ago by rowlandcarson

Attachment: main.log added

error log file

comment:1 Changed 15 months ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to ryandesign
Port: zlib added; GPXSee removed
Status: newassigned
Summary: GPXSee install failedzlib @1.2.13 archive signature verification failure
:debug:archivefetch 4378002988:error:02FFF00D:system library:func(4095):Permission denied:/AppleInternal/Library/BuildRoots/a0876c02-1788-11ed-b9c4-96898e02b808/Library/Caches/com.apple.xbs/Sources/libressl/libressl-2.8/crypto/bio/bss_file.c:255:fopen('/opt/local/share/macports/macports-pubkey.pem', 'r')

Just to check, this isn't a non-root installation? What do the permissions look like on /opt/local/share/macports/macports-pubkey.pem?

comment:2 Changed 15 months ago by rowlandcarson

I can cd to /opt/local but no lower. I get the following:

Rowland@Mac-mini local % pwd
/opt/local
Rowland@Mac-mini local % ls -ld share
drwx------  9 506  wheel  288 20 Jan 12:53 share

I am a little nervous about using chmod - can you offer advice about what permission to set as I go down the hierarchy, please?

in friendship

Rowland

Last edited 15 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Normaly the permissions of that directory should be 755. Here's what I see on my system:

% cd /opt/local && ls -ld *
drwxr-xr-x     3 root  wheel     96 Dec  1  2021 Library
drwxr-xr-x  2195 root  wheel  70240 Jan 23 04:16 bin
drwxr-xr-x    48 root  wheel   1536 Jan 21 04:43 etc
drwxr-xr-x   774 root  wheel  24768 Jan 23 04:16 include
drwxr-xr-x  1682 root  wheel  53824 Jan 23 04:16 lib
drwxr-xr-x    41 root  wheel   1312 Jan 21 03:48 libexec
lrwxr-xr-x     1 root  wheel      9 Nov 28  2021 man -> share/man
drwxr-xr-x    62 root  wheel   1984 Jan 17 23:21 sbin
drwxr-xr-x   137 root  wheel   4384 Jan 21 04:10 share
drwxr-xr-x     4 root  wheel    128 Sep  9 18:37 src
drwxr-xr-x    12 root  wheel    384 Jan 11 18:53 var
drwxr-xr-x     3 root  wheel     96 Jan 17 22:58 www

Is it only /opt/local/share that has 700 permissions on your system or also other directories?

comment:4 Changed 15 months ago by rowlandcarson

I see:

Rowland@Mac-mini local % ls -ld *
drwxr-xr-x    7 root  wheel   224 22 Nov  2020 CloudBerry Backup
drwxrwxrwx   11 root  wheel   352 20 Jan 12:53 bin
drwxrwxrwx    4 root  wheel   128 20 Jan 12:53 etc
drwxr-xr-x    3 root  wheel    96 20 Oct 06:11 include
drwxrwxrwx  167 root  wheel  5344 20 Jan 12:53 lib
drwxr-xr-x    4 root  wheel   128 20 Oct 06:11 libexec
lrwxr-xr-x    1 root  wheel     9 20 Jan 12:53 man -> share/man
drwxr-xr-x    3 root  wheel    96 20 Oct 06:11 sbin
drwx------    9 506   wheel   288 20 Jan 12:53 share
drwxr-xr-x    7 root  wheel   224 20 Oct 06:11 var

in friendship

Rowland

Last edited 15 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Then I'd start by making your top-level directory permissions look like mine.

sudo chmod 755 /opt/local/{bin,etc,lib,share}

Then you can check if any subdirectories have similar problems.

Note: See TracTickets for help on using tickets.