@a3dman - thankyou! Had to disable 2fa, but I can live with that for now
Search Criteria
Package Details: nordvpn-bin 3.16.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/nordvpn-bin.git (read-only, click to copy) |
---|---|
Package Base: | nordvpn-bin |
Description: | NordVPN CLI tool for Linux |
Upstream URL: | https://nordvpn.com/download/linux/ |
Keywords: | networking nordvpn openvpn security vpn |
Licenses: | custom |
Conflicts: | openvpn-nordvpn |
Provides: | nordvpn |
Submitter: | metiis |
Maintainer: | Ravenbells |
Last Packager: | Ravenbells |
Votes: | 147 |
Popularity: | 5.00 |
First Submitted: | 2018-08-29 12:13 (UTC) |
Last Updated: | 2023-03-28 19:34 (UTC) |
Dependencies (1)
Required by (7)
Sources (4)
- https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.16.1_amd64.deb
- https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.16.1_arm64.deb
- https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.16.1_armhf.deb
- https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.16.1_i386.deb
PC2022 commented on 2023-04-01 01:11 (UTC)
a3dman commented on 2023-04-01 01:04 (UTC)
@PC2022 I use 'nordvpn login --legacy' to avoid the hassle.
PC2022 commented on 2023-04-01 00:59 (UTC)
Nordvpn Arch wiki says that since April 2022, nordvpn login now steers you to a web login.
It seems I have to log in via browser, then copy and paste the resulting nordvpn:// url into "nordvpn login --callback <url>"
I'm wondering how people are using this CLI? Is there something I'm missing, or is this as good as it gets?
Ravenbells commented on 2023-03-24 14:37 (UTC) (edited on 2023-03-24 16:59 (UTC) by Ravenbells)
Hi @esauvisky
I already check the wiki (even before my first submission), and there's nothing explaining about not being allowed to warning users to remove some file that conflicts with other versions before installing. Can you please explain why it's against AUR guidelines?
The reason I didn't place a removal for the package pre_install is because super user permissions are needed to make this since is on root territory. Despite pacman itself, I don't think would be wise to place a removal without a fully user consentment, even with me and all users being aware the file will be generated again and is a binary, it's still on file system directory and require sudo to workout.
If you guys think there's something wrong with this approach and there's a simple workaround, I'll be glad to checkout the feedbacks in my free time and update the package again.
Edit: Thanks for your support. I'm just trying to figure out these things with you. If it's fine the removal with sudo permissions on pacman and not a issue at all, should the file be renamed as old or be removed? What's the best way to deal with without been invasive as a AUR package?
esauvisky commented on 2023-03-24 06:58 (UTC) (edited on 2023-03-24 06:59 (UTC) by esauvisky)
The current approach in which the user needs to delete the countries.dat file goes against the AUR submission guidelines. Also, it makes no sense from NordVPN installer to do that, but we can't have everything, I guess.
I had not read the warning the first time I installed this AUR package (reading is hard), and was afraid of deleting it willy nilly, so I dug down the rabbit hole to figure out what the file was for (including disassembly, yeah) and it's responsible for keeping the updated list of countries endpoints, but in a binary form (because why using JSON when you can do a binary custom format, right). The nordvpn binary updates it automatically during runtime, therefore they can ensure the list of servers is always up to date regardless of if users' packages also are.
Given this, I highly suggest the current maintainer to simply delete this file in the pre_upgrade() section of the PKGBUILD. If you want to be safe, move it to a .pacnew, although this requires research if it's OK to do it so, because as this is a binary file it will break any sort of .pac* mergers, for example.
Gamall commented on 2023-03-24 03:45 (UTC)
@raver: thanks for the info!
@Ravenbells Thanks for taking ownership of the package.
The 'countries.dat' may differ between versions. Be aware to remove the file before upgrading the package.
I don't understand this; this is a binary file, not user-editable. Overwriting files (not owned by other packages, which this isn't, nor user-editable, which this isn't) with new versions is the essence of upgrading a package. Surely there is a way to do that without requiring --overwrite from the user.
1° What is causing countries.dat to be a problem when the other files installed in /var/lib/nordvpn are not? What's so special about that file in particular? Have you any idea?
2° If necessary, I feel the pre_upgrade script could/should remove/rename the file automatically rather than just display a helpful message. Given that the file is not user-editable, there is no reason the user might be attached to the old version of the file, is there?
raver commented on 2023-03-24 02:08 (UTC)
@Gamall Second script works perfectly, thank you.
Ravenbells commented on 2023-03-23 20:37 (UTC) (edited on 2023-03-28 19:37 (UTC) by Ravenbells)
If you want to see the change logs between versions just check the Debian pool links from sources.
Note from 3.16.0 Version:
The 'countries.dat' may differ between versions. Be aware to remove the file before upgrading the package.
Gamall commented on 2023-03-23 16:52 (UTC) (edited on 2023-03-24 03:09 (UTC) by Gamall)
@radio_rogal @raver
yay -S --overwrite /var/lib/nordvpn/* nordvpn-bin
(the comment's display unfortunately eats the antislash escaping the *)
will let the install take care of that. Tested a few minutes ago.
If ForeverZer0 is correct that only one file is a problem, the more conservative
yay -S --overwrite /var/lib/nordvpn/data/countries.dat nordvpn-bin
should also do the trick.
ForeverZer0 commented on 2023-03-23 08:57 (UTC)
@radio_rogal @raver Just delete the countries.dat file and retry the install, it gets re-created, I had the same issue. I didn't bother investigating the cause, but it was a simple thing to test by renaming the file and ended up being an easy fix.
Pinned Comments
Ravenbells commented on 2023-03-23 20:37 (UTC) (edited on 2023-03-28 19:37 (UTC) by Ravenbells)
If you want to see the change logs between versions just check the Debian pool links from sources.
Note from 3.16.0 Version:
The 'countries.dat' may differ between versions. Be aware to remove the file before upgrading the package.
martoko commented on 2020-12-20 09:10 (UTC) (edited on 2020-12-20 09:12 (UTC) by martoko)
If you're seeing the message "Daemon is unreachable, is systemd running?", then one of two things is probably happening.
The nordvpn daemon might not be started
Start it using:
sudo systemctl enable --now nordvpnd
You might not have been added to the nordvpn group
Add yourself:
sudo gpasswd -a USERNAME nordvpn
And then restart in order for the group to be created:
reboot