I use Mullvad VPN on a Kali VM and wanted to start taking advantage of their apt repo so my Mullvad client would update when I run OS updates via apt.
Using the instructions they provide on their page: https://mullvad.net/en/download/vpn/linux make the following tweak to the second command under the ‘Ubuntu/Debian’ section:
# Original # Add the Mullvad repository server to apt echo "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mullvad.list # Modified # Add the Mullvad repository server to apt echo "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable bullseye main" | sudo tee /etc/apt/sources.list.d/mullvad.list
If you run the command provided by Mullvad, $(lsb_release -cs) will return “kali-rolling” which does not have an entry in the Mullvad Repo. The tweak I make is replacing $(lsb_release -cs) with bullseye which is the latest release of Debian and should let you use apt to manage your Mullvad installation on Kali for now.
With this tweak in place you can follow the rest of their instructions and Mullvad VPN should install and stay updated when you run apt update; apt upgrade on your system.
This will likely break at some point and need to be updated with the next Debian release name when that happens.
Thanks! Very helpful.
Welcome. Glad it still works.
Debian’s newest release is codenamed ‘bookworm’ – I tried changing bullyseye to bookworm and got the following error:
Hit:1 http://http.kali.org/kali kali-rolling InRelease
Get:2 https://repository.mullvad.net/deb/stable bookworm InRelease [3,530 B]
Err:2 https://repository.mullvad.net/deb/stable bookworm InRelease
Sub-process /usr/bin/sqv returned an error code (1), error message is: Error: Failed to parse keyring “/usr/share/keyrings/mullvad-keyring.asc” Caused by: 0: Reading “/usr/share/keyrings/mullvad-keyring.asc”: No such file or directory (os error 2) 1: No such file or directory (os error 2)
Warning: OpenPGP signature verification failed: https://repository.mullvad.net/deb/stable bookworm InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Error: Failed to parse keyring “/usr/share/keyrings/mullvad-keyring.asc” Caused by: 0: Reading “/usr/share/keyrings/mullvad-keyring.asc”: No such file or directory (os error 2) 1: No such file or directory (os error 2)
Error: The repository ‘https://repository.mullvad.net/deb/stable bookworm InRelease’ is not signed.
Any ideas?
It looks like you skipped a step and didn’t install the repo signing key
From https://mullvad.net/en/download/vpn/linux run this:
# Download the Mullvad signing keysudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc
Then try again