Setup error: virtualbox - installArchives() failed

While running ThinLinc Server Setup for the first time on a new machine, I ran into the following error:

2021-12-03 11:18:00,727: Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
2021-12-03 11:18:00,727: Errors were encountered while processing:
2021-12-03 11:18:00,727: virtualbox-ext-pack
2021-12-03 11:18:00,727: failed to install packages with reason: installArchives() failed

Does anyone know what’s going on there and how to fix it?

Full content of var.log.tlsetup.log:

2021-12-03 11:16:20,036: *** tl-setup started ***
2021-12-03 11:16:20,036: Architecture: x86_64
2021-12-03 11:16:20,036: Distribution: None
2021-12-03 11:16:20,036: Distribution version: 20.2
2021-12-03 11:16:20,036: Distribution family: Ubuntu
2021-12-03 11:16:20,037: Package format: deb
2021-12-03 11:16:20,037: Creating /usr/bin/thinlinc-login
2021-12-03 11:16:36,716: Server type: Master
2021-12-03 11:16:36,720: Running system checks...
2021-12-03 11:16:36,721: Checking for required libraries...
2021-12-03 11:16:36,729: 'libX11.so.6' found
2021-12-03 11:16:36,738: 'libc.so.6' found
2021-12-03 11:16:36,746: 'libcrypt.so.1' found
2021-12-03 11:16:36,754: 'libdl.so.2' found
2021-12-03 11:16:36,763: 'libgcc_s.so.1' found
2021-12-03 11:16:36,770: 'libm.so.6' found
2021-12-03 11:16:36,776: 'libnspr4.so' found
2021-12-03 11:16:36,781: 'libnss3.so' found
2021-12-03 11:16:36,786: 'libpam.so.0' found
2021-12-03 11:16:36,790: 'libpthread.so.0' found
2021-12-03 11:16:36,794: 'librt.so.1' found
2021-12-03 11:16:36,802: 'libssl3.so' found
2021-12-03 11:16:36,810: 'libutil.so.1' found
2021-12-03 11:16:36,818: 'libz.so.1' found
2021-12-03 11:16:36,828: 'libgssapi_krb5.so.2' found
2021-12-03 11:16:36,828: Checking for required binaries...
2021-12-03 11:16:36,828: 'gs' found
2021-12-03 11:16:36,828: 'ss' found
2021-12-03 11:16:36,828: 'pgrep' found
2021-12-03 11:16:36,829: '/usr/sbin/sendmail' not found
2021-12-03 11:16:36,829: 'xauth' found
2021-12-03 11:16:36,829: NFS support not found
2021-12-03 11:16:36,829: sshd not running
2021-12-03 11:16:36,829: PyGObject and GTK+ found
2021-12-03 11:16:36,830: Python module ldap not found
2021-12-03 11:16:36,830: Testing ps2pdf...
2021-12-03 11:16:37,008: ps2pdf seems to work
2021-12-03 11:16:37,009: Checking if CUPS is running...
2021-12-03 11:16:37,009: Something is responding on port 631. Assuming it is CUPS
2021-12-03 11:16:37,009: CUPS is responding on /var/run/cups/cups.sock
2021-12-03 11:16:37,009: Looking for CUPS directories...
2021-12-03 11:16:37,009: Found CUPS prefix: /usr
2021-12-03 11:16:37,014: Found CUPS server directory: /usr/lib/cups
2021-12-03 11:16:37,071: No supported firewall backend detected.
2021-12-03 11:16:37,075: SELinux disabled or not present
2021-12-03 11:16:37,098: AppArmor enabled
2021-12-03 11:16:37,099: System checks done.
2021-12-03 11:16:48,029: Resolving packages...
2021-12-03 11:16:52,334: Selecting candidate "postfix" as provider for requested package "default-mta"
2021-12-03 11:16:52,371: package 'postfix' flagged for installation.
2021-12-03 11:16:52,371: Packages to install:
2021-12-03 11:16:52,371:  - postfix-3.4.13-0ubuntu1.2.amd64
2021-12-03 11:17:33,462: Running dpkg
2021-12-03 11:17:33,704: Preparing postfix (amd64)
2021-12-03 11:17:33,804: Unpacking postfix (amd64)
2021-12-03 11:17:34,086: Installing postfix (amd64)
2021-12-03 11:17:34,159: Running dpkg
2021-12-03 11:17:34,190: Preparing to configure virtualbox-ext-pack (amd64)
2021-12-03 11:17:34,291: Configuring virtualbox-ext-pack (amd64)
2021-12-03 11:17:46,811: Preparing to configure postfix (amd64)
2021-12-03 11:17:46,889: Configuring postfix (amd64)
2021-12-03 11:17:56,516: Installed postfix (amd64)
2021-12-03 11:18:00,725: Preconfiguring packages ...
2021-12-03 11:18:00,725: Selecting previously unselected package postfix.
2021-12-03 11:18:00,725: (Reading database ...
2021-12-03 11:18:00,725: (Reading database ... 5%
2021-12-03 11:18:00,725: (Reading database ... 10%
2021-12-03 11:18:00,725: (Reading database ... 15%
2021-12-03 11:18:00,725: (Reading database ... 20%
2021-12-03 11:18:00,725: (Reading database ... 25%
2021-12-03 11:18:00,725: (Reading database ... 30%
2021-12-03 11:18:00,725: (Reading database ... 35%
2021-12-03 11:18:00,725: (Reading database ... 40%
2021-12-03 11:18:00,725: (Reading database ... 45%
2021-12-03 11:18:00,725: (Reading database ... 50%
2021-12-03 11:18:00,725: (Reading database ... 55%
2021-12-03 11:18:00,725: (Reading database ... 60%
2021-12-03 11:18:00,725: (Reading database ... 65%
2021-12-03 11:18:00,726: (Reading database ... 70%
2021-12-03 11:18:00,726: (Reading database ... 75%
2021-12-03 11:18:00,726: (Reading database ... 80%
2021-12-03 11:18:00,726: (Reading database ... 85%
2021-12-03 11:18:00,726: (Reading database ... 90%
2021-12-03 11:18:00,726: (Reading database ... 95%
2021-12-03 11:18:00,726: (Reading database ... 100%
2021-12-03 11:18:00,726: (Reading database ... 466778 files and directories currently installed.)
2021-12-03 11:18:00,726: Preparing to unpack .../postfix_3.4.13-0ubuntu1.2_amd64.deb ...
2021-12-03 11:18:00,726: Unpacking postfix (3.4.13-0ubuntu1.2) ...
2021-12-03 11:18:00,726: Setting up virtualbox-ext-pack (6.1.26-2~ubuntu1.20.04.1) ...
2021-12-03 11:18:00,726: virtualbox-ext-pack: downloading: https://download.virtualbox.org/virtualbox/6.1.26/Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack
2021-12-03 11:18:00,726: The file will be downloaded into /usr/share/virtualbox-ext-pack
2021-12-03 11:18:00,726: License accepted.
2021-12-03 11:18:00,726: 0%...
2021-12-03 11:18:00,726: Progress state: NS_ERROR_FAILURE
2021-12-03 11:18:00,726: VBoxManage: error: Failed to install "/usr/share/virtualbox-ext-pack/Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack"
2021-12-03 11:18:00,726: VBoxManage: error: VBoxExtPackRegister returned VERR_VERSION_MISMATCH, pReg=0000000000000000 ErrInfo='Helper version mismatch - expected 0x3 got 0x30000'
2021-12-03 11:18:00,726: VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
2021-12-03 11:18:00,726: VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1424 of file VBoxManageMisc.cpp
2021-12-03 11:18:00,726: Installation error: License key incorrect or unknown problem during installation.
2021-12-03 11:18:00,726: dpkg: error processing package virtualbox-ext-pack (--configure):
2021-12-03 11:18:00,726: installed virtualbox-ext-pack package post-installation script subprocess returned error exit status 1
2021-12-03 11:18:00,726: Setting up postfix (3.4.13-0ubuntu1.2) ...
2021-12-03 11:18:00,726: Adding group `postfix' (GID 138) ...
2021-12-03 11:18:00,726: Done.
2021-12-03 11:18:00,726: Adding system user `postfix' (UID 128) ...
2021-12-03 11:18:00,726: Adding new user `postfix' (UID 128) with group `postfix' ...
2021-12-03 11:18:00,726: Not creating home directory `/var/spool/postfix'.
2021-12-03 11:18:00,726: Creating /etc/postfix/dynamicmaps.cf
2021-12-03 11:18:00,726: Adding group `postdrop' (GID 139) ...
2021-12-03 11:18:00,726: Done.
2021-12-03 11:18:00,726: setting myhostname: Tungurahua.fritz.box
2021-12-03 11:18:00,726: setting alias maps
2021-12-03 11:18:00,726: setting alias database
2021-12-03 11:18:00,726: mailname is not a fully qualified domain name.  Not changing /etc/mailname.
2021-12-03 11:18:00,726: setting destinations: $myhostname, Tungurahua, localhost.localdomain, , localhost
2021-12-03 11:18:00,726: setting relayhost:
2021-12-03 11:18:00,726: setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
2021-12-03 11:18:00,726: setting mailbox_size_limit: 0
2021-12-03 11:18:00,726: setting recipient_delimiter: +
2021-12-03 11:18:00,726: setting inet_interfaces: all
2021-12-03 11:18:00,726: setting inet_protocols: all
2021-12-03 11:18:00,726: /etc/aliases does not exist, creating it.
2021-12-03 11:18:00,726: WARNING: /etc/aliases exists, but does not have a root alias.
2021-12-03 11:18:00,726: 
2021-12-03 11:18:00,727: Postfix (main.cf) is now set up with a default configuration.  If you need to
2021-12-03 11:18:00,727: make changes, edit /etc/postfix/main.cf (and others) as needed.  To view
2021-12-03 11:18:00,727: Postfix configuration values, see postconf(1).
2021-12-03 11:18:00,727: 
2021-12-03 11:18:00,727: After modifying main.cf, be sure to run 'systemctl reload postfix'.
2021-12-03 11:18:00,727: 
2021-12-03 11:18:00,727: Running newaliases
2021-12-03 11:18:00,727: Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service.
2021-12-03 11:18:00,727: Processing triggers for ufw (0.36-6ubuntu1) ...
2021-12-03 11:18:00,727: Processing triggers for systemd (245.4-4ubuntu3.13) ...
2021-12-03 11:18:00,727: Processing triggers for man-db (2.9.1-1) ...
2021-12-03 11:18:00,727: Processing triggers for rsyslog (8.2001.0-1ubuntu1.1) ...
2021-12-03 11:18:00,727: Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
2021-12-03 11:18:00,727: Errors were encountered while processing:
2021-12-03 11:18:00,727: virtualbox-ext-pack
2021-12-03 11:18:00,727: failed to install packages with reason: installArchives() failed

Hello @ljschreiber

It looks like package virtualbox was marked for installation in your APT cache.
This package does not come from ThinLinc and is not a requirement of ours. For some reason that installation failed

2021-12-03 11:18:00,726: VBoxManage: error: Failed to install "/usr/share/virtualbox-ext-pack/Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack"
2021-12-03 11:18:00,726: VBoxManage: error: VBoxExtPackRegister returned VERR_VERSION_MISMATCH, pReg=0000000000000000 ErrInfo='Helper version mismatch - expected 0x3 got 0x30000'
2021-12-03 11:18:00,726: VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
2021-12-03 11:18:00,726: VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1424 of file VBoxManageMisc.cpp
2021-12-03 11:18:00,726: Installation error: License key incorrect or unknown problem during installation.
2021-12-03 11:18:00,726: dpkg: error processing package virtualbox-ext-pack (--configure):

Please try to fix this before trying to install ThinLinc. Having your systems package manager in an inconsistent state can lead to negative side effects when trying to install other packages.

Unfortionatley I dont know why its failing, perhaps you can consult the virtualbox/ubuntu community for help with this installation.

With best regards,
Martin