如何修复 bup remote sh: bup: not found
问题:
使用 bup 远程功能运行 bup 时,例如
bup init -r 192.168.1.215:/var/bup
bup_init_remote.sh
bup init -r 192.168.1.215:/var/bup你看到类似这样的错误
bup_remote_error_output.txt
sh: bup: not found
Traceback (most recent call last):
File "/usr/lib/bup/cmd/bup-init", line 45, in <module>
cli = client.Client(argv_bytes(opt.remote), create=True)
File "/usr/lib/bup/cmd/../bup/client.py", line 108, in __init__
self._available_commands = self._get_available_commands()
File "/usr/lib/bup/cmd/../bup/client.py", line 181, in _get_available_commands
raise ClientError('unexpected help header ' + repr(line))
bup.client.ClientError: unexpected help header b''解决方案
首先,使用 SSH 登录到你的服务器并通过运行以下命令检查 bup 是否已安装
bup_version_check.sh
bupbup_version_check_2.sh
bup示例输出:
bup_usage.txt
Usage: bup [-?|--help] [-d BUP_DIR] [--debug] [--profile] <command> [options...]
Common commands:
fsck Check backup sets for damage and add redundancy information
ftp Browse backup sets using an ftp-like client
fuse Mount your backup sets as a filesystem
[...]如果可行,你需要确保 bup 位于 /usr/bin/bup!
Run
which_bup.sh
which bup以找出 bup 的位置。
例如,如果它在 /usr/local/bin/bup,你需要将其符号链接到 /usr/bin/bup:
symlink_bup.sh
ln -sf /usr/local/bin/bup /usr/bin/bupCheck out similar posts by category:
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