# Illegal instruction when attempt to install Anaconda on Ubuntu 22.04

**URL:** <https://forum.anaconda.com/t/illegal-instruction-when-attempt-to-install-anaconda-on-ubuntu-22-04/47002>\
**Category:** Anaconda & Miniconda\
**Created:** [December 6, 2022, 2:54pm UTC](https://forum.anaconda.com/t/illegal-instruction-when-attempt-to-install-anaconda-on-ubuntu-22-04/47002 "2022-12-06T14:54:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Currey](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/brandon_currey/32/2704_2.png) [@Brandon\_Currey](https://forum.anaconda.com/u/Brandon_Currey)\
**Post date:** [December 6, 2022, 2:54pm UTC](https://forum.anaconda.com/t/illegal-instruction-when-attempt-to-install-anaconda-on-ubuntu-22-04/47002/1 "2022-12-06T14:54:11Z")

</div>

When I attempt to install Anaconda on mt ARM64 with Ubuntu 22.04 I recieive this error: Anaconda3-2022.10-Linux-aarch64.sh: line 408: 44896 Illegal instruction (core dumped) “$CONDA\_EXEC” constructor --prefix “$PREFIX” --extract-conda-pkgs  
I am a PC veteran but bit of a Linux newbie. am learning as I go. I have it successfully installed on my Win 10 machine and I am trying to install it on my Pi 4 for a class. Any help is appreciated.

BTC

---

<div class="post-metadata">

**Author:** ![ktsh.tanaka.2020](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/ktsh.tanaka.2020/32/1400_2.png) [@ktsh.tanaka.2020](https://forum.anaconda.com/u/ktsh.tanaka.2020)\
**Post date:** [December 8, 2022, 1:00pm UTC](https://forum.anaconda.com/t/illegal-instruction-when-attempt-to-install-anaconda-on-ubuntu-22-04/47002/2 "2022-12-08T13:00:04Z")

</div>

dear [Brandon\_Currey](https://forum.anaconda.com/u/Brandon_Currey).

Thank you for your contribution to the anaconda community.

The key to solving the problem you encountered is in the downloaded program.  
Below is a part of the program that throws out the error you encountered with the less command installed in Linux.

> export TMP\_BACKUP=“$TMP”  
> export TMP=$PREFIX/install\_tmp
> 
> printf “Unpacking payload …\n”  
> {  
> dd if=“$THIS\_PATH” bs=1 skip=11378185 count=8695 2\>/dev/null  
> dd if=“$THIS\_PATH” bs=16384 skip=695 count=33510 2\>/dev/null  
> dd if=“$THIS\_PATH” bs=1 skip=560414720 count=14896 2\>/dev/null  
> } | “$CONDA\_EXEC” constructor --extract-tar --prefix “$PREFIX”
> 
> “$CONDA\_EXEC” constructor --prefix “$PREFIX” --extract-conda-pkgs || exit 1

An approach to solve this problem is solved if the following requirements are met:

1. The command line environment for installing anaconda must be a program called sh or bash.

How to check can be determined by using the following command.

> ps -o args= -p “$$”

2.At least 4GB of memory allocated to the Linux environment for installing anaconda.

You can check by using the following command.

> free -g

If both requirements are not met, the Rasberry Pi will complain about insufficient memory.

If ubuntu is installed, the requirement 1 should be met, so you need to select hardware that satisfies the requirement 2.

We apologize for the inconvenience, but thank you for your understanding.

best regards.

---

<div class="post-metadata">

**Author:** ![Brandon\_Currey](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/brandon_currey/32/2704_2.png) [@Brandon\_Currey](https://forum.anaconda.com/u/Brandon_Currey)\
**Post date:** [December 8, 2022, 4:11pm UTC](https://forum.anaconda.com/t/illegal-instruction-when-attempt-to-install-anaconda-on-ubuntu-22-04/47002/3 "2022-12-08T16:11:27Z")

</div>

My environment is bash and I have 7.9 gigs of memory available.

Thanks,

Brandon

---

<div class="post-metadata">

**Author:** ![udtelco](https://avatars.discourse-cdn.com/v4/letter/u/c2df01/32.png) [@udtelco](https://forum.anaconda.com/u/udtelco)\
**Post date:** [May 8, 2024, 3:43pm UTC](https://forum.anaconda.com/t/illegal-instruction-when-attempt-to-install-anaconda-on-ubuntu-22-04/47002/4 "2024-05-08T15:43:48Z")

</div>

Apologies for resurrecting this, but has this been resolved ? From available searches, it seems to happen because binaries were created targeting ARM N2/ Neoverse, a hardcore server dev platform. But probably 99.9% of all ARM64 development is happening on just good old Cortex A - like all raspberry pis and most of their cousins.  
Have you found a solution to this ?
