pia-foss / desktop

Private Internet Access - Desktop VPN Client for Windows/macOS/Linux
Other
286 stars 53 forks source link

arch linux install: /etc/iproute2/rt_tables: No such file or directory #69

Open nuche opened 7 months ago

nuche commented 7 months ago

Get this error:

cp: cannot stat '/usr/lib/iproute2/rt_tables': No such file or directory
awk: fatal: cannot open file `/etc/iproute2/rt_tables' for reading: No such file or directory
grep: /etc/iproute2/rt_tables: No such file or directory

When trying to install the up to date piavpn-bin (https://aur.archlinux.org/packages/piavpn-bin/):

$ yay piavpn
2 aur/piavpn-manual-git r26.82ebed7-3 (+0 0.00) (Orphaned)
    Shell scripts to connect manually to PIA VPN
1 aur/piavpn-bin 1:3.5.7-1 (+22 0.15)
    Private Internet Access client
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
AUR Explicit (1): piavpn-bin-1:3.5.7-1
Sync Dependency (2): libxkbcommon-x11-1.7.0-1, zip-3.0-11
:: (1/1) Downloaded PKGBUILD: piavpn-bin
  1 piavpn-bin                               (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> a
:: Deleting (1/1): /home/username/.cache/yay/piavpn-bin
HEAD is now at 1d9ad6b Update to 3.5.7
  1 piavpn-bin                               (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
==> Making package: piavpn-bin 1:3.5.7-1 (Thu 28 Mar 2024 06:50:48 AM EDT)
==> Retrieving sources...
  -> Downloading pia-linux-3.5.7-08120.run...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 71.0M  100 71.0M    0     0  16.5M      0  0:00:04  0:00:04 --:--:-- 17.0M
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source_x86_64 files with sha256sums...
    pia-linux-3.5.7-08120.run ... Passed
:: (1/1) Parsing SRCINFO: piavpn-bin
resolving dependencies...
looking for conflicting packages...

Packages (9) libxau-1.0.11-2  libxcb-1.16.1-1  libxdmcp-1.1.5-1  libxkbcommon-1.7.0-1  xcb-proto-1.16.0-1  xkeyboard-config-2.41-1  xorgproto-2024.1-1  libxkbcommon-x11-1.7.0-1  zip-3.0-11

Total Download Size:    2.66 MiB
Total Installed Size:  14.45 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 libxcb-1.16.1-1-x86_64                                                                                     1024.5 KiB  1839 KiB/s 00:01 [###################################################################################] 100%
 xkeyboard-config-2.41-1-any                                                                                 885.1 KiB  9.29 MiB/s 00:00 [###################################################################################] 100%
 xorgproto-2024.1-1-any                                                                                      241.2 KiB  3.37 MiB/s 00:00 [###################################################################################] 100%
 libxkbcommon-1.7.0-1-x86_64                                                                                 211.6 KiB  3.08 MiB/s 00:00 [###################################################################################] 100%
 zip-3.0-11-x86_64                                                                                           169.9 KiB  2.48 MiB/s 00:00 [###################################################################################] 100%
 xcb-proto-1.16.0-1-any                                                                                      131.0 KiB  1985 KiB/s 00:00 [###################################################################################] 100%
 libxdmcp-1.1.5-1-x86_64                                                                                      27.1 KiB   430 KiB/s 00:00 [###################################################################################] 100%
 libxkbcommon-x11-1.7.0-1-x86_64                                                                              23.1 KiB   385 KiB/s 00:00 [###################################################################################] 100%
 libxau-1.0.11-2-x86_64                                                                                       10.9 KiB   174 KiB/s 00:00 [###################################################################################] 100%
 Total (9/9)                                                                                                   2.7 MiB  1634 KiB/s 00:02 [###################################################################################] 100%
(9/9) checking keys in keyring                                                                                                           [###################################################################################] 100%
(9/9) checking package integrity                                                                                                         [###################################################################################] 100%
(9/9) loading package files                                                                                                              [###################################################################################] 100%
(9/9) checking for file conflicts                                                                                                        [###################################################################################] 100%
(9/9) checking available disk space                                                                                                      [###################################################################################] 100%
:: Processing package changes...
(1/9) installing zip                                                                                                                     [###################################################################################] 100%
(2/9) installing xcb-proto                                                                                                               [###################################################################################] 100%
(3/9) installing xorgproto                                                                                                               [###################################################################################] 100%
(4/9) installing libxdmcp                                                                                                                [###################################################################################] 100%
(5/9) installing libxau                                                                                                                  [###################################################################################] 100%
(6/9) installing libxcb                                                                                                                  [###################################################################################] 100%
(7/9) installing xkeyboard-config                                                                                                        [###################################################################################] 100%
(8/9) installing libxkbcommon                                                                                                            [###################################################################################] 100%
Optional dependencies for libxkbcommon
    libxkbcommon-x11: xkbcli interactive-x11 [pending]
    wayland: xkbcli interactive-wayland
(9/9) installing libxkbcommon-x11                                                                                                        [###################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Making package: piavpn-bin 1:3.5.7-1 (Thu 28 Mar 2024 06:51:05 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found pia-linux-3.5.7-08120.run
==> Validating source_x86_64 files with sha256sums...
    pia-linux-3.5.7-08120.run ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory /home/username/.cache/yay/piavpn-bin/src/piavpn-bin-3.5.7-08120
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing Private Internet Access  100%
==> Sources are ready.
==> Making package: piavpn-bin 1:3.5.7-1 (Thu 28 Mar 2024 06:51:11 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting check()...
3.5.7
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Copying source files needed for debug symbols...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "piavpn-bin"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: piavpn-bin 1:3.5.7-1 (Thu 28 Mar 2024 06:52:16 AM EDT)
==> Cleaning up...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) piavpn-bin-1:3.5.7-1

Total Installed Size:  222.85 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                                                           [###################################################################################] 100%
(1/1) checking package integrity                                                                                                         [###################################################################################] 100%
(1/1) loading package files                                                                                                              [###################################################################################] 100%
(1/1) checking for file conflicts                                                                                                        [###################################################################################] 100%
(1/1) checking available disk space                                                                                                      [###################################################################################] 100%
:: Processing package changes...
cp: cannot stat '/usr/lib/iproute2/rt_tables': No such file or directory
awk: fatal: cannot open file `/etc/iproute2/rt_tables' for reading: No such file or directory
grep: /etc/iproute2/rt_tables: No such file or directory
(1/1) installing piavpn-bin                                                                                                              [###################################################################################] 100%
You need to start the daemon with 'sudo systemctl start piavpn.service'
Also run 'sudo systemctl enable piavpn.service' to make it automatically start at boot
Optional dependencies for piavpn-bin
    WIREGUARD-MODULE: to use the wireguard kernel module instead [installed]
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
[sudo] password for username:

But this file exists:

$ cat /etc/iproute2/rt_tables
1   piavpnrt
2   piavpnOnlyrt
3   piavpnWgrt
4   piavpnFwdrt

But /usr/lib/iproute2/rt_tables does not.

Yet /usr/share/iproute2/rt_tables exists on Arch.

kp-john-mair commented 7 months ago

Thanks!

That should be enough to work, all we need is /etc/iproute2/rt_tables - does the client behave correctly? does wireguard work? does split tunnel work?

Those errors during install don't make sense to me, are you sure it's not something extra added to the AUR package? we don't control that package.

kp-john-mair commented 7 months ago

Yes, i examined this repo: https://aur.archlinux.org/piavpn-bin.git

And it does have added pre install commands to mess with the routing tables - those shouldn't be necessary anymore and it's those commands which are causing the errors you see.

Not something we added - it's added by the maintainer of the package, probably tell him to remove them if you can - the daemon now manages the routing tables - it's no longer done in the install script.