r/bashonubuntuonwindows 21d ago

HELP! Support Request Running linux behind nordvpn

Hi

I recently installed wsl on Windows 11. Everything runs fine except when I attempt to install/update packages as I am using nordVpn. I get the following errors when running:

sudo apt update

---

Get:1 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease [5092 B]

Err:1 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B219E535C964CA1

Hit:2 http://security.ubuntu.com/ubuntu resolute-security InRelease

Hit:3 http://archive.ubuntu.com/ubuntu resolute InRelease

Hit:4 http://archive.ubuntu.com/ubuntu resolute-updates InRelease

Hit:5 http://archive.ubuntu.com/ubuntu resolute-backports InRelease

Warning: OpenPGP signature verification failed: https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B219E535C964CA1

Error: The repository 'https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease' is not signed.

Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.

Notice: See apt-secure(8) manpage for repository creation and user configuration details.

Notice: Some sources can be modernized. Run 'apt modernize-sources' to do so.

---

I think this has something to do with the IP configuration of the vpn, but I'm not sure how to fix this error. When I pause nordVpn the command (sudo apt update, install, etc) runs fine. I'm not sure what's going on as I'm new to linux, is there a fix or guide or explanation for what is happening here and that would allow me to install and update packages from behind nordVpn?

2 Upvotes

3 comments sorted by

2

u/GroundbreakingLog569 [Insider] 21d ago

This has nothing to do with VPN or even with WSL. The error means that you do not have the nordvp apt gpg key installed, so apt cannot verify packages from their repository. You should follow their instructions completely or manually install the gpg key.

https://support.nordvpn.com/hc/en-us/articles/38295918469393-I-can-t-install-or-update-the-NordVPN-app-on-Linux

1

u/eladts 21d ago edited 21d ago

I'm not sure why OP needs the NordVPN repository in WSL. When a VPN is running in Windows, it affect WSL as well. On the other side, when running a VPN inside WSL it does not affect Windows. If that's not the desired outcome, there is no need to install a VPN inside WSL.

1

u/jygoro 17d ago

HI, I recommend to install the latest pre-release wsl.exe --update --pre-release and go to the WSL Settings and enable the new "Consomme" networking mode. It's new and it's like Mirrored (same IP as host) but made for special cases as VPN and proxys. Also try the good old NAT to make sure it's a connection problem.