You are not logged in.

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

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

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: 24,378
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,956

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.

Offline

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

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

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: 7

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: 7

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: 29,049
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,956

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)

Offline

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

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,535
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,956

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

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

Offline

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

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

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: 686

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,956

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

haveged is running by default on the ISO

Offline

#15 2020-03-30 17:29:34

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

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

Scimmia wrote:

haveged is running by default on the ISO

thanks, tried this and it does not work

Offline

#16 2020-04-23 00:10:41

oncee
Member
Registered: 2020-04-22
Posts: 2

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

You didn't mention your OS. I assume you were on windows 10 and using virtualbox v6.1, also you had Hyper-V feature enabled.
If the assumption is correct, then the issue was related to Hyper-V. Virtualbox seems performing as "normal" when you have Hyper-V enabled. However, you would find some issues like above.
 
You may try to disable Hyper-V properly on windows (uninstall this feature).
Hope this helps and to get this issue resolved.

Last edited by oncee (2020-04-23 00:12:16)

Offline

#17 2020-04-23 16:51:15

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

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

oncee wrote:

You didn't mention your OS. I assume you were on windows 10 and using virtualbox v6.1, also you had Hyper-V feature enabled.
If the assumption is correct, then the issue was related to Hyper-V. Virtualbox seems performing as "normal" when you have Hyper-V enabled. However, you would find some issues like above.
 
You may try to disable Hyper-V properly on windows (uninstall this feature).
Hope this helps and to get this issue resolved.

The above are all true.  I mostly gave up and turned to Debian 10. I may give a shot later on Windows 7.

Thanks a lot,

Offline

#18 2020-04-24 17:12:56

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

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

oncee wrote:

You didn't mention your OS. I assume you were on windows 10 and using virtualbox v6.1, also you had Hyper-V feature enabled.
If the assumption is correct, then the issue was related to Hyper-V. Virtualbox seems performing as "normal" when you have Hyper-V enabled. However, you would find some issues like above.
 
You may try to disable Hyper-V properly on windows (uninstall this feature).
Hope this helps and to get this issue resolved.

Hi oncee, yes it is working on windows 7/virtualbox.  Thank you so much, I can start to build my system.

Offline

#19 2020-05-07 11:18:43

oncee
Member
Registered: 2020-04-22
Posts: 2

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

Jjcpa wrote:
oncee wrote:

You didn't mention your OS. I assume you were on windows 10 and using virtualbox v6.1, also you had Hyper-V feature enabled.
If the assumption is correct, then the issue was related to Hyper-V. Virtualbox seems performing as "normal" when you have Hyper-V enabled. However, you would find some issues like above.
 
You may try to disable Hyper-V properly on windows (uninstall this feature).
Hope this helps and to get this issue resolved.

Hi oncee, yes it is working on windows 7/virtualbox.  Thank you so much, I can start to build my system.

No worries! Glad to hear you've got things sorted out!

Offline

#20 2020-07-29 13:34:04

vivek000
Member
Registered: 2020-07-29
Posts: 1

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

I am using Windows 10 + Virtual Box where I am facing the same issue with pgp sigs.
Is there a solution for this issue yet ?

Offline

#21 2020-08-08 14:45:23

dumphblooz
Member
Registered: 2012-06-15
Posts: 15

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

Same issue sad

Offline

#22 2020-08-10 03:52:55

glombus
Member
Registered: 2018-02-27
Posts: 5

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

I encountered the same issue today on Win 10 Pro amd64 Build 19041, VirtualBox Version 6.1.12 r139181 (Qt5.6.2) with Arch 64-bit guest (no EFI), Arch ISO 2020.08.01 x86_64. Hyper-V is *not* enabled.

Confirmed the guest clock is accurate. In sync with the system clock and the real world at UTC.

Checking keys in keyring succeeds, checking package integrity fails as described by others here as

...invalid or corrupted package (PGP signature)

Confirmed haveged is running already by default.

I installed QEMU for Windows on the same system to troubleshoot and found everything worked. No issues there. I'm also able to enable and use Hyper-V to install Arch with their hypervisor.

I went back and explicitly disabled acceleration (on by default) for the VirtualBox VM, but that still failed on the PGP signing. Seems like there's something specific to VirtualBox preventing PGP validation from working properly. At least, that's my experience.

Offline

#23 2020-08-10 03:54:22

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

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

glombus wrote:

Hyper-V is *not* enabled.

And how exactly are you disabling it? We're not talking about guest paravirtualization.

Offline

#24 2020-08-10 04:19:25

glombus
Member
Registered: 2018-02-27
Posts: 5

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

I am sorry. I should be more explicit and I did not mean to cause any confusion. CPU Virtualization is enabled in BIOS settings. The Windows Hyper-V features (management tools, Hyper-V Hypervisor, Hyper-V Services) are all disabled in the Windows Features interface.

Offline

#25 2020-08-10 20:17:10

glombus
Member
Registered: 2018-02-27
Posts: 5

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

For some context, I found this post after following a couple reddit posts and some broad Googling.

On a random suggestion, I downgraded VirtualBox to 6.0.x, but no joy. Then I found a separate distinct error.

WHvSetupPartition failed - VERR_NEM_VM_CREATE_FAILED

That led me to a similar kubernetes issue and a VirtualBox forum post.

Running this command in Windows with a reboot got Arch install/pacstrap/PGP to work properly for me with the latest VirtualBox.

bcdedit /set hypervisorlaunchtype off

Everything working for my situation now.

Last edited by glombus (2020-08-10 20:17:51)

Offline

Board footer

Powered by FluxBB