Menu

#96 Unable to update packages

1.0
closed
Alexx83
None
2015-11-24
2014-10-13
No

Appearently pacman has decided that all packages are corrupt due to invalid gpg keys.

I have tried initializing the gpg keys using pacman-key --init (and the other steps stated in a previous ticket of mine), but that did not help.

Now what?

Discussion

  • Alexx83

    Alexx83 - 2014-10-13

    Do you have installed gpg4win? If yes that it conflict with msys one

     
    • Brisingr Aerowing

      Ah, I see. I don't use gpg4win. but I do have it installed, so I will just uninstall it. I can't remember why I installed it in the first place, anyways.

       
  • Alexx83

    Alexx83 - 2014-10-27
    • status: open --> closed
    • assigned_to: Alexx83
     
  • Alexx83

    Alexx83 - 2014-10-27

    Updated GPGME solve this problem even if you have gpg4win installed.

     
  • Leyli Cecil

    Leyli Cecil - 2015-08-23

    Unfortunately, this issue appears to have resurfaced. I do not have gpg4win installed. I also do not have any suspicious directories in my %PATH% (e.g., Cygwin).

    After a fresh installation of 64-bit MSYS2, I followed the "Updating packages" instructions at http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/. Since the "update-core" script does not appear to be provided by the current MSYS2 installer, I followed the non-"update-core" instructions. Specifically:

    $ pacman -Sy
    $ pacman --needed -S bash pacman pacman-mirrors msys2-runtime
    $ exit

    These commands all succeed. I restart MSYS2 Shell and then run:

    $ pacman -Su

    This command always fails with the following output:

    Administrator@SIDEREAL MSYS ~
    $ pacman -Su
    :: Starting full system upgrade...
    resolving dependencies...
    looking for conflicting packages...

    Packages (25) ca-certificates-20150426-1 curl-7.43.0-1 file-5.24-1
    gawk-4.1.3-1 gcc-libs-4.9.2-5 info-6.0-1 less-479-1
    libcurl-7.43.0-1 libidn-1.32-1 libnettle-3.1.1-1
    libopenssl-1.0.2.d-1 libpcre-8.37-1 libpcre16-8.37-1
    libpcre32-8.37-1 libpcrecpp-8.37-1 libpcreposix-8.37-1
    libreadline-6.3.008-5 libssh2-1.6.0-1 mintty-1~2.0.3-1
    mpfr-3.1.3.p0-1 ncurses-6.0.20150627-2 openssl-1.0.2.d-1
    pcre-8.37-1 tzcode-2015.e-1 which-2.21-2

    Total Download Size: 8.48 MiB
    Total Installed Size: 37.78 MiB
    Net Upgrade Size: 1.07 MiB

    :: Proceed with installation? [Y/n] y
    :: Retrieving packages ...
    gcc-libs-4.9.2-5-x86_64 646.8 KiB 300K/s 00:02 [#####################] 100%
    libopenssl-1.0.2.d-... 805.3 KiB 223K/s 00:04 [#####################] 100%
    openssl-1.0.2.d-1-x... 1321.1 KiB 484K/s 00:03 [#####################] 100%
    ncurses-6.0.2015062... 1111.0 KiB 475K/s 00:02 [#####################] 100%
    libpcre-8.37-1-x86_64 82.2 KiB 362K/s 00:00 [#####################] 100%
    less-479-1-x86_64 88.2 KiB 138K/s 00:01 [#####################] 100%
    info-6.0-1-x86_64 197.6 KiB 189K/s 00:01 [#####################] 100%
    ca-certificates-201... 384.9 KiB 223K/s 00:02 [#####################] 100%
    libidn-1.32-1-x86_64 169.0 KiB 169K/s 00:01 [#####################] 100%
    libssh2-1.6.0-1-x86_64 156.9 KiB 141K/s 00:01 [#####################] 100%
    libcurl-7.43.0-1-x86_64 167.8 KiB 207K/s 00:01 [#####################] 100%
    curl-7.43.0-1-x86_64 528.0 KiB 276K/s 00:02 [#####################] 100%
    file-5.24-1-x86_64 386.3 KiB 290K/s 00:01 [#####################] 100%
    mpfr-3.1.3.p0-1-x86_64 227.7 KiB 425K/s 00:01 [#####################] 100%
    libreadline-6.3.008... 243.1 KiB 359K/s 00:01 [#####################] 100%
    gawk-4.1.3-1-x86_64 951.1 KiB 452K/s 00:02 [#####################] 100%
    libnettle-3.1.1-1-x... 91.2 KiB 236K/s 00:00 [#####################] 100%
    libpcre16-8.37-1-x86_64 78.3 KiB 219K/s 00:00 [#####################] 100%
    libpcre32-8.37-1-x86_64 73.0 KiB 168K/s 00:00 [#####################] 100%
    libpcrecpp-8.37-1-x... 10.7 KiB 594K/s 00:00 [#####################] 100%
    libpcreposix-8.37-1... 4.1 KiB 815K/s 00:00 [#####################] 100%
    mintty-1~2.0.3-1-x86_64 100.5 KiB 399K/s 00:00 [#####################] 100%
    pcre-8.37-1-x86_64 572.5 KiB 428K/s 00:01 [#####################] 100%
    tzcode-2015.e-1-x86_64 272.8 KiB 352K/s 00:01 [#####################] 100%
    which-2.21-2-x86_64 17.2 KiB 62.8K/s 00:00 [#####################] 100%
    (25/25) checking keys in keyring [#####################] 100%
    (25/25) checking package integrity [#####################] 100%
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    :: File /var/cache/pacman/pkg/gcc-libs-4.9.2-5-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    :: File /var/cache/pacman/pkg/libopenssl-1.0.2.d-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/openssl-1.0.2.d-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/ncurses-6.0.20150627-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libpcre-8.37-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/less-479-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/info-6.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/ca-certificates-20150426-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libidn-1.32-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libssh2-1.6.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libcurl-7.43.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/curl-7.43.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/file-5.24-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/mpfr-3.1.3.p0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libreadline-6.3.008-5-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/gawk-4.1.3-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libnettle-3.1.1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libpcre16-8.37-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libpcre32-8.37-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libpcrecpp-8.37-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/libpcreposix-8.37-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/mintty-1~2.0.3-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/pcre-8.37-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/tzcode-2015.e-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    :: File /var/cache/pacman/pkg/which-2.21-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.

    I've tried pretty much everything I can think of. I removed "/etc/pacman.d/gnupg". I followed the instructions at https://sourceforge.net/p/msys2/tickets/87 (e.g., "pacman-key --init", "pacman-key --populate msys2", and so on). I uninstalled and reinstalled MSYS2.

    I'm out of ideas. Ideally, it'd be great if I could just ignore such "corruption" errors. Is that feasible? All downloaded tarballs appear to be valid archives and hence not corrupt. (Don't quote me on that.)

    This renders MSYS2 unusable for me. With a heavy heart, I'll probably have to slink back to Cygwin-based MinGW-64 until someone gets a handle on what's going on here.

     

    Last edit: Leyli Cecil 2015-08-23
MongoDB Logo MongoDB