Jetson nano install fail

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
asps946701
Posts: 7
Joined: Mon Sep 23, 2019 5:53 am

Jetson nano install fail

Post by asps946701 »

Hello,
My OS is:

Code: Select all

$ lsb_release -a 
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic
I try to install freecad on jetson nano by this:
https://www.freecadweb.org/wiki/Install_on_Unix

When I go to this step:

Code: Select all

$sudo apt-get install freecad freecad-doc && sudo apt-get upgrade
Output these massage:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
freecad-doc is already the newest version (1:0.17.13541-1ppa10~ubuntu18.04.1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 freecad : Depends: freecad-python3 but it is not installable or
                    freecad-python2 but it is not installable
E: Unable to correct problems, you have held broken packages.
Then I try to install freecad-python2&3:

Code: Select all

$ sudo apt-get install freecad-python3

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package freecad-python3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'freecad-python3' has no installation candidate

Code: Select all

$ sudo apt-get install freecad-python2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package freecad-python2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  freecad-common

E: Package 'freecad-python2' has no installation candidate
Anyone can help me thanks :D
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Jetson nano install fail

Post by openBrain »

What version are you trying to install? The one from the official repo or the one from the stable PPA?

Also could you try to install freecad only without freecad-doc?

Why do you want to upgrade after installing? And did you update before trying to install?
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Jetson nano install fail

Post by vocx »

asps946701 wrote: Mon Sep 23, 2019 8:42 am ...
I try to install freecad on jetson nano by this:
What is Jetson nano?

As openBrain says, try installing without the -doc package. It causes collisions currently.

Make sure you've added the PPA repository first, and do

Code: Select all

sudo apt update && sudo apt upgrade
before installing FreeCAD.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
asps946701
Posts: 7
Joined: Mon Sep 23, 2019 5:53 am

Re: Jetson nano install fail

Post by asps946701 »

openBrain wrote: Mon Sep 23, 2019 8:59 am What version are you trying to install? The one from the official repo or the one from the stable PPA?

Also could you try to install freecad only without freecad-doc?

Why do you want to upgrade after installing? And did you update before trying to install?
Thanks you reply, Sorry this is my first time using Ubuntu.
I delete my freecad installation
Then I install stable version by below flow:(failed)
-Adding "deb http://ppa.launchpad.net/freecad-mainta ... ble/ubuntu bionic main "
add_ppa.png
add_ppa.png (69.3 KiB) Viewed 3775 times
2.png
2.png (79.81 KiB) Viewed 3775 times
-Update & upgrade

Code: Select all

$ sudo apt update && sudo apt upgrade
Get:1 file:/var/cuda-repo-10-0-local-10.0.166  InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.166  InRelease
Get:2 file:/var/visionworks-repo  InRelease
Ign:2 file:/var/visionworks-repo  InRelease
Get:3 file:/var/visionworks-sfm-repo  InRelease
Ign:3 file:/var/visionworks-sfm-repo  InRelease
Get:4 file:/var/visionworks-tracking-repo  InRelease
Ign:4 file:/var/visionworks-tracking-repo  InRelease
Get:5 file:/var/cuda-repo-10-0-local-10.0.166  Release [574 B]
Get:6 file:/var/visionworks-repo  Release [1999 B]                             
Get:7 file:/var/visionworks-sfm-repo  Release [2003 B]                         
Get:8 file:/var/visionworks-tracking-repo  Release [2008 B]                    
Get:5 file:/var/cuda-repo-10-0-local-10.0.166  Release [574 B]                 
Get:6 file:/var/visionworks-repo  Release [1999 B]                             
Get:7 file:/var/visionworks-sfm-repo  Release [2003 B]                         
Get:8 file:/var/visionworks-tracking-repo  Release [2008 B]                    
Hit:10 http://ports.ubuntu.com/ubuntu-ports bionic InRelease                   
Hit:11 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu bionic InRelease
Hit:12 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease           
Hit:15 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease         
Hit:16 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Hit:18 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease          
Hit:19 http://ppa.launchpad.net/sppedflyer/mytestppa1/ubuntu bionic InRelease  
Reading package lists... Done 
Building dependency tree       
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libqt5positioning5 libqt5sensors5 libqt5webchannel5 libqt5webkit5
  qt5-assistant
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  gdb gdbserver libegl-mesa0 libegl1-mesa libegl1-mesa-dev libgbm1
  libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa
  libgles2-mesa-dev libglx-mesa0 libwayland-egl1-mesa mesa-common-dev
  mesa-va-drivers mesa-vdpau-drivers
16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.0 MB of archives.
After this operation, 27.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 gdb arm64 8.1-0ubuntu3.1 [2912 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 gdbserver arm64 8.1-0ubuntu3.1 [259 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libegl-mesa0 arm64 19.0.8-0ubuntu0~18.04.2 [78.8 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libgbm1 arm64 19.0.8-0ubuntu0~18.04.2 [24.3 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libgl1-mesa-dri arm64 19.0.8-0ubuntu0~18.04.2 [4411 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libglx-mesa0 arm64 19.0.8-0ubuntu0~18.04.2 [118 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libglapi-mesa arm64 19.0.8-0ubuntu0~18.04.2 [28.9 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libegl1-mesa arm64 19.0.8-0ubuntu0~18.04.2 [6300 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libgl1-mesa-dev arm64 19.0.8-0ubuntu0~18.04.2 [6044 B]
Get:10 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libegl1-mesa-dev arm64 19.0.8-0ubuntu0~18.04.2 [19.7 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 mesa-common-dev arm64 19.0.8-0ubuntu0~18.04.2 [603 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libgl1-mesa-glx arm64 19.0.8-0ubuntu0~18.04.2 [5396 B]
Get:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libgles2-mesa-dev arm64 19.0.8-0ubuntu0~18.04.2 [43.4 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libwayland-egl1-mesa arm64 19.0.8-0ubuntu0~18.04.2 [6324 B]
Get:15 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 mesa-va-drivers arm64 19.0.8-0ubuntu0~18.04.2 [1700 kB]
Get:16 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 mesa-vdpau-drivers arm64 19.0.8-0ubuntu0~18.04.2 [1803 kB]
Fetched 12.0 MB in 1min 8s (177 kB/s)                                          
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 162133 files and directories currently installed.)
Preparing to unpack .../00-gdb_8.1-0ubuntu3.1_arm64.deb ...
Unpacking gdb (8.1-0ubuntu3.1) over (8.1-0ubuntu3) ...
Preparing to unpack .../01-gdbserver_8.1-0ubuntu3.1_arm64.deb ...
Unpacking gdbserver (8.1-0ubuntu3.1) over (8.1-0ubuntu3) ...
Preparing to unpack .../02-libegl-mesa0_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libegl-mesa0:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../03-libgbm1_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libgbm1:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../04-libgl1-mesa-dri_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libgl1-mesa-dri:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../05-libglx-mesa0_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libglx-mesa0:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../06-libglapi-mesa_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libglapi-mesa:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../07-libegl1-mesa_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libegl1-mesa:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../08-libgl1-mesa-dev_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libgl1-mesa-dev:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../09-libegl1-mesa-dev_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libegl1-mesa-dev:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../10-mesa-common-dev_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking mesa-common-dev:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../11-libgl1-mesa-glx_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libgl1-mesa-glx:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../12-libgles2-mesa-dev_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libgles2-mesa-dev:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../13-libwayland-egl1-mesa_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking libwayland-egl1-mesa:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../14-mesa-va-drivers_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking mesa-va-drivers:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Preparing to unpack .../15-mesa-vdpau-drivers_19.0.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking mesa-vdpau-drivers:arm64 (19.0.8-0ubuntu0~18.04.2) over (19.0.8-0ubuntu0~18.04.1) ...
Setting up mesa-common-dev:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up mesa-vdpau-drivers:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libgbm1:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libglapi-mesa:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libgl1-mesa-dev:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up mesa-va-drivers:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libwayland-egl1-mesa:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libegl1-mesa-dev:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up gdbserver (8.1-0ubuntu3.1) ...
Setting up libegl-mesa0:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up gdb (8.1-0ubuntu3.1) ...
Setting up libegl1-mesa:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libgles2-mesa-dev:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libgl1-mesa-dri:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libglx-mesa0:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libgl1-mesa-glx:arm64 (19.0.8-0ubuntu0~18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
-Installing freecad without freecad-doc?

Code: Select all

$sudo apt-get install freecad 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 freecad : Depends: freecad-python3 but it is not installable or
                    freecad-python2 but it is not installable
E: Unable to correct problems, you have held broken packages.
:o :o
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Jetson nano install fail

Post by vocx »

asps946701 wrote: Tue Sep 24, 2019 1:30 am -Installing freecad without freecad-doc?
First, make sure previous freecad packages are removed, also the -doc package.

Code: Select all

sudo apt purge freecad freecad-doc
Then install the freecad packages

Code: Select all

sudo apt install freecad freecad-python3 freecad-common freecad-runtime libfreecad-python3-0.18
If that fails, then I suggest you try installing the "AppImage" package indicated in Download.

An AppImage is a type of universal binary file for Linux. A single AppImage should work in different Linux distributions.

What is an “AppImage”? How do I install it?
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
asps946701
Posts: 7
Joined: Mon Sep 23, 2019 5:53 am

Re: Jetson nano install fail

Post by asps946701 »

vocx wrote: Tue Sep 24, 2019 2:25 am
asps946701 wrote: Tue Sep 24, 2019 1:30 am -Installing freecad without freecad-doc?
First, make sure previous freecad packages are removed, also the -doc package.

Code: Select all

sudo apt purge freecad freecad-doc
Then install the freecad packages

Code: Select all

sudo apt install freecad freecad-python3 freecad-common freecad-runtime libfreecad-python3-0.18
If that fails, then I suggest you try installing the "AppImage" package indicated in Download.

An AppImage is a type of universal binary file for Linux. A single AppImage should work in different Linux distributions.

What is an “AppImage”? How do I install it?
Thanks you help . But it also fail. ToT

Code: Select all

$ sudo apt purge freecad freecad-doc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'freecad' is not installed, so not removed
Package 'freecad-doc' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code: Select all

$ sudo apt install freecad freecad-python3 freecad-common freecad-runtime libfreecad-python3-0.18
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package freecad-python3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'freecad-python3' has no installation candidate
E: Unable to locate package libfreecad-python3-0.18
E: Couldn't find any package by glob 'libfreecad-python3-0.18'
E: Couldn't find any package by regex 'libfreecad-python3-0.18'

I try to use APPimage . It also fail. lol

Code: Select all

$ sudo chmod a+x FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage
$ ./freecad.AppImage
bash: FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: cannot execute binary file: Exec format error

Code: Select all

$ sudo ./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage
./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: 1: ./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: �: not found
./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: 2: ./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: }�P7pysH��_f��h: not found
./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: 1: ./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: �b��@@: not found
./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: 1: ./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: ELFAI: not found
./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: 19: ./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage: Syntax error: Unterminated quoted string

Code: Select all

$ uname  -a
Linux smg-desktop 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Jetson nano install fail

Post by openBrain »

Now I'm not sure that any FreeCAD build can run on an ARM processor... But I'm not an expert there.
Maybe have a look for compiling instructions for Raspberry Pi 3 (IIRC it has same CPU). ;)
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Jetson nano install fail

Post by vocx »

asps946701 wrote: Tue Sep 24, 2019 9:39 am

Code: Select all

$ uname  -a
Linux smg-desktop 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux
Wait, what? Aarch64? That's an ARM 64-bit architecture, not a standard x86 desktop processor.

What are you using?

I asked you to clarify what "Jetson nano" is. Then you showed Ubuntu. Are you using an ARM distribution based on Ubuntu?

The AppImage is intended for x86_64 distributions; it will not run on ARM.

In general, ARM architectures aren't well supported by FreeCAD. The graphics libraries, Coin3D, OpenGL, etc., don't have the best support there. Apparently FreeCAD can work on a Raspberry Pi 3, but not on a Raspberry Pi 4. It was mostly tested on Raspbian, based on Debian, and using "armhf" architecture which is 32-bit, not "aarch64" which is 64-bit.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
asps946701
Posts: 7
Joined: Mon Sep 23, 2019 5:53 am

Re: Jetson nano install fail

Post by asps946701 »

vocx wrote: Tue Sep 24, 2019 9:19 pm
asps946701 wrote: Tue Sep 24, 2019 9:39 am

Code: Select all

$ uname  -a
Linux smg-desktop 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux
Wait, what? Aarch64? That's an ARM 64-bit architecture, not a standard x86 desktop processor.

What are you using?

I asked you to clarify what "Jetson nano" is. Then you showed Ubuntu. Are you using an ARM distribution based on Ubuntu?

The AppImage is intended for x86_64 distributions; it will not run on ARM.

In general, ARM architectures aren't well supported by FreeCAD. The graphics libraries, Coin3D, OpenGL, etc., don't have the best support there. Apparently FreeCAD can work on a Raspberry Pi 3, but not on a Raspberry Pi 4. It was mostly tested on Raspbian, based on Debian, and using "armhf" architecture which is 32-bit, not "aarch64" which is 64-bit.
Oh sorry. thanks you reply
I think I use ARM distribution based on Ubuntu. Orz
Screenshot from 2019-09-25 14-04-51.png
Screenshot from 2019-09-25 14-04-51.png (125.22 KiB) Viewed 3716 times
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Jetson nano install fail

Post by vocx »

asps946701 wrote: Wed Sep 25, 2019 6:07 am I think I use ARM distribution based on Ubuntu. Orz
But why? Don't you have a regular computer, x86 based, desktop or laptop?
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply