cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
3,685 Views
Registered: ‎06-18-2019

Petalinux installation error on ubuntu VM

Jump to solution

I am trying to install petalinux installer petalinux-v2019.1-final-installer.run on an ubuntu Virtual Machine as a normal user (not root). I have downloaded the pre-required packages metioned in UG1144 (v2019.1) (Petalinux installation guide).

However I still get this error below:

 

INFO: Checking installation environment requirements...
awk: read error (Bad address)

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:
   /home/aj/Desktop/package/petalinux_installation_log

./petalinux-v2019.1-final-installer.run: line 140: /tmp/tmp.RyDQQuCamY/petalinux-env-check: No such file or directory
ERROR: Failed to extract Petalinux installer...

Could anyone help me to resolve this issue?

1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
3,658 Views
Registered: ‎04-24-2017

Hi @anjuman_degirum,

These errors are due to missing gawk packages on Ubuntu. We already have a CR to fix the missing information in 2019.1 UG1144 page 11(Quick Installation of Packages section)

Here is the right packages you need to install.

$ sudo apt-get install -y python gawk gcc git make net-tools libncurses5-dev tftpd zlib1g:i386 libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev screen pax gzip

Are you using Ubuntu-18.04 or 16.04?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

4 Replies
Highlighted
Moderator
Moderator
3,659 Views
Registered: ‎04-24-2017

Hi @anjuman_degirum,

These errors are due to missing gawk packages on Ubuntu. We already have a CR to fix the missing information in 2019.1 UG1144 page 11(Quick Installation of Packages section)

Here is the right packages you need to install.

$ sudo apt-get install -y python gawk gcc git make net-tools libncurses5-dev tftpd zlib1g:i386 libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev screen pax gzip

Are you using Ubuntu-18.04 or 16.04?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

Highlighted
3,648 Views
Registered: ‎06-18-2019

Yes, it worked after attempting to install all packages in table 2 on UG1144 (v2019.1). Your command does the same I believe. 

0 Kudos
Highlighted
3,643 Views
Registered: ‎06-18-2019
I am using Ubuntu 19.04, will that be a problem in the future? It has install correctly I believe.
0 Kudos
Highlighted
Moderator
Moderator
3,631 Views
Registered: ‎04-24-2017

Hi @anjuman_degirum ,

Yes Ubuntu-19.04 is problem for longterm as PetaLinux is generated using Yocto eSDK. Yocto community supports only 18.04 https://www.yoctoproject.org/docs/2.6.1/ref-manual/ref-manual.html#detailed-supported-distros and usually its only Ubuntu LTS versions are supported where 19.04 is not LTS.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------