StrawberryPerl / spbuild

2 stars 7 forks source link

keyring is not writable error from pacman #3

Closed plicease closed 2 years ago

plicease commented 2 years ago

I got a "keyring is not writable" error inside the container following the directions. See:

https://gist.github.com/plicease/83caa202ba7d6a4a3bdb84e87c632437

Was able to work around this by:

rm -r /etc/pacman.d/gnupg/
pacman-key --init
pacman-key --populate msys2

From bash (found via google here: https://stackoverflow.com/questions/62973797/error-installing-sqlite3-public-keyring-not-found)

plicease commented 2 years ago

Actually hrm, after doing that I got this:

# pacman -Sy --noconfirm patch git make autoconf libtool nano automake man flex bison pkg-config
:: Synchronizing package databases...
 mingw32 is up to date
 mingw64 is up to date
 ucrt64 is up to date
 clang64 is up to date
 msys is up to date
warning: nano-6.3-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (53) autoconf2.13-2.13-5  autoconf2.69-2.69-2  autoconf2.71-2.71-1  automake1.11-1.11.6-6  automake1.12-1.12.6-6  automake1.13-1.13.4-7  automake1.14-1.14.1-6
              automake1.15-1.15.1-4  automake1.16-1.16.5-1  diffutils-3.8-3  groff-1.22.4-3  libltdl-2.4.6-14  libpipeline-1.5.4-1  m4-1.4.19-2  perl-Authen-SASL-2.16-2
              perl-Clone-0.45-2  perl-Convert-BinHex-1.125-1  perl-Encode-Locale-1.05-1  perl-Error-0.17029-1  perl-File-Listing-6.15-1  perl-HTML-Parser-3.78-1
              perl-HTML-Tagset-3.20-2  perl-HTTP-Cookies-6.10-1  perl-HTTP-Daemon-6.14-1  perl-HTTP-Date-6.05-1  perl-HTTP-Message-6.36-1  perl-HTTP-Negotiate-6.01-2
              perl-IO-HTML-1.004-1  perl-IO-Socket-SSL-2.074-1  perl-IO-Stringy-2.113-1  perl-LWP-MediaTypes-6.04-1  perl-MIME-tools-5.509-1  perl-MailTools-2.21-1
              perl-Net-HTTP-6.22-1  perl-Net-SMTP-SSL-1.04-1  perl-Net-SSLeay-1.90-1  perl-TermReadKey-2.38-2  perl-TimeDate-2.33-1  perl-Try-Tiny-0.31-1  perl-URI-5.10-1
              perl-WWW-RobotRules-6.02-2  perl-libwww-6.60-1  autoconf-wrapper-15-1  automake-wrapper-11-4  bison-3.8.2-3  flex-2.6.4-2  git-2.37.1-1  libtool-2.4.6-14
              make-4.3-3  man-db-2.10.2-2  nano-6.3-1  patch-2.7.6-1  pkgconf-1.8.0-1

Total Download Size:    0.28 MiB
Total Installed Size:  78.73 MiB
Net Upgrade Size:      75.83 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 perl-Clone-0.45-2-x86_64                                                    11.3 KiB  45.3 KiB/s 00:00 [############################################################] 100%
 perl-IO-HTML-1.004-1-any                                                    16.1 KiB  33.2 KiB/s 00:00 [############################################################] 100%
 perl-HTTP-Cookies-6.10-1-any                                                23.4 KiB  44.1 KiB/s 00:01 [############################################################] 100%  perl-Net-SSLeay-1.90-1-x86_64                                              236.3 KiB   202 KiB/s 00:01 [############################################################] 100%  Total (4/4)                                                                287.0 KiB   204 KiB/s 00:01 [############################################################] 100%
(53/53) checking keys in keyring                                                                        [############################################################] 100%
(53/53) checking package integrity                                                                      [############################################################] 100%
error: perl-Clone: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/perl-Clone-0.45-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: perl-IO-HTML: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/perl-IO-HTML-1.004-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: perl-HTTP-Cookies: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/perl-HTTP-Cookies-6.10-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: perl-Net-SSLeay: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/perl-Net-SSLeay-1.90-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

ContainerAdministrator@2c1b3cc45093 MINGW64 /c/spbuild

Not sure if that was because of my workaround or something else.

plicease commented 2 years ago

This turned out to be user error, I didn't use the correct msys2_shell.cmd incantation