UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor pbrown@sct
Visitor
5,363 Views
Registered: ‎09-28-2017

Petalinux 2017.2 installation failure

Jump to solution

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:
/mnt/shared/Downloads/petalinux-v2017.2-final-installer.run

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:

/mnt/shared/Downloads/petalinux-v2017.2-final-installer.run /opt/pkg/petalinux

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
difference.

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.

 

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
7,320 Views
Registered: ‎10-04-2017

Re: Petalinux 2017.2 installation failure

Jump to solution

You either have to use sudo to enable write permissions in /opt or you can install it in your home directory.

 

jeff

 

View solution in original post

0 Kudos
7 Replies
Explorer
Explorer
7,321 Views
Registered: ‎10-04-2017

Re: Petalinux 2017.2 installation failure

Jump to solution

You either have to use sudo to enable write permissions in /opt or you can install it in your home directory.

 

jeff

 

View solution in original post

0 Kudos
Visitor pbrown@sct
Visitor
5,288 Views
Registered: ‎09-28-2017

Re: Petalinux 2017.2 installation failure

Jump to solution

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/."
*********************************************

Permissions are:

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. 

 

0 Kudos
Contributor
Contributor
5,227 Views
Registered: ‎06-06-2017

Re: Petalinux 2017.2 installation failure

Jump to solution

Hi, pbrown@sct

 

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

 
Explorer
Explorer
5,056 Views
Registered: ‎07-05-2017

Re: Petalinux 2017.2 installation failure

Jump to solution

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.

 

Any suggestions?

 

 

 

 

0 Kudos
Explorer
Explorer
5,042 Views
Registered: ‎07-05-2017

Re: Petalinux 2017.2 installation failure

Jump to solution

sudo mkdir  /opt/pkg

sudo mkdir  /opt/pkg/petalinux-v2017.3

sudo chown <username> /opt/pkg/petalinux-v2017.3

 

Copy the "petalinux-v2017.3-final-installer.run" installer to /opt/pkg/petalinux-v2017.3/

sudo cp petalinux-v2017.3-final-installer.run /opt/pkg/petalinux-v2017.3/

cd /opt/pkg/petalinux-v2017.2/

./petalinux-v2017.2-final-installer.run

 

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

0 Kudos
Visitor pbrown@sct
Visitor
4,940 Views
Registered: ‎09-28-2017

Re: Petalinux 2017.2 installation failure

Jump to solution

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?

 

0 Kudos
Highlighted
Observer floringf
Observer
1,695 Views
Registered: ‎04-11-2019

Re: Petalinux 2017.2 installation failure

Jump to solution

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!

0 Kudos