Ошибка termux e unable to locate package

I am installing python on termux but I am getting this error:

$ pkg install python
Checking availability of current mirror: ok
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package python

Gino Mempin's user avatar

Gino Mempin

24.7k28 gold badges92 silver badges128 bronze badges

asked Dec 9, 2020 at 4:30

Binson Thangjam's user avatar

0

I think you haven’t update repo, look like you have just install termux. Anyway, execute

apt update

and then install any package.

wjandrea's user avatar

wjandrea

27.2k9 gold badges59 silver badges80 bronze badges

answered Dec 11, 2020 at 11:04

Krishna Kanhaiya's user avatar

1

The following combination of answers from this post worked for me:

  1. termux-setup-storage
  2. termux-change-repo (I selected Albatros)
  3. pkg update and pkg upgrade
  4. exit and then restart termux
  5. pkg install python -y

Andreas Violaris's user avatar

answered Feb 13, 2022 at 2:32

Sergio Cisternas's user avatar

termux has haulted all update through google playstore download it from f-droid
then change mirror it works (sometime)

termux-change-repo

or change it manually by editing

sources.list

file in directory

$PREFIX/etc/apt

check out my blog post for more link

answered Jun 24, 2021 at 4:39

Th3cr00k3dm4n's user avatar

0

Make sure you have an internet connection, then allow access to your storage;

Run termux-setup-storage, this should ask you for permission to allow termux use your device storage.

Then to confirm storage is accessible, run ls ~/storage/shared to list directories contained in shared storage.

If this doesn’t work, try switching repos as some other answers suggest, as the node you’re on may be down.

answered Jul 9, 2021 at 19:37

ruzor's user avatar

ruzorruzor

313 bronze badges

2

Try to upgrade your Termux via pkg upgrade then it finds the packages on pkg

answered Oct 9, 2021 at 16:24

Berke Şentürk's user avatar

Only for mobile termux

termux-change-repo

There might be services for game and science need to select all the 3 options and select the A1batross’s options there by completes all the permission process steps

Once done with all this steps you can install and do operation as Linux terminal

Ps: update the apt would be better before any other steps

answered Jun 15, 2022 at 12:35

renish p.r's user avatar

renish p.rrenish p.r

1051 silver badge5 bronze badges

I changed my termux repository to A1batross’s

answered Jul 15, 2021 at 16:21

Silver's user avatar

Just give storage permission and restart the app, it worked fine for me.

answered Mar 9, 2021 at 18:08

Satwik's user avatar

Are you using termux app on your android?

If, yes, then i think you’re stuck with this error called “Unable To Locate Package” if you trouble with that then here I have a 99% working solution for you.

Yeah, if you’re using termux or if you’re thinking to install packages on your termux terminal or getting this error then definitely you should follow my steps to fix unable to locate package in termux easily with some simple commands.

So to fix this error we need to set up our storage first, and then we can fix this error, so let’s jump into our main topic and setup our termux storage location and fix the error.

How To Download Termux for Windows 10 – Mac OS?

Steps To Fix Unable To Locate Package in Termux App Android or Pc

First open your terminal and place thise codes:

apt update

Now you ned to do Upgrade your terminal after updating:

apt upgrade

Now its time to place the command to setup your internal storage for package location:

termux-setup-storage

Now you will get a popup message to “allow or deny” so just click on the “Allow” button to get access to your internal storage.

Now when you click on “Allow” then its time to check is it worked or not? so to check this just write another command called.

ls

Then you need to place another command:

cd storage

Now this is the last command to check all folders of your storage to final checking:

ls

That’s set, if you see your internal storage folders are over here then you’re completely set up your location to your internal storage, and now it’s time to install your package to see if the “unable to locate package” error has or not?

I’m dammed sure that, if you successfully follow all the commands then you will didn’t get any error on your terminal, and now you can install anything on your termux app.

Bottom Line

So, it’s time to leave, because i will complete practically showed you the exact way of how to fix unable to locate package error of termux app? and now it’s your turn to follow my all commands and fix your issue.

Also, in return, if you found anything helpful from this article then please do share on your social media or leave a good comment below to motivate me and that’s why I will create for you latest articles related to termux terminal.

unable to locate package termux

Looking for a step by step guide to fix ‘unable to locate package’ in Termux on Android? Then you are on the right page.

Introduction

Termux is one of the best terminals for Android devices that allows you to run linux commands without having to root your device.

Some of the most popular packages are metasploit, hydra, python, nmap, gem, and Ubuntu. These modules are freely available at the resource server. You can install these packages without rooting your device. In some cases, however, termux throws an unexpected error message, saying, “unable to locate package ___“. It is due to the fact that termux does not have permission to access the local storage.

Termux does not have storage access by default.

So here in this guide, we are going to see ‘how to fix unable to locate package in termux’.

You must manually grant termux access to the local storage to fix this issue.

Let’s see the step by step guide:

  1. First of all, Open termux terminal.
  2. And then run “termux-setup-storage” command without the quote.
  3. Then, a pop-up box will appear asking you to provide permission to get access to the local storage.
  4. Then, tap ‘Allow’.
  5. That’s it.

You can now verify whether the issue is fixed or not. You can run the linux commands as shown below.

ls This command lists all the files and folders in the current folder.
cd This command lets you navigate throughout the folder. Like cd $HOME to navigate to the home directory.
df This command shows the amount of disk space used and available.
mv This command lets you move files between folders.

You are now done.

Conclusion

Unable to locate packages is one of the common problems. A user’s issue arises when the termux terminal isn’t installed with the appropriate permissions on their android device. The solution stated above works with all packages such as metasploit, hydra, nmap, ubuntu, python, etc.

Thank you for reading this article. With the above step-by-step guide, I hope that you have been able to resolve your issue regarding the package. Feel free to post a comment if you’re still having trouble. I would be happy to answer any questions you have.

Today we are going to learn

There are many reasons behind it. May be package you are searching for not available in the Termux repository.

You may need to correct the spelling for the particular package name or that package has not been added to the repository list. Today we are going to add all the possible packages for Termux.

These are the available package list container for some extra programs for Termux. You can also install Black Termux to add some more packages and follow the commands below:
Ensure that you already have installed the latest version of Termux and Termux API from the F-droid app store (provide all the permissions to termux and Termux API manually).

$ pkg update && pkg upgrade 
#Provide storage permissions
$ termux-setup-storage

#Locate package in termux
$ termux-change-repo
or
$ nano $PREFIX/etc/aptsources.list
$ pkg list-all |grep "package name you want to install"
Or install some more packages containers types. 
$ pkg install unstable-repo
$ pkg install x11-repo
$ pkg install root-repo
$ pkg install science-repo
$ pkg install game-repo
$ curl -LO https://its-pointless.github.io/setup-pointless-repo.sh
$ bash setup-pointless-repo.sh

#Check
$ ls ~/storage/shared

[ Final step ]
Update and upgrade 
$ pkg update && pkg upgrade -y

#This will also fix unable to locate package python on Termux
$ apt install python
$ apt install ruby
$ apt install php
$ apt install git
$ apt install curl
$ apt install wget
$ apt install vim
$ apt install tor

You can install termux black it has more Hacking repositories.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Pick a username
Email Address
Password

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Понравилась статья? Поделить с друзьями:
  • Ошибка telegram update app to login
  • Ошибка takes 1 positional argument but 2 were given
  • Ошибка system32 drivers ntfs sys
  • Ошибка takes 0 positional arguments but 1 was given
  • Ошибка system will shut down