Segmentation fault from trying to install virtualbox

When I try to install virtualbox I always get segmentation fault and pacman gets locked.

~$ sudo pacman -S virtualbox
razreševanje odvisnosti...

error: segmentation fault
Please submit a full bug report with --debug if appropriate.
Napaka segmentacije

running with --debug

~$ sudo pacman -S virtualbox --debug
debug: pacman v6.0.1 - libalpm v13.0.1
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: Architecture: auto
debug: config: arch: x86_64
debug: config: chomp
debug: config: verbosepkglists
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 79: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 82: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 88: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 97: including /etc/pacman.d/mirrorlist
debug: config: new section 'endeavouros'
debug: config: SigLevel: PackageRequired
debug: config file /etc/pacman.conf, line 101: including /etc/pacman.d/endeavouros-mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: Datoteka ali imenik s tem imenom ne obstaja
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : manjka PGP podpis
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': https://mirror.luzea.de/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://pkg.fef.moe/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.moson.org/arch/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.chaoticum.net/arch/core/os/x86_64
debug: adding new server URL to database 'core': https://ftp.halifax.rwth-aachen.de/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.f4st.host/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://phinau.de/arch/core/os/x86_64
debug: adding new server URL to database 'core': https://archimonde.ts.si/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.thaller.ws/core/os/x86_64
debug: adding new server URL to database 'core': https://archmirror.it/repos/core/os/x86_64
debug: adding new server URL to database 'core': https://geo.mirror.pkgbuild.com/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.rackspace.com/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: Datoteka ali imenik s tem imenom ne obstaja
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : manjka PGP podpis
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': https://mirror.luzea.de/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://pkg.fef.moe/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.moson.org/arch/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.chaoticum.net/arch/extra/os/x86_64
debug: adding new server URL to database 'extra': https://ftp.halifax.rwth-aachen.de/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.f4st.host/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://phinau.de/arch/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archimonde.ts.si/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.thaller.ws/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archmirror.it/repos/extra/os/x86_64
debug: adding new server URL to database 'extra': https://geo.mirror.pkgbuild.com/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.rackspace.com/archlinux/extra/os/x86_64
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: Datoteka ali imenik s tem imenom ne obstaja
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : manjka PGP podpis
debug: missing optional signature
debug: setting usage of 15 for community repository
debug: adding new server URL to database 'community': https://mirror.luzea.de/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://pkg.fef.moe/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.moson.org/arch/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.chaoticum.net/arch/community/os/x86_64
debug: adding new server URL to database 'community': https://ftp.halifax.rwth-aachen.de/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.f4st.host/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://phinau.de/arch/community/os/x86_64
debug: adding new server URL to database 'community': https://archimonde.ts.si/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://archlinux.thaller.ws/community/os/x86_64
debug: adding new server URL to database 'community': https://archmirror.it/repos/community/os/x86_64
debug: adding new server URL to database 'community': https://geo.mirror.pkgbuild.com/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.rackspace.com/archlinux/community/os/x86_64
debug: registering sync database 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: Datoteka ali imenik s tem imenom ne obstaja
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : manjka PGP podpis
debug: missing optional signature
debug: setting usage of 15 for multilib repository
debug: adding new server URL to database 'multilib': https://mirror.luzea.de/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://pkg.fef.moe/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.moson.org/arch/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.chaoticum.net/arch/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://ftp.halifax.rwth-aachen.de/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.f4st.host/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://phinau.de/arch/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archimonde.ts.si/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.thaller.ws/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archmirror.it/repos/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://geo.mirror.pkgbuild.com/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.rackspace.com/archlinux/multilib/os/x86_64
debug: registering sync database 'endeavouros'
debug: database path for tree endeavouros set to /var/lib/pacman/sync/endeavouros.db
debug: "/var/lib/pacman/sync/endeavouros.db.sig" is not readable: Datoteka ali imenik s tem imenom ne obstaja
debug: sig path /var/lib/pacman/sync/endeavouros.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : manjka PGP podpis
debug: missing optional signature
debug: setting usage of 15 for endeavouros repository
debug: adding new server URL to database 'endeavouros': https://mirror.alpix.eu/endeavouros/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://de.freedif.org/EndeavourOS/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://mirror.moson.org/endeavouros/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://ftp.acc.umu.se/mirror/endeavouros/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://mirror.linux.pizza/endeavouros/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://ca.gate.endeavouros.com/endeavouros/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://mirror.jingk.ai/endeavouros/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://mirror.freedif.org/EndeavourOS/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://endeavour.remi.lu/repo/endeavouros/x86_64
debug: adding new server URL to database 'endeavouros': https://mirror.funami.tech/endeavouros/repo/endeavouros/x86_64
debug: loading package cache for repository 'core'
debug: opening archive /var/lib/pacman/sync/core.db
debug: added 255 packages to package cache for db 'core'
debug: loading package cache for repository 'extra'
debug: opening archive /var/lib/pacman/sync/extra.db
debug: added 3035 packages to package cache for db 'extra'
debug: loading package cache for repository 'community'
debug: opening archive /var/lib/pacman/sync/community.db
debug: added 9162 packages to package cache for db 'community'
debug: adding package 'virtualbox'
debug: loading package cache for repository 'local'
debug: added 1487 packages to package cache for db 'local'
debug: adding package virtualbox-6.1.34-2 to the transaction add list
razreševanje odvisnosti...
debug: resolving target's dependencies
debug: started resolving dependencies
debug: checkdeps: package virtualbox-6.1.34-2
debug: checkdeps: missing dependency 'sdl' for package 'virtualbox'
debug: checkdeps: missing dependency 'VIRTUALBOX-HOST-MODULES' for package 'virtualbox'
debug: loading package cache for repository 'multilib'
debug: opening archive /var/lib/pacman/sync/multilib.db
debug: added 278 packages to package cache for db 'multilib'
debug: loading package cache for repository 'endeavouros'
debug: opening archive /var/lib/pacman/sync/endeavouros.db
debug: added 62 packages to package cache for db 'endeavouros'
debug: provider found (sdl12-compat provides sdl)
debug: started resolving dependencies
debug: checkdeps: package sdl12-compat-1.2.52-2
debug: finished resolving dependencies
debug: pulling dependency sdl12-compat (needed by virtualbox)
debug: provider found (virtualbox-host-dkms provides VIRTUALBOX-HOST-MODULES)
debug: provider found (virtualbox-host-modules-arch provides VIRTUALBOX-HOST-MODULES)

error: segmentation fault
Please submit a full bug report with --debug if appropriate.
Napaka segmentacije

Try updating your system with:

pacman -Syyu

first and then try installing VB again.

2 Likes

Did you follow the wiki to install virtualbox?

sudo pacman -S virtualbox virtualbox-guest-iso

1 Like

Yes I was installing it based on the steps from the wiki.
I can install the linux-headers and then virtualbox-guest-iso.
I only cant get virtualbox to install.

sudo pacman -S virtualbox virtualbox-guest-iso

gives the same error.

~$ sudo pacman -S virtualbox virtualbox-guest-iso
opozorilo: virtualbox-guest-iso-6.1.34-1 je posodobljen -- ponovno nameščanje
razreševanje odvisnosti...

error: segmentation fault
Please submit a full bug report with --debug if appropriate.
Napaka segmentacije

Unfortunately it didn’t fix it. I get the exact same error.

Try the following:

  1. Refresh your mirrorlist from the welcome app or run something like:

    reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist

    Note that this command could take some time to run.

  2. sudo mv /var/lib/pacman/sync /var/lib/pacman/sync.orig

  3. sudo pacman -Syyu

and then try again to install VB.

1 Like

I installed the aur virtualbox-bin package with yay and it installs without any issues. After I tried to replace the install with the regular virtualbox install and i got this:

~$ sudo pacman -S virtualbox
razreševanje odvisnosti...
iskanje spornih paketkov...
:: virtualbox in virtualbox-bin sta v sporu. Ali naj odstranim virtualbox-bin? [d/N] d
napaka: priprava na prenos je spodletela (ni mogoče izpolniti odvisnosti)
:: unable to satisfy dependency 'VIRTUALBOX-HOST-MODULES' required by virtualbox

I dont know what changed from before (tried installing this but it didn’t work then) but after getting virtualbox-host-modules-arch

sudo pacman -S virtualbox-host-modules-arch 

virtualbox now installs.

1 Like

You probably selected the wrong one to install originally. It has to be the virtual-host-modules-arch and you probably selected the first one in the list.

From the wiki:
You will be asked for installing the core-packages:

  • for linux kernel choose virtualbox-host-modules-arch
  • for other kernels (like LTS) choose virtualbox-host-dkms