我正在Ubuntu2016.04.5上安装Petalinux_v2018.2
./petalinux-v2018.2.ir.run /opt/petalinux_2018.2/
但以错误结尾:
./petalinux-v2018.2.ir.run: line 52: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
tee: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
INFO: Checking installer checksum...
tee: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
Please refer to the PetaLinux Tools Installation Guide.
Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
/opt/petalinux_2018.2/petalinux_installation_log
tee: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
INFO: Extracting PetaLinux installer...
tar: /tmp/tmp.eeJueiu2Ol: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tee: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
ERROR: Failed to extract the PetaLinux installer. Failed to install PetaLinux Tools!
任何解决这个问题的帮助都将不胜感激。
当我尝试
sudo ./petalinux-v2018.2.ir.run /opt/petalinux_2018.2/
它还提示错误:
ERROR: Exiting Installer: Cannot install as root user!
发布于 2018-12-27 11:58:21
在其他地方创建一个目录并将其安装到那里:
mkdir ~/petalinux
./petalinux-*.run ~/petalinux
这是因为非根用户无法修改/opt
的内容,Petalinux也有一个检查,以确保它不是由root本身安装的,因为如果使用不当,它可能会损坏系统。
发布于 2020-03-04 08:32:14
实际上,您不能以根用户的身份执行此操作,而只有根用户具有在日志文件中写入的权限。只需更改权限,以便无根用户可以编写:
sudo chmod 666 petalinux_installation_log
发布于 2020-04-16 14:45:14
我只是在用Petalinux 2019.1调试同样的问题,我的问题是没有安装功能齐全的gawk。见下面的博客条目-它解决了我在Ubuntu19.10安装时的问题。
https://blog.lazy-evaluation.net/posts/linux/petalinux-v2019-1-ubuntu-18-04.html
https://askubuntu.com/questions/1104868
复制相似问题