How To Fix Unable To Locate Package in Termux App?
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.
Steps To Fix Unable To Locate Package in Termux App Android or Pc
First open your terminal and place thise codes:
Now you ned to do Upgrade your terminal after updating:
Now its time to place the command to setup your internal storage for package location:
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.
Then you need to place another command:
Now this is the last command to check all folders of your storage to final checking:
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.
report this ad
Trending Now
- How to Sell Online
- Should You Use Infographic Templates?
- 5 Graphic Design Tips for Small Business Owners
- Steps to Turn Off Optimized Battery Charging on AirPods
- How To Hide Pictures On IPhone: A Comprehensive Guide
- What Is an Infographic and How Do You Use One?
- Best alternatives to QuickBooks accounting software in 2023
report this ad
Ubuntu proot issue #381
The text was updated successfully, but these errors were encountered:
$ cd termux-ubuntu
$ ls
README.md start.sh ubuntu-fs ubuntu.sh ubuntu.tar.gz
$ ./start.ah
bash: ./start.ah: No such file or directory
$ ./start.sh
proot warning: can’t chdir(«/root/.») in the guest rootfs: No such file or directory
proot info: default working directory is now «/»
proot error: ‘/usr/bin/env’ not found (root = /data/data/com.termux/files/home/termux-ubuntu/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot —help .
$
i have the same error tried to uninstall and reinstall many times but failed and different type of updates for proot but the same problem happen
I HAVA THIS PROBLEM PLS HEALP.
./start.sh
proot warning: can’t chdir(«/root/.») in the guest rootfs: No such file or directory
proot info: default working directory is now «/»
proot error: ‘/usr/bin/env’ not found (root = /data/data/com.termux/files/home/termux-ubuntu/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot —help .
This comment was marked as spam.
same problem here
./start-ubuntu.sh: line 29: exec: proot: not found
error is there and i have tried many times but not working
@sumit-prgmr Haven’t tried pkg install proot ? It tolds you that proot is not installed.
installed proot still getting this error
that repo works.
that help me fixed error above
Update termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd
Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
Go to script folder: cd ubuntu-in-termux
Give execution permission: chmod +x ubuntu.sh
Run the script: ./ubuntu.sh -y
Now just start ubuntu: ./startubuntu.sh
When i try to install Git or any other pkg it shows this. how to solve??
# apt install git
Reading package lists. Done
Building dependency tree
Reading state information. Done
E: Unable to locate package git
@psychocarder Run apt update before installing package.
installing wifite tool but seeing this error
/wifite2# python wifite.py
python: can’t open file ‘wifite.py’: [Errno 2] No such file or directory
that repo works.
that help me fixed error aboveUpdate termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd
Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
Go to script folder: cd ubuntu-in-termux
Give execution permission: chmod +x ubuntu.sh
Run the script: ./ubuntu.sh -y
Now just start ubuntu: ./startubuntu.sh
Thank you this works
My Ubuntu works fine
./startubuntu.sh is working
that repo works.
that help me fixed error aboveUpdate termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd
Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
Go to script folder: cd ubuntu-in-termux
Give execution permission: chmod +x ubuntu.sh
Run the script: ./ubuntu.sh -y
Now just start ubuntu: ./startubuntu.sh
that repo works.
that help me fixed error above
Update termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd
Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
Go to script folder: cd ubuntu-in-termux
Give execution permission: chmod +x ubuntu.sh
Run the script: ./ubuntu.sh -y
Now just start ubuntu: ./startubuntu.sh
Thank you this works
My Ubuntu works fine
./startubuntu.sh is working
thank you bro it’s working
that repo works.
that help me fixed error aboveUpdate termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd
Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
Go to script folder: cd ubuntu-in-termux
Give execution permission: chmod +x ubuntu.sh
Run the script: ./ubuntu.sh -y
Now just start ubuntu: ./startubuntu.sh
I’ve also installed it on my termux-Note9.
Thank you
I HAVA THIS PROBLEM PLS HEALP.
./start.sh
proot warning: can’t chdir(«/root/.») in the guest rootfs: No such file or directory
proot info: default working directory is now «/»
proot error: ‘/usr/bin/env’ not found (root = /data/data/com.termux/files/home/termux-ubuntu/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot —help .
Having the same problem. helpppp
that repo works.
that help me fixed error aboveUpdate termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd
How To Fix Unable To Locate Package in Termux 2023
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’.
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:
- First of all, Open termux terminal.
- And then run “termux-setup-storage” command without the quote.
- Then, a pop-up box will appear asking you to provide permission to get access to the local storage.
- Then, tap ‘Allow’.
- 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.
E: Unable to locate package git
I am trying to install git, I used sudo apt-get install git command and it results:
This question have been asked by many people but not a single answer has fixed my problem, I have tried:
P.s: I am using ubuntu 14.04
3 Answers 3
You can add manually repository
I got this error after spinning up a Debian instance on DigitalOcean. The fix was to
when you install Ubuntu package off-line usually in first of installation its cache doesn’t get update so this error will occur and you have in your Ubuntu broken packages . for solution type in Terminal: