私人互联网接入是我的 VPN 提供商之一。
我无法更新PIA从版本 75 到 77,出现以下错误。
我尝试卸载PIAv75 并再次运行安装程序,结果相同。
错误消息如下:
Installing files...
mv: cannot move '/home/pia/.pia_install.4881/installer_linux/deploy_files' to '/opt/pia': No such file or directory
chmod: cannot access '/opt/pia/openvpn_launcher.32': No such file or directory
chmod: cannot access '/opt/pia/openvpn_launcher.64': No such file or directory
chmod: cannot access '/opt/pia/root_runner/root_runner.32': No such file or directory
chmod: cannot access '/opt/pia/root_runner/root_runner.64': No such file or directory
Installing dependencies...
Running: sudo apt-get install -y libxss1 libappindicator1 gconf2 net-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
gconf2 is already the newest version (3.2.6-3ubuntu6).
libxss1 is already the newest version (1:1.2.2-1).
net-tools is already the newest version (1.60-26ubuntu1).
libappindicator1 is already the newest version (12.10.1+16.04.20170215-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 273 not upgraded.
./installer_linux/installer.rb:167:in `expand_path': no implicit conversion of nil into String (TypeError)
from ./installer_linux/installer.rb:167:in `install'
from ./installer_linux/installer.rb:187:in `<main>'
/opt
我注意到系统上没有目录。
答案1
解决方案非常简单,创建该目录,即:
sudo mkdir /opt
然后再次运行安装程序。
/opt
显然,安装程序不会考虑系统上不存在目录的情况。