如何修复 OpenVPN Options error: --up script fails with '/etc/openvpn/update-systemd-resolved': No such file or directory
问题
启动 OpenVPN 配置时,你看到以下错误消息:
install_openvpn_systemd_resolved.sh
Options error: --up script fails with '/etc/openvpn/update-systemd-resolved': No such file or directory (errno=2)
Options error: Please correct this error.
Use --help for more information.解决方案(Linux)
在 Linux 上,你需要安装提供缺失脚本的系统包:
install_openvpn_systemd_resolved.sh
sudo apt -y install openvpn-systemd-resolved解决方案(Windows)
在 Windows 上,此脚本不需要且不存在。
通过在前面添加 # 注释掉 OpenVPN 配置中的以下两行
openvpn_config_commented.txt
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved这将阻止 OpenVPN 尝试运行脚本。
Check out similar posts by category:
OpenVPN, Networking
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow