# E: Unable to locate package

**URL:** <https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738>\
**Category:** Jetson Nano\
**Tags:** python\
**Created:** [January 3, 2024, 9:15am UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738 "2024-01-03T09:15:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarodeanil35](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sarodeanil35/32/290548_2.png) [@sarodeanil35](https://forums.developer.nvidia.com/u/sarodeanil35)\
**Post date:** [January 3, 2024, 9:15am UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/1 "2024-01-03T09:15:41Z")

</div>

I have Jetson Nano which is not a dev kit but a third-party carrier board with Jetson Nano as an SoM. After BSP(Provided by the company ) boots, when I try to install the nano editor I get the following error :

`t-tech@ttech-desktop:~$ sudo apt-get -y install nano

[sudo] password for t-tech:  
Reading package lists… Done  
Building dependency tree… Done  
Reading state information… Done  
nano is already the newest version (6.2-1).  
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.  
`  
Then I tried to install Python3 but ended with the same thing

`ttech@ttech-desktop:~$ sudo apt-get install -y python3-pip

Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
E: Unable to locate package python3-pip  
`  
Then I found repository mentions in: [Unable to Locate Package - Basically every package i try to install](https://forums.developer.nvidia.com/t/unable-to-locate-package-basically-every-package-i-try-to-install/153798) are already enabled.

Lastly, from here : [6 Ways to Fix "E: Unable to Locate Package" Error on Ubuntu](https://operavps.com/docs/fix-unable-to-locate-package-error-on-ubuntu/) the 5th point I come to about

`hwe-support-status --verbose`

and this command results in

`ttech@ttech-desktop:~$ hwe-support-status --verbose You are not running a system with a Hardware Enablement Stack. Your system is supported until April 2023. `

If the Ubuntu version is not supported and has expired, you will receive the error “E: Unable to Locate Package” when installing new packages.

Is there any way to upgrade the version support? Please help me. I appreciate any help you can provide.  
@linuxdev Do you know the solution? I appreciate any help you can provide.

---

<div class="post-metadata">

**Author:** ![linuxdev](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/linuxdev/32/10243_2.png) [@linuxdev](https://forums.developer.nvidia.com/u/linuxdev)\
**Post date:** [January 3, 2024, 6:09pm UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/2 "2024-01-03T18:09:24Z")

</div>

It might be a case of the Nano running Ubuntu 18.04 being too old. You might even be running Ubuntu 16.04. What L4T release is this? See “`head -n 1 /etc/nv_tegra_release`”. If it is R32.x, then it is Ubuntu 18.04, if it is R28.x, then it is Ubuntu 16.04.

Also, what do you see from:  
`apt search '(python3|python)\-pip'`  
(I’m using regular expressions)

At some point it might be “`python`” is “`python2`”, but not labelled, or the inverse, it might be “`python3`”, but not labelled…then as releases progress, the deprecated version gets the “numbered” name. Not sure, I’m not really a Python guy.

Your `nano` editor is already there at least. The command shows that `apt` is functioning and that there is internet access.

EDIT: I just thought the search command might be better as:  
`apt search '(python2|python3|python)\-pip'`  
(this could be a better regex, but the above will work)

---

<div class="post-metadata">

**Author:** ![sarodeanil35](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sarodeanil35/32/290548_2.png) [@sarodeanil35](https://forums.developer.nvidia.com/u/sarodeanil35)\
**Post date:** [January 4, 2024, 9:33am UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/3 "2024-01-04T09:33:22Z")

</div>

@linuxdev Thanks for your response.

The release as per this `head -n 1 /etc/nv_tegra_release`  
ttech@ttech-desktop:~$ head -n 1 /etc/nv\_tegra\_release

`R32 (release), REVISION: 7.2, GCID: 30192233, BOARD: t210ref, EABI: aarch64, DATE: Wed Apr 20 21:34:48 UTC 2022`

Also `apt search '(python3|python)\-pip'` result in

`ttech@ttech-desktop:~$ apt search '(python2|python3|python)\-pip' Sorting... Done Full Text Search... Done`

And `sudo apt search '(python2|python3|python)\-pip'` result in

`ttech@ttech-desktop:~$ sudo apt search '(python2|python3|python)\-pip' Sorting... Done Full Text Search... Done `

---

<div class="post-metadata">

**Author:** ![linuxdev](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/linuxdev/32/10243_2.png) [@linuxdev](https://forums.developer.nvidia.com/u/linuxdev)\
**Post date:** [January 4, 2024, 1:54pm UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/4 "2024-01-04T13:54:40Z")

</div>

Your L4T release version is the most recent for the Nano (not for Orin Nano, a different Jetson), so you are running Ubuntu 18.04. The result either did not paste into the forum thread, or the search did not accept the regular expressions. You could manually run each of these:

```auto
apt search python-pip
apt search python2-pip
apt search python3-pip

```

---

<div class="post-metadata">

**Author:** ![sarodeanil35](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sarodeanil35/32/290548_2.png) [@sarodeanil35](https://forums.developer.nvidia.com/u/sarodeanil35)\
**Post date:** [January 4, 2024, 2:30pm UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/5 "2024-01-04T14:30:06Z")

</div>

ttech@ttech-desktop:~$ apt search python-pip  
Sorting… Done  
Full Text Search… Done  
ttech@ttech-desktop:~$ apt search python2-pip  
Sorting… Done  
Full Text Search… Done  
ttech@ttech-desktop:~$ apt search python3-pip  
Sorting… Done  
Full Text Search… Done  
ttech@ttech-desktop:~$

---

<div class="post-metadata">

**Author:** ![linuxdev](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/linuxdev/32/10243_2.png) [@linuxdev](https://forums.developer.nvidia.com/u/linuxdev)\
**Post date:** [January 4, 2024, 2:34pm UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/6 "2024-01-04T14:34:03Z")

</div>

That is quite odd. If the network is available, and if the setup is from the default of _any_ Ubuntu (including Jetsons), then there should have been a listing of packages. Can you attach a copy of this file to the forum?  
`/etc/apt/sources.list`

Also, what happens if you run these commands, which only update:

```auto
sudo apt update
sudo apt-get upgrade

```

Can your Jetson ping outside networks, e.g., can you “`ping google.com`” or “`ping nvidia.com`”?

---

<div class="post-metadata">

**Author:** ![sarodeanil35](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sarodeanil35/32/290548_2.png) [@sarodeanil35](https://forums.developer.nvidia.com/u/sarodeanil35)\
**Post date:** [January 4, 2024, 2:54pm UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/7 "2024-01-04T14:54:44Z")

</div>

![image](https://global.discourse-cdn.com/nvidia/original/4X/d/a/d/dad5219bd21337b3fa727cc497bc9ed21f29e7ba.png)

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/3/2/6/32620d0e9565bd8d2322dece76448741b6541056.png)

`ttech@ttech-desktop:~$ sudo apt update  
Get:1 file:/var/cuda-repo-l4t-10-2-local InRelease  
Ign:1 file:/var/cuda-repo-l4t-10-2-local InRelease  
Get:2 file:/var/cuda-repo-l4t-10-2-local Release [564 B]  
Get:2 file:/var/cuda-repo-l4t-10-2-local Release [564 B]  
Get:3 [https://repo.download.nvidia.com/jetson/common](https://repo.download.nvidia.com/jetson/common) r32.7 InRelease [2,555 B]  
Get:4 [https://repo.download.nvidia.com/jetson/t210](https://repo.download.nvidia.com/jetson/t210) r32.7 InRelease [2,553 B]  
Hit:5 [Index of /ubuntu-ports](http://ports.ubuntu.com/ubuntu-ports) bionic InRelease  
Hit:7 [Index of /ubuntu-ports](http://ports.ubuntu.com/ubuntu-ports) bionic-updates InRelease  
Hit:8 [Index of /ubuntu-ports](http://ports.ubuntu.com/ubuntu-ports) bionic-backports InRelease  
Hit:9 [Index of /ubuntu-ports](http://ports.ubuntu.com/ubuntu-ports) bionic-security InRelease  
Fetched 5,108 B in 2s (3,054 B/s)

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.924: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic\_main\_dep11\_Components-arm64.yml.gz

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.924: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic\_universe\_dep11\_Components-arm64.yml.gz

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.925: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic\_multiverse\_dep11\_Components-arm64.yml.gz

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.925: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic-updates\_main\_dep11\_Components-arm64.yml.gz

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.925: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic-updates\_universe\_dep11\_Components-arm64.yml.gz

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.925: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic-backports\_main\_dep11\_Components-arm64.yml.gz

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.925: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic-backports\_universe\_dep11\_Components-arm64.yml.gz

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.925: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic-security\_main\_dep11\_Components-arm64.yml.gz

\*\* (appstreamcli:7844): WARNING \*\*: 20:23:09.925: No origin found for file ports.ubuntu.com\_ubuntu-ports\_dists\_bionic-security\_universe\_dep11\_Components-arm64.yml.gz  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
All packages are up to date.`

`ttech@ttech-desktop:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. `

ttech@ttech-desktop:~$ ping [google.com](http://google.com)  
PING [google.com](http://google.com) (142.251.42.14) 56(84) bytes of data.  
64 bytes from [bom12s19-in-f14.1e100.net](http://bom12s19-in-f14.1e100.net) (142.251.42.14): icmp\_seq=1 ttl=118 time=5.56 ms  
64 bytes from [bom12s19-in-f14.1e100.net](http://bom12s19-in-f14.1e100.net) (142.251.42.14): icmp\_seq=2 ttl=118 time=5.32 ms  
64 bytes from [bom12s19-in-f14.1e100.net](http://bom12s19-in-f14.1e100.net) (142.251.42.14): icmp\_seq=3 ttl=118 time=7.03 ms  
^C  
— [google.com](http://google.com) ping statistics —  
3 packets transmitted, 3 received, 0% packet loss, time 2002ms  
rtt min/avg/max/mdev = 5.328/5.974/7.032/0.754 ms  
ttech@ttech-desktop:~$ ping [nvidia.com](http://nvidia.com)  
PING [nvidia.com](http://nvidia.com) (34.194.97.138) 56(84) bytes of data.  
^C  
— [nvidia.com](http://nvidia.com) ping statistics —  
6 packets transmitted, 0 received, 100% packet loss, time 5105ms

I think I am not able to ping [nvidia.com](http://nvidia.com)

---

<div class="post-metadata">

**Author:** ![linuxdev](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/linuxdev/32/10243_2.png) [@linuxdev](https://forums.developer.nvidia.com/u/linuxdev)\
**Post date:** [January 5, 2024, 2:46pm UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/8 "2024-01-05T14:46:35Z")

</div>

It looks like it _should_ work (the `sources.list`), but something is going wrong. Try to clean cache, and then update again:

```auto
sudo apt-get clean
sudo apt update
sudo apt-get upgrade

```

Does first cleaning cache help? Most systems are configured to auto check after GUI login, and I don’t know what the configuration is, so it is possible that if you do the above right after login (if via GUI) that it have issues locking (I don’t think that is related though).

Not being able to ping `nvidia.com` is actually expected, but it did demonstrate that DNS is working, and that the server your DNS pointed at is `34.194.97.138` (ping uses ICMP and not all hops or servers support this).

Basically, you have a corrupt cache. If the command to clear cache fails, then go here and delete all of the cache files, but only do this if the earlier “`clean`” operation does not do the job:

```auto
sudo -s
cd /var/lib/apt/lists
# Be 100% certain you are at the above location and nowhere else.
rm *

# Now normal update:
cd
apt update
apt-get upgrade
exit

```

Then perform the python searches from above again and see if anything shows up.

---

<div class="post-metadata">

**Author:** ![sarodeanil35](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sarodeanil35/32/290548_2.png) [@sarodeanil35](https://forums.developer.nvidia.com/u/sarodeanil35)\
**Post date:** [January 5, 2024, 3:32pm UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/9 "2024-01-05T15:32:25Z")

</div>

The `sudo apt-get clean` does not work, so I proceed ahead with `rm *` It shows

`rm: cannot remove 'auxfiles': Is a directory`  
`rm: cannot remove 'partial': Is a directory`

Shall I proceed ahead?

Edit: @linuxdev Thanks it works. Thank you for being so helpful.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [January 19, 2024, 3:33pm UTC](https://forums.developer.nvidia.com/t/e-unable-to-locate-package/277738/10 "2024-01-19T15:33:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
