如何解决“rsync”错误?

如何解决“rsync”错误?

我一直在尝试使用 Qt 5.12.5 将 Raspberry Pi 应用程序从 Ubuntu 18.04.3 交叉编译到 Raspberry Pi 3。

我使用的指南来自这里:https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/

当我在终端中输入以下命令时,我在第 7 步遇到 rsync 错误:

sync -avz qt5pi pi@raspberrypi_ip:/usr/local

终端返回这些失败:

sending incremental file list
rsync: chgrp "/usr/local/qt5pi" failed: Operation not permitted (1)
qt5pi/
rsync: recv_generator: mkdir "/usr/local/qt5pi/bin" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/usr/local/qt5pi/doc" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/usr/local/qt5pi/include" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
qt5pi/bin/
qt5pi/doc/
qt5pi/include/
rsync: recv_generator: mkdir "/usr/local/qt5pi/lib" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
qt5pi/lib/
rsync: recv_generator: mkdir "/usr/local/qt5pi/plugins" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/usr/local/qt5pi/qml" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
qt5pi/plugins/
qt5pi/qml/
rsync: recv_generator: mkdir "/usr/local/qt5pi/translations" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
qt5pi/translations/

sent 222,520 bytes  received 1,699 bytes  49,826.44 bytes/sec
total size is 118,523,823  speedup is 528.61
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]

我可以采取什么措施来解决这些持续的故障?任何帮助,将不胜感激。

我努力了:

sync -avz qt5pi root@raspberrypi_ip:/usr/local

没有成功。每次我输入密码与 Pi 建立连接时,它都会告诉我重试,直到连接关闭。我还在 Pi 上编辑了 /etc/ssh_config 文件,其中更改了 Permit Root Login 行(PermitRootLogin yes)。

此外,在 Pi 中编辑了 /etc/sshd_config 文件,然后重新启动。我最近sudo systemctl restard sshd通过 PuTTY 在 Pi 终端中输入了命令:Ubuntu 终端仍然通知我重试,直到输入 Pi 的密码,直到与树莓派的连接关闭。

相关内容