You are not logged in.

#1 2020-03-21 04:01:19

Jjcpa
Member
Registered: 2020-03-21
Posts: 4

Installation failed on Virtualbox: PGP errors when running pacstrap

Hi, I am new here but use MX Linux for a while. I struggled several hours today trying to install arch linux on virtualbox and failed. 

I followed installation guide until I ran :
pacstrap /mnt base linux linux-firm

The errors I got are:
error: pam: signature from "Evanglelos Foutras <evangelos@foutrelis.com>" is invalid
:: File /mnt/var/cache/pacman/pkg/pam-1.3.1-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature))
Do you want to delete it? [Y/n]
...
(many similiar errors here)
...
errror: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded
==> ERROR: Failed to install packages to new root


Thank you for your help

Jjcpa

Last edited by Jjcpa (2020-03-24 21:16:31)

Offline

#2 2020-03-21 04:07:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 22,778
Website

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

You either followed the installation guide, or that video.  I gather the latter.  That is not supported here.

Further if you want help here, describe your problem here.  Don't link out to where you've cross posted expecting us to dig through some other website to find your problem.  And when you post here, chose a thread title that says something ... anything. (edit: 1 out of 3 covered now).

Last edited by Trilby (2020-03-21 12:31:36)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-03-21 04:10:43

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,511

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

I was just helping someone on IRC with this issue. All 3 of you are in VirtualBox. We tracked it back as far as we could, and gpgme is inexplicably returning a bad sig result, almost has to be a bad calculation related to the virtual machine.

Online

#4 2020-03-21 04:34:59

10PinkPanther
Member
From: Croatia
Registered: 2012-11-10
Posts: 373

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

It happened to me on real hardware during my last install.# pacman -S archlinux-keyring fixed it.

Last edited by 10PinkPanther (2020-03-21 04:35:16)

Offline

#5 2020-03-21 04:36:12

Jjcpa
Member
Registered: 2020-03-21
Posts: 4

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

Thank you for your quick response. The errors are on screen which I cannot copy to here and I did not find a way to attach an image.

I just typed one of them as following. All the others are similar but different packages:

error: pam: signature from "Evanglelos Foutras <evangelos@foutrelis.com>" is invalid
:: File /mnt/var/cache/pacman/pkg/pam-1.3.1-2-x86_64.pkg.tar.xz 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
==> ERROR: Failed to install packages to new root

Offline

#6 2020-03-21 04:48:16

Jjcpa
Member
Registered: 2020-03-21
Posts: 4

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

10PinkPanther wrote:

It happened to me on real hardware during my last install.# pacman -S archlinux-keyring fixed it.

Thanks, I tried this but no luck.

Offline

#7 2020-03-21 04:50:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,455
Website

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

Fix your thread title: the current one is useless: https://wiki.archlinux.org/index.php/Co … ow_to_post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2020-03-21 04:54:43

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,511

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

10PinkPanther wrote:

It happened to me on real hardware during my last install.# pacman -S archlinux-keyring fixed it.

If that fixed it, it's not the same issue. This is where some packages will verify and some won't with the same key.

Edit: for completion, log: http://ix.io/2eNt
and debug: http://ix.io/2eNZ
Notice how linux-api-headers verifies but glibc doesn't, both with the same key. We verified the checksum they had matches my local cache, so it's extremely unlikely that it's corruption.

Last edited by Scimmia (2020-03-21 05:53:44)

Online

#9 2020-03-21 10:47:25

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,459
Website

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

As others have requested, please edit your first post to set a descriptive thread title (e.g. PGP errors when installing on Virtualbox) and clarify the steps that you've followed while attempting to install. As noted, only the steps in the official guide on the wiki are supported. If you have followed some other guide then you will need to address the author of that guide for assistance.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2020-03-27 16:54:01

day4me
Member
Registered: 2020-03-27
Posts: 1

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

Warning: pacman-key depends on system time. If your system clock is wrong, you'll get:
error: PackageName: signature from "User <email@archlinux.org>" is invalid
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occured, no packages were upgraded.

Arch Linux Wiki

Offline

#11 2020-03-27 16:55:27

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,511

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

Again, day4me, same key works for some packages but not others.

Online

#12 2020-03-27 17:59:32

Jjcpa
Member
Registered: 2020-03-21
Posts: 4

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

day4me wrote:

Warning: pacman-key depends on system time. If your system clock is wrong, you'll get:
error: PackageName: signature from "User <email@archlinux.org>" is invalid
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occured, no packages were upgraded.

Arch Linux Wiki

I adjusted system time base on installation guide.

Thanks,

Offline

#13 2020-03-27 19:18:43

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 545

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

I don't think it *should* matter with signature verification, only for key initialization, but it's worth a shot: try to get 'haveged' running - if you can get it installed before you pacstrap, of course. VM guests have notoriously low entropy, maybe it's related?

Offline

#14 2020-03-27 19:28:02

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,511

Re: Installation failed on Virtualbox: PGP errors when running pacstrap

haveged is running by default on the ISO

Online

Board footer

Powered by FluxBB