AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1104868
Accepted
abbasi_ahsan
abbasi_ahsan
Asked: 2018-12-28 03:50:24 +0800 CST2018-12-28 03:50:24 +0800 CST 2018-12-28 03:50:24 +0800 CST

petalinux v2018.2 安装错误

  • 772

我在 Ubuntu 2016.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!
xilinx
  • 4 4 个回答
  • 3689 Views

4 个回答

  • Voted
  1. Best Answer
    Kristopher Ives
    2018-12-28T03:58:21+08:002018-12-28T03:58:21+08:00

    在其他地方创建一个目录并将其安装到那里:

    mkdir ~/petalinux
    ./petalinux-*.run ~/petalinux
    

    发生这种情况是因为非 root 用户无法修改其中的内容,/opt并且 Petalinux 还进行了检查以确保它不是由 root 自己安装的,因为如果使用不当可能会损坏系统。

    • 7
  2. Patsianotakis Charalampos
    2020-03-05T00:32:14+08:002020-03-05T00:32:14+08:00

    实际上,您不能以 root 用户身份执行此操作,而唯一有权写入日志文件的用户是 root 用户。只需更改权限,以便非 root 用户可以写入:

    sudo chmod 666 petalinux_installation_log
    
    • 0
  3. dingo_kinznerhook
    2020-04-17T06:45:14+08:002020-04-17T06:45:14+08:00

    我只是在调试 Petalinux 2019.1 的同样问题,我的问题是没有安装全功能的 gawk。请参阅下面的博客条目 - 它为我解决了在 Ubuntu 19.10 中安装时的问题。

    https://blog.lazy-evaluation.net/posts/linux/petalinux-v2019-1-ubuntu-18-04.html

    • 0
  4. TarekEldeeb
    2021-03-17T00:34:41+08:002021-03-17T00:34:41+08:00

    我有同样的问题,通过以下方式解决:

    sudo mkdir /opt/petalinux
    sudo chown -R `whoami` /opt/petalinux
    ./petalinux-*.run /opt/petalinux
    # Optionally: sudo chown -R root /opt/petalinux
    

    请注意,您不能在家中安装 petalinux,然后将其移至 /opt,它将无法正常工作。许多路径必须在安装时定义。

    • 0

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve