0

环境: Ubuntu 20.04 LTS(5.4.0-77-generic),Petalinux v2020.1(安装无误)

问题:当我在我的项目上运行“petalinux-build”时,它失败了,唯一的错误是:

ERROR: busybox-1.31.0-r0 do_package_write_rpm_setscene: Fetcher failure: Unable to find file file://37/17/sstate:busybox:aarch64-xilinx-linux:1.31.0:r0:aarch64:3:3717bf908126a62e0e2039c4e00aecad811b83830c64890394896af6ab2b4f2e_package_write_rpm.tgz;downloadfilename=37/17/sstate:busybox:aarch64-xilinx-linux:1.31.0:r0:aarch64:3:3717bf908126a62e0e2039c4e00aecad811b83830c64890394896af6ab2b4f2e_package_write_rpm.tgz anywhere. The paths that were searched were:
    /[PATH_TO_PROJECT]/build/sstate-cache
    /[PATH_TO_PROJECT]/build/sstate-cache
ERROR: busybox-1.31.0-r0 do_package_write_rpm_setscene: No suitable staging package found
ERROR: Logfile of failure stored in : /[PATH_TO_PROJECT]/build/tmp/work/aarch64-xilinx-linux/busybox/1.31.0-r0/temp/log.do_package_write_rpm_setscene/2574554

在上述日志文件中,我发现以下内容:

Location: /sswreleases/rel-v2020/aarch64/sstate-cache/37/17/sstate%3Abusybox%3Aaarch64-xilinx-linux%3A1.31.0%3Ar0%3Aaarch64%3A3%3A3717bf908126a62e0e2039c4e00aecad811b83830c64890394896af6ab2b4f2e_package_write_rpm.tgz [following]
--2021-12-20 16:19:44--  http://petalinux.xilinx.com/sswreleases/rel-v2020/aarch64/sstate-cache/37/17/sstate%3Abusybox%3Aaarch64-xilinx-linux%3A1.31.0%3Ar0%3Aaarch64%3A3%3A3717bf908126a62e0e2039c4e00aecad811b83830c64890394896af6ab2b4f2e_package_write_rpm.tgz
Reusing existing connection to petalinux.xilinx.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 4758844 (4.5M) [application/x-gzip]
Saving to: ‘/[PATH_TO_PROJECT]/build/sstate-cache/37/17/sstate:busybox:aarch64-xilinx-linux:1.31.0:r0:aarch64:3:3717bf908126a62e0e2039c4e00aecad811b83830c64890394896af6ab2b4f2e_package_write_rpm.tgz’


2021-12-20 16:19:48 (1.30 MB/s) - Connection closed at byte 4726076. Retrying.

--2021-12-20 16:19:49--  (try: 2)  http://petalinux.xilinx.com/sswreleases/rel-v2020/aarch64/sstate-cache/37/17/sstate%3Abusybox%3Aaarch64-xilinx-linux%3A1.31.0%3Ar0%3Aaarch64%3A3%3A3717bf908126a62e0e2039c4e00aecad811b83830c64890394896af6ab2b4f2e_package_write_rpm.tgz
Connecting to petalinux.xilinx.com|146.112.56.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4758844 (4.5M) [application/x-gzip]
Saving to: ‘/[PATH_TO_PROJECT]/build/sstate-cache/37/17/sstate:busybox:aarch64-xilinx-linux:1.31.0:r0:aarch64:3:3717bf908126a62e0e2039c4e00aecad811b83830c64890394896af6ab2b4f2e_package_write_rpm.tgz’


2021-12-20 16:19:52 (1.44 MB/s) - Connection closed at byte 4726076. Giving up.

如果我没有错,这可能是 Petalinux 镜像的问题,但如果是我的错误(例如在配置过程中),我应该怎么做才能避免这个错误?

我知道我可以下载 sstate-cache 并使用本地存储的包进行构建(我将对其进行测试),但在我的工作环境中,首选从远程源获取。

提前感谢您的任何指导或帮助!

4

0 回答 0