Package Details: mullvad-vpn 2021.3-1

Git Clone URL: https://aur.archlinux.org/mullvad-vpn.git (read-only, click to copy)
Package Base: mullvad-vpn
Description: The Mullvad VPN client app for desktop
Upstream URL: https://www.mullvad.net
Licenses: GPL3
Submitter: gin078
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 59
Popularity: 5.43
First Submitted: 2018-10-24 17:33
Last Updated: 2021-04-28 15:30

Pinned Comments

yochananmarqos commented on 2019-12-07 17:44

--> ALWAYS DO A CLEAN BUILD <--

This package will verify the signature of the git tag / commit. Developer keys are available here and instructions are here. See the PKGBUILD to determine which developer key you need.

Latest Comments

1 2 3 4 5 6 ... Next › Last »

a.liedtke commented on 2021-05-13 17:55

makepkg -i

ends for me with: runtime/cgo

runtime/cgo

cc1: error: unknown pass checking specified in '-fenable'

Any hints on that?

XenGi commented on 2021-05-08 23:00

Package build fine but the daemon doesn't start. Dmesg shows:

cgroup: Disabled controller 'net_cls'

journal says:

May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::version][INFO] Starting mullvad-daemon - 2021.3 2021-04-27
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon][INFO] Logging to /var/log/mullvad-vpn
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::rpc_uniqueness_check][DEBUG] Failed to locate/connect to another daemon instance, assuming there isn't one
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon][INFO] Management interface listening on /var/run/mullvad-vpn
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_rpc::address_cache][DEBUG] Loading API addresses from "/var/cache/mullvad-vpn/api-ip-address.txt"
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_rpc::address_cache][DEBUG] Using API address: 193.138.218.71:444
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::relays][DEBUG] Reading relays from /var/cache/mullvad-vpn/relays.json
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::relays][DEBUG] Reading relays from /opt/Mullvad VPN/resources/relays.json
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::relays][INFO] Initialized with 769 cached relays from 2021-05-09 00:57:48.000
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::settings][INFO] Loading settings from /etc/mullvad-vpn/settings.json
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::version_check][DEBUG] Loading version check cache from /var/cache/mullvad-vpn/version-info.json
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::version_check][WARN] Error: Unable to load cached version info
May 09 00:58:09 nyu mullvad-daemon[41289]: Caused by: Failed to open app version cache file for reading
May 09 00:58:09 nyu mullvad-daemon[41289]: Caused by: No such file or directory (os error 2)
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::account_history][INFO] Opening account history file in /etc/mullvad-vpn/account-history.json
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon][INFO] Loaded cached target state "Unsecured" from /var/cache/mullvad-vpn/target-start-state.json
May 09 00:58:09 nyu mullvad-daemon[41289]: [talpid_core::firewall][INFO] Resetting firewall policy
May 09 00:58:09 nyu mullvad-daemon[41289]: [talpid_core::firewall::imp][DEBUG] Removing table and chain from netfilter
May 09 00:58:09 nyu mullvad-daemon[41289]: [talpid_core::tunnel_state_machine][DEBUG] Exiting tunnel state machine loop
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon][ERROR] Error: Unable to initialize daemon
May 09 00:58:09 nyu mullvad-daemon[41289]: Caused by: Unable to initialize split tunneling
May 09 00:58:09 nyu mullvad-daemon[41289]: Caused by: Unable to initialize net_cls cgroup instance
May 09 00:58:09 nyu mullvad-daemon[41289]: Caused by: EINVAL: Invalid argument
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon][DEBUG] Process exiting with code 1
May 09 00:58:09 nyu mullvad-daemon[41289]: [mullvad_daemon::management_interface][INFO] Management interface shut down

Same behaviour with the bin package.

wwklnd commented on 2021-04-30 01:08

So, I can't seem to update this application and it fails with this error:

error[E0658]: `if` is not allowed in a `const`
  --> mullvad-types/src/wireguard.rs:10:49
   |
10 |   pub const DEFAULT_ROTATION_INTERVAL: Duration = if cfg!(target_os = "android") {
   |  _________________________________________________^
11 | |     Duration::from_secs(4 * 24 * 60 * 60)
12 | | } else {
13 | |     Duration::from_secs(7 * 24 * 60 * 60)
14 | | };
   | |_^
   |
   = note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information

   Compiling talpid-platform-metadata v0.1.0 (/var/tmp/pamac-build-william/mullvad-vpn/src/mullvadvpn-app/talpid-platform-metadata)
   Compiling htmlize v0.5.0
error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `mullvad-types`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
    Aborting...

Any idea what the issue might be?

arkhetypos commented on 2021-04-28 22:07

@yochananmarqos: replaced rustup with rust and it worked. Thanks!

yochananmarqos commented on 2021-04-28 21:51

@arkhetypos: Make sure you're using the repo rust package to build. Also see the pinned comment.

arkhetypos commented on 2021-04-28 21:19

Is this just me? Sry if so

error[E0277]: can't compare `Vec<std::net::IpAddr>` with `[std::net::IpAddr]`
  --> talpid-core/src/dns/linux/systemd_resolved.rs:87:40
   |
87 |                     if current_servers != *dns_state.set_servers {
   |                                        ^^ no implementation for `Vec<std::net::IpAddr> == [std::net::IpAddr]`
   |
   = help: the trait `PartialEq<[std::net::IpAddr]>` is not implemented for `Vec<std::net::IpAddr>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `talpid-core`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
    Aborting...
error making: mullvad-vpn

yochananmarqos commented on 2021-04-21 15:43

@Anteduck: That's why it's best to build in a clean chroot so user / system variables don't interfere. However, that flag is part of Rust package guidelines, so I added it.

Anteduck commented on 2021-04-21 11:14

The PKGBUILD doesn't work if you have a different target directory specified in .cargo/config. Here's a patch that explicitly specifies the target directory:

--- PKGBUILD.old    2021-04-21 20:10:03.284860579 +0900
+++ PKGBUILD    2021-04-21 20:04:14.458205960 +0900
@@ -39,7 +39,7 @@
    sed -i "s/'deb', 'rpm'/'deb'/g" gui/tasks/distribution.js

    echo "Removing old Rust build artifacts"
-   cargo clean
+   cargo clean --target-dir target

    export GOPATH="$srcdir/gopath"
    go clean -modcache
@@ -76,13 +76,13 @@

    echo "Building Rust code in release mode using $RUSTC_VERSION..."

-   cargo build --release --locked
+   cargo build --release --locked --target-dir target

    mkdir -p dist-assets/shell-completions
    for sh in bash zsh fish; do
        echo "Generating shell completion script for $sh..."
-       cargo run --bin mullvad --release --locked -- shell-completions "$sh" \
-           dist-assets/shell-completions/
+       cargo run --bin mullvad --release --locked --target-dir target -- \
+           shell-completions "$sh" dist-assets/shell-completions/
    done

    echo "Copying binaries"
@@ -99,10 +99,10 @@
    done

    echo "Updating relay list..."
-   cargo run --bin relay_list --release > dist-assets/relays.json
+   cargo run --bin relay_list --release --target-dir target > dist-assets/relays.json

    echo "Updating API address cache..."
-   cargo run --bin address_cache --release > dist-assets/api-ip-address.txt
+   cargo run --bin address_cache --release --target-dir target > dist-assets/api-ip-address.txt

    # Build Electron GUI app
    pushd gui
@@ -115,7 +115,7 @@

 #check() {
 #  cd "$srcdir/mullvadvpn-app"
-#  cargo test --release --locked
+#  cargo test --release --locked --target-dir target
 #
 #  cd gui
 #  npm test

yochananmarqos commented on 2021-04-19 01:50

@Hubro: I updated the requirements to match Mullvad.

FYI, Node.js 10 is EOL at the end of the month.

andykluger commented on 2021-04-19 01:11

@hubro

So try a newer nodejs like erbium or whatever