# Pynq installation on Kria KV260 with Ubuntu 22.04 LTS - help please

**URL:** <https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576>\
**Category:** Support\
**Created:** [August 23, 2022, 11:04am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576 "2022-08-23T11:04:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![erg900](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@erg900](https://discuss.pynq.io/u/erg900)\
**Post date:** [August 23, 2022, 11:04am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/1 "2022-08-23T11:04:15Z")

</div>

Hi,

I tried to install Pynq on a Kria KV260 loaded with the Ubuntu 22.04 version. I’ve tried to modify the install.sh script by changing the version of some packages (python3.10-venv for instance instead of python3.8-venv) to get past errors. So far I have reached a point where I am able to get Jupyter Lab running but still a dismal failure on my part.

Will there be an install script to cater for Ubuntu 22.04?

Thank you

---

<div class="post-metadata">

**Author:** ![abdyoyo](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/abdyoyo/32/2297_2.png) [@abdyoyo](https://discuss.pynq.io/u/abdyoyo)\
**Post date:** [August 25, 2022, 5:54am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/2 "2022-08-25T05:54:47Z")

</div>

Can you paste a screenshot of the errors that you get after running your modified install.sh?

---

<div class="post-metadata">

**Author:** ![erg900](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@erg900](https://discuss.pynq.io/u/erg900)\
**Post date:** [August 25, 2022, 10:16am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/3 "2022-08-25T10:16:14Z")

</div>

Hi, thank you for your interest.

This is the first mod:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/d/d9cd17c8a5141ea3764b3aca2ec2e9533d111c83.png)

the **python3.8-venv** has been replaced with **python3.10-venv** because it will say that the version 3.8 cannot be found.

---

<div class="post-metadata">

**Author:** ![erg900](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@erg900](https://discuss.pynq.io/u/erg900)\
**Post date:** [August 25, 2022, 10:21am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/4 "2022-08-25T10:21:15Z")

</div>

The next error is this:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/0/04312fccdda291979c6fa1e3435f802c64868d07.png)

To fix this I actually placed a folder **pynq/sdbuild/packages/python\_packages\_focal** which I copied from a running version of Pynq where the os is Ubuntu 20.04 LTS. That made this script go further through the process. I will send the next set of errors.

Erg

---

<div class="post-metadata">

**Author:** ![erg900](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@erg900](https://discuss.pynq.io/u/erg900)\
**Post date:** [August 25, 2022, 10:38am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/5 "2022-08-25T10:38:39Z")

</div>

Here is another error:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/7/7d3e202b4d57731fc82e7d09320f7995eb205248.png)

To fix this, I went to the file **/home/ubuntu/Kria-PYNQ/pynq/sdbuild/packages/python\_packages\_focal/qemu.sh**

In that file, I commented out the line **pkg\_resources==0.0.0**

This allowed me to move a bit further on the install process.

Erg

---

<div class="post-metadata">

**Author:** ![erg900](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@erg900](https://discuss.pynq.io/u/erg900)\
**Post date:** [August 25, 2022, 10:55am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/6 "2022-08-25T10:55:27Z")

</div>

I gave up after this error while building NumPy:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/a/afff2bd18c6bfeb44bb9ffa9216fb20b6305b41b.png)

I can’t sent the rest as it is a long long list of messages.

Erg

---

<div class="post-metadata">

**Author:** ![erg900](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@erg900](https://discuss.pynq.io/u/erg900)\
**Post date:** [August 25, 2022, 11:18am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/7 "2022-08-25T11:18:31Z")

</div>

And after fixing the error above by changing the NumPy version to **numpy==1.23.2**

I stopped after this error that I could not figure out how to fix:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/f/f796224441cd25b6d33803333d361df4f72e6d1d.png)

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [August 25, 2022, 1:08pm UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/8 "2022-08-25T13:08:04Z")

</div>

Hi @erg900,

The Ubuntu 22.04 is a pre-production release. So, we have not ported the installation scrip to it yet.  
Any particular reason you want to use 22.04 and not 20.04?

Mario

---

<div class="post-metadata">

**Author:** ![erg900](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@erg900](https://discuss.pynq.io/u/erg900)\
**Post date:** [August 25, 2022, 7:31pm UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/9 "2022-08-25T19:31:38Z")

</div>

Hi Mario,

No particular reason. I thought was going to be an easy journey but I’m wrong with that assumption. I’ll be keen to go and use the new script when it becomes available. Thanks for the message.

Erg

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [August 26, 2022, 12:43pm UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/10 "2022-08-26T12:43:06Z")

</div>

Hi @erg900,

When the Ubuntu 22.04 production image is launched, we will start with the porting process.  
In the meantime, I think the best thing is to use the 20.04 image.

Mario

---

<div class="post-metadata">

**Author:** ![erg900](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@erg900](https://discuss.pynq.io/u/erg900)\
**Post date:** [November 7, 2022, 7:00am UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/11 "2022-11-07T07:00:45Z")

</div>

Hi all,

Finally built Pynq on the Kria KV260 with Ubuntu 22.04 LTS. All good and working. Thank you to the people who got this happening.

Erg

---

<div class="post-metadata">

**Author:** ![willcbrn](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@willcbrn](https://discuss.pynq.io/u/willcbrn)\
**Post date:** [September 25, 2023, 9:36pm UTC](https://discuss.pynq.io/t/pynq-installation-on-kria-kv260-with-ubuntu-22-04-lts-help-please/4576/12 "2023-09-25T21:36:46Z")

</div>

Hi There,

I’m running Ubuntu 22.04 and I am getting the initall ‘Please use Ubuntu 20.04 or Ubuntu 18.04’ error message after running setup\_host.sh. How did you get it to work with Ubuntu 22.04?

Thanks,

Will
