Failure when Building Mullvad-VPN

Building from mullvad-vpn-bin 2025.1-2

Fails at

ln: target '/var/tmp/pamac-build-tracy/mullvad-vpn-bin/pkg/mullvad-vpn-bin/etc/apparmor.d/mullvad': No such file or directory

Looks like this point in the script

# Symlink apparmor profile to allow Electron sandbox to work
  install -d "$pkgdir/etc/apparmor.d"
  ln -s /opt/Mullvad VPN/resources/apparmor_mullvad "$pkgdir/etc/apparmor.d/mullvad"

Full build results

[tracy@daphne ~]$ pamac update
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: tracy
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Refreshing AUR...                                                                     
Cloning mullvad-vpn-bin build files...                                                
Generating mullvad-vpn-bin information...
Checking mullvad-vpn-bin dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  mullvad-vpn-bin  2025.1-2  (2024.8-1)  AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building mullvad-vpn-bin...
==> Making package: mullvad-vpn-bin 2025.1-2 (Sat 04 Jan 2025 11:28:17)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found mullvad-vpn.sh
  -> Found MullvadVPN-2025.1_amd64.deb
  -> Found MullvadVPN-2025.1_amd64.deb.asc
==> Validating source files with sha256sums...
    mullvad-vpn.sh ... Passed
==> Validating source_x86_64 files with sha256sums...
    MullvadVPN-2025.1_amd64.deb ... Passed
    MullvadVPN-2025.1_amd64.deb.asc ... Skipped
==> Verifying source file signatures with gpg...
    MullvadVPN-2025.1_amd64.deb ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting MullvadVPN-2025.1_amd64.deb with bsdtar
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
x ./
x ./usr/
x ./usr/lib/
x ./usr/lib/systemd/
x ./usr/lib/systemd/system/
x ./usr/lib/systemd/system/mullvad-daemon.service
x ./usr/lib/systemd/system/mullvad-early-boot-blocking.service
x ./usr/bin/
x ./usr/bin/mullvad
x ./usr/bin/mullvad-daemon
x ./usr/bin/mullvad-exclude
x ./usr/bin/mullvad-problem-report
x ./usr/share/
x ./usr/share/bash-completion/
x ./usr/share/bash-completion/completions/
x ./usr/share/bash-completion/completions/mullvad
x ./usr/share/fish/
x ./usr/share/fish/vendor_completions.d/
x ./usr/share/fish/vendor_completions.d/mullvad.fish
x ./usr/share/icons/
x ./usr/share/icons/hicolor/
x ./usr/share/icons/hicolor/16x16/
x ./usr/share/icons/hicolor/16x16/apps/
x ./usr/share/icons/hicolor/16x16/apps/mullvad-vpn.png
x ./usr/share/icons/hicolor/32x32/
x ./usr/share/icons/hicolor/32x32/apps/
x ./usr/share/icons/hicolor/32x32/apps/mullvad-vpn.png
x ./usr/share/icons/hicolor/48x48/
x ./usr/share/icons/hicolor/48x48/apps/
x ./usr/share/icons/hicolor/48x48/apps/mullvad-vpn.png
x ./usr/share/icons/hicolor/64x64/
x ./usr/share/icons/hicolor/64x64/apps/
x ./usr/share/icons/hicolor/64x64/apps/mullvad-vpn.png
x ./usr/share/icons/hicolor/128x128/
x ./usr/share/icons/hicolor/128x128/apps/
x ./usr/share/icons/hicolor/128x128/apps/mullvad-vpn.png
x ./usr/share/icons/hicolor/256x256/
x ./usr/share/icons/hicolor/256x256/apps/
x ./usr/share/icons/hicolor/256x256/apps/mullvad-vpn.png
x ./usr/share/icons/hicolor/512x512/
x ./usr/share/icons/hicolor/512x512/apps/
x ./usr/share/icons/hicolor/512x512/apps/mullvad-vpn.png
x ./usr/share/icons/hicolor/1024x1024/
x ./usr/share/icons/hicolor/1024x1024/apps/
x ./usr/share/icons/hicolor/1024x1024/apps/mullvad-vpn.png
x ./usr/share/applications/
x ./usr/share/applications/mullvad-vpn.desktop
x ./usr/share/doc/
x ./usr/share/doc/mullvad-vpn/
x ./usr/share/doc/mullvad-vpn/changelog.gz
x ./usr/local/
x ./usr/local/share/
x ./usr/local/share/zsh/
x ./usr/local/share/zsh/site-functions/
x ./usr/local/share/zsh/site-functions/_mullvad
x ./opt/
x ./opt/Mullvad VPN/
x ./opt/Mullvad VPN/LICENSE.electron.txt
x ./opt/Mullvad VPN/LICENSES.chromium.html
x ./opt/Mullvad VPN/chrome-sandbox
x ./opt/Mullvad VPN/chrome_100_percent.pak
x ./opt/Mullvad VPN/chrome_200_percent.pak
x ./opt/Mullvad VPN/chrome_crashpad_handler
x ./opt/Mullvad VPN/icudtl.dat
x ./opt/Mullvad VPN/libEGL.so
x ./opt/Mullvad VPN/libGLESv2.so
x ./opt/Mullvad VPN/libffmpeg.so
x ./opt/Mullvad VPN/libvk_swiftshader.so
x ./opt/Mullvad VPN/libvulkan.so.1
x ./opt/Mullvad VPN/locales/
x ./opt/Mullvad VPN/locales/af.pak
x ./opt/Mullvad VPN/locales/am.pak
x ./opt/Mullvad VPN/locales/ar.pak
x ./opt/Mullvad VPN/locales/bg.pak
x ./opt/Mullvad VPN/locales/bn.pak
x ./opt/Mullvad VPN/locales/ca.pak
x ./opt/Mullvad VPN/locales/cs.pak
x ./opt/Mullvad VPN/locales/da.pak
x ./opt/Mullvad VPN/locales/de.pak
x ./opt/Mullvad VPN/locales/el.pak
x ./opt/Mullvad VPN/locales/en-GB.pak
x ./opt/Mullvad VPN/locales/en-US.pak
x ./opt/Mullvad VPN/locales/es-419.pak
x ./opt/Mullvad VPN/locales/es.pak
x ./opt/Mullvad VPN/locales/et.pak
x ./opt/Mullvad VPN/locales/fa.pak
x ./opt/Mullvad VPN/locales/fi.pak
x ./opt/Mullvad VPN/locales/fil.pak
x ./opt/Mullvad VPN/locales/fr.pak
x ./opt/Mullvad VPN/locales/gu.pak
x ./opt/Mullvad VPN/locales/he.pak
x ./opt/Mullvad VPN/locales/hi.pak
x ./opt/Mullvad VPN/locales/hr.pak
x ./opt/Mullvad VPN/locales/hu.pak
x ./opt/Mullvad VPN/locales/id.pak
x ./opt/Mullvad VPN/locales/it.pak
x ./opt/Mullvad VPN/locales/ja.pak
x ./opt/Mullvad VPN/locales/kn.pak
x ./opt/Mullvad VPN/locales/ko.pak
x ./opt/Mullvad VPN/locales/lt.pak
x ./opt/Mullvad VPN/locales/lv.pak
x ./opt/Mullvad VPN/locales/ml.pak
x ./opt/Mullvad VPN/locales/mr.pak
x ./opt/Mullvad VPN/locales/ms.pak
x ./opt/Mullvad VPN/locales/nb.pak
x ./opt/Mullvad VPN/locales/nl.pak
x ./opt/Mullvad VPN/locales/pl.pak
x ./opt/Mullvad VPN/locales/pt-BR.pak
x ./opt/Mullvad VPN/locales/pt-PT.pak
x ./opt/Mullvad VPN/locales/ro.pak
x ./opt/Mullvad VPN/locales/ru.pak
x ./opt/Mullvad VPN/locales/sk.pak
x ./opt/Mullvad VPN/locales/sl.pak
x ./opt/Mullvad VPN/locales/sr.pak
x ./opt/Mullvad VPN/locales/sv.pak
x ./opt/Mullvad VPN/locales/sw.pak
x ./opt/Mullvad VPN/locales/ta.pak
x ./opt/Mullvad VPN/locales/te.pak
x ./opt/Mullvad VPN/locales/th.pak
x ./opt/Mullvad VPN/locales/tr.pak
x ./opt/Mullvad VPN/locales/uk.pak
x ./opt/Mullvad VPN/locales/ur.pak
x ./opt/Mullvad VPN/locales/vi.pak
x ./opt/Mullvad VPN/locales/zh-CN.pak
x ./opt/Mullvad VPN/locales/zh-TW.pak
x ./opt/Mullvad VPN/mullvad-gui
x ./opt/Mullvad VPN/mullvad-vpn
x ./opt/Mullvad VPN/resources/
x ./opt/Mullvad VPN/resources/CHANGELOG.md
x ./opt/Mullvad VPN/resources/apisocks5
x ./opt/Mullvad VPN/resources/app.asar
x ./opt/Mullvad VPN/resources/apparmor_mullvad
x ./opt/Mullvad VPN/resources/ca.crt
x ./opt/Mullvad VPN/resources/libtalpid_openvpn_plugin.so
x ./opt/Mullvad VPN/resources/maybenot_machines
x ./opt/Mullvad VPN/resources/mullvad-problem-report
x ./opt/Mullvad VPN/resources/mullvad-setup
x ./opt/Mullvad VPN/resources/openvpn
x ./opt/Mullvad VPN/resources/relays.json
x ./opt/Mullvad VPN/resources.pak
x ./opt/Mullvad VPN/snapshot_blob.bin
x ./opt/Mullvad VPN/v8_context_snapshot.bin
x ./opt/Mullvad VPN/vk_swiftshader_icd.json
ln: target '/var/tmp/pamac-build-tracy/mullvad-vpn-bin/pkg/mullvad-vpn-bin/etc/apparmor.d/mullvad': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

There is a space in the PATH which is likely causing this - but I did not test whether that is indeed the cause here.
Usually, spaces have to be escaped - or the whole PATH put in quotes, like with the second half of that command
or
like with the chmod command in the same PKGBUILD

the space is between Mullvad and VPN in that command …

I myself don’t run apparmor, so I could simply comment out that whole section instead of trying to fix it.

This has been noticed: AUR (en) - mullvad-vpn-bin There is not much Manjaro can do. You’ll have to wait for a fix to be pushed to the AUR, or modify the PKGBUILD yourself: AUR (en) - mullvad-vpn-bin


EDIT: Okay… I see why you posted it here… @Yochanan, but I’m sure they are already aware of it.

1 Like

This was the Solution.

1 Like

I can confirm that by manually editing the line and quote the first part of the path entry fixed the problem.

EDIT:
There is a new Mullvad version 2025.1-3 released in AUR by the package maintainer. With this the installation now went fine.

Indeed. It’s fixed with 2025.1-3.

Yes, it has.

Please check the comments for AUR packages before creating a topic here.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.