10-10-2017 02:09 PM
After getting the correct installation file (described in a different thread), I have been unable to
successfully install the Petalinux tools. With the installer file at this location:
I created the install directory:
sudo mkdir /opt/pkg/petalinux
(it fails if not run as sudo). I ran the install file from my home directory, specifying the install directory:
The resulting error messages are:
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/." tar: ./etc: Cannot mkdir: Permission denied tar: ./etc: Cannot mkdir: Permission denied tar: ./etc/license: Cannot mkdir: No such file or directory
and it goes on and on from there. If I run the install command as sudo, I (eventually) get:
ERROR: The extensible sdk cannot be installed as root.
If I create the installation directory, then open up its permissions to 777, I get:
tar: .: Cannot utime: Operation not permitted tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted tar: Exiting with failure status due to previous errors
If I create the install directory and cd to it, then run the install, I get the same errors.
I tried manually defining the environment variable PETALINUX as the install directory. This did not make any
There is an install log written to the current directory (not to $PETALINUX, as UG1144 states - at this point
PETALINUX is not defined), but it gives even less information than the screen messages.
I would appreciate any ideas as to what might be going on here.
10-11-2017 10:36 AM
Thanks Jeff, I'm marking this as Solved even though it only worked in my home directory.
I tried adding write and recurse directory permissions to both /opt and /opt/pkg and still got the utime error:
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/." tar: .: Cannot utime: Operation not permitted tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted tar: Exiting with failure status due to previous errors ********************************************* ERROR: Failed to install PetaLinux SDK into "/opt/pkg/petalinux/." *********************************************
pbrown@paulb-VirtualBox:~$ ls -al /opt total 16 drwxrwxrwx 4 root root 4096 Sep 28 09:18 . drwxr-xr-x 26 root root 4096 Sep 28 07:39 .. drwxrwxrwx 3 root root 4096 Oct 11 11:14 pkg drwxr-xr-x 9 root root 4096 Sep 27 13:44 VBoxGuestAdditions-5.1.22 pbrown@paulb-VirtualBox:~$ ls -al /opt/pkg total 12 drwxrwxrwx 3 root root 4096 Oct 11 11:14 . drwxrwxrwx 4 root root 4096 Sep 28 09:18 .. drwxrwxrwx 5 root root 4096 Oct 11 11:28 petalinux pbrown@paulb-VirtualBox:~$
Maybe need to change the owner as well? If that's necessary then I would just keep it as installed in my home directory.
10-19-2017 08:50 AM
yes you need to change the owner as well. So need to add
sudo chown <owner>:<owner> /opt/pkg/petalinux ./petalinux-v2017.1-final-installer.run /opt/pkg/petalinux
It worked for me
11-16-2017 03:11 PM
I checked the owner by typing
$ echo "$USER"
it gave me "mmd"
First I made a directory
mmd@mmd-HP-laptop: /opt$ mkdir Petalinux_2017_3
I changed directory into Downloads where I have petalinux-v2017.3-final-installer.run copied to.
I ran the command:
sudo chown mmd:mmd /opt/Petalinux_2017_3 ./petalinux-v2017.3-final-installer.run /opt/Petalinux_2017_3
Nothing happened. Did not get any errors Nor was there any Petalinux installed in the /opt/Petalinux_2017_3 directory.
11-17-2017 10:07 AM
Need to do these to get the missing packages.
Sudo apt-get update
Sudo apt-get install –y <missim_package>
I got most of it, but could not find the xvfb-run and textinfo
11-27-2017 07:11 AM
From my notes, I didn't seem to have any problem finding and installing xvfb, or maybe it was already part of my Ubuntu install. Could you have mis-spelled texinfo as textinfo, as you did in your post?
04-11-2019 01:14 PM
I changed the directory owner (where the instalation file is located) and it fixed the tar error.
The installer is able to access the tar and finish the petalinux instalation!
Thank you, kind sir!