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.

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.

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.

  • Перейти на CTF площадку Игры Кодебай

    Выполняйте задания по кибербезопасности в формате CTF и получайте бесценный опыт. Ознакомиться с подробным описанием можно тут.

  • B правой части каждого сообщения есть стрелки и . Не стесняйтесь оценивать ответы. Чтобы автору вопроса закрыть свой тикет, надо выбрать лучший ответ. Просто нажмите значок в правой части сообщения.

  • #1

Добрейший денечек/вечерочек, нужна ваша хелп.
итак, без прилюдий сразу к делу. все мои действия по порядку :
1. качаю termux из Play Market
2. apt upgrade
3. apt install curl
4. curl -LO
и вот тута я стопарюсь из-за ошибочки, мол не знает он такой опции.
возможно дело во мне (что скорее всего) и я был бы не против, если бы вы мне объяснили(ну или ,что даже лучше, полностью разжевали процесс установки другим методом ) что происходит не так.
Если кому интересно, то я пытался найти решение этой ошибки и , что самое интересное, нашел. а именно, как я понял, установка нужных gem’ов. Но и тут без ошибок пройти не удалось (я бы тут наверняка не сидел, если бы все было ок). Эта топовая приложенька отказывается скачивать nogokiri (или как-то так).
Ну, в целом, на этом все. Заранее пасибочки.

sosiskapi


  • #2

Такие команды пойдут в Terminal Emulator-е, в termux они другие вроде, как.
pkg install curl
Вот рабочий способ установки msf

cd $HOME
pkg install wget
wget

Ссылка скрыта от гостей

bash metasploit.sh

Ajwhbd


  • #3

wget

Ссылка скрыта от гостей

Рабочий??? Видимо не для меня, т. К. после «bash metasploit.sh» в последней строке возникает ошибка:»E: unable to locate package metasploit-framework» Как ее решить? Помогите пожалуйста. Заранее спасибо

  • Screenshot_20190603-092030.jpg

    Screenshot_20190603-092030.jpg

    305 КБ

    · Просмотры: 1 284

  • Screenshot_20190603-092021.jpg

    Screenshot_20190603-092021.jpg

    239,3 КБ

    · Просмотры: 1 156

f22

f22

Codeby Team


  • #4

Рабочий??? Видимо не для меня, т. К. после «bash metasploit.sh» в последней строке возникает ошибка:»E: unable to locate package metasploit-framework» Как ее решить? Помогите пожалуйста. Заранее спасибо


Надеюсь, это поможет

Ссылка скрыта от гостей


curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall

Oberon Phelonious


  • #5

Надеюсь, это поможет

Ссылка скрыта от гостей

Помогло? Столкнулся с подобной проблемой.

Код:

$ apt install unstable-repo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package unstable-repo

$ apt install metasploit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package metasploit

Быть может кто подскажет, что с этим можно сделать?

paspartu


  • #6

я скачал F-droid из браузера и обновил репозитории, после этого ошибок у меня не вылезало

Islambek Abdulla


  • #7

E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
Хотел скачать метасплойт на Termux
Пожалуйста подскажите что делать?

Amir_Smoke


  • #8

E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
Хотел скачать метасплойт на Termux
Пожалуйста подскажите что делать?

$ pkg install unstable-repo -y

Глеб Ахметдинов


  • #9

Помогло? Столкнулся с подобной проблемой.

Код:

$ apt install unstable-repo
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package unstable-repo

$ apt install metasploit
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package metasploit

Быть может кто подскажет, что с этим можно сделать?

Вместо apt пиши pkg

Pernat1y


Я устанавливаю python на termux, и эта ошибка показывает:

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

7 ответов

Я думаю, что вы не обновили репо, похоже, вы только что установили termux. В любом случае, выполнить

apt update

А затем установите любой пакет.


14

wjandrea
11 Дек 2020 в 22:46

Termux вытащил все обновления через google playstore, загрузил их с f-droid, затем поменял зеркало, все работает (иногда)

termux-change-repo

Или измените его вручную, отредактировав

sources.list

Файл в каталоге

$ПРЕФИКС/и т.д./подходящий

Прочтите мою запись в блоге, чтобы найти дополнительную ссылку


5

Th3cr00k3dm4n
24 Июн 2021 в 07:39

Убедитесь, что у вас есть подключение к Интернету, затем разрешите доступ к вашему хранилищу;

Запустите termux-setup-storage, это должно запросить у вас разрешение, чтобы разрешить termux использовать хранилище вашего устройства.

Затем, чтобы убедиться, что хранилище доступно, запустите ls ~/storage/shared, чтобы получить список каталогов, содержащихся в общем хранилище.

Если это не сработает, попробуйте переключить репозитории, как предлагают некоторые другие ответы, поскольку узел, на котором вы находитесь, может быть недоступен.


1

ruzor
11 Июл 2021 в 04:34

Попробуйте обновить Termux через pkg upgrade, тогда он найдет пакеты в pkg


1

Berke Şentürk
9 Окт 2021 в 19:24

Я изменил свой репозиторий termux на A1batross.


0

Silver
15 Июл 2021 в 19:21

Просто дайте разрешение на хранение и перезапустите приложение, у меня это сработало.


-1

Satwik
9 Мар 2021 в 21:08

В моем случае это произошло потому, что я оставил пробел после строки, например. pkg install python и пробел приведут к ошибке, поэтому не ставьте пробел.


-1

cigien
24 Дек 2021 в 20:10

How to Install Metasploit in Termux - No root without Errors

Install Metasploit in Termux — No Root — No Error

Hello Hackers, In this post you will learn How you can install Metasploit in Termux without any error and no root Required!

What is Metasploit?

The Metasploit Framework is Ruby-based, modular penetration testing platform that allows you to write down , test, and execute exploit code. The Metasploit Framework contains a set of tools that simply you can use to check security vulnerabilities, enumerate networks, execute attacks, and evade detection. At its core, the Metasploit Framework could also be a set of commonly used tools that provide a whole environment for penetration testing and exploit development.

Requirements:

  • Termux Apk (DOWNLOAD)
  • Android 5.0+
  • 1 Gb free storage
  • 1 Gb+ Ram
  • Good Internet Connection

Thing to Do and Not to do:

  • Uninstall already installed Termux app
  • Install again Fresh one to avoid Erros while installing
  • Remove all the apps running in background
  • Don’t Turn off screen while installation
  • Don’t use the device till the Metasploit gets installed completely

Even after Following all this you faced any error comment down about it.

Also Read: Install and Use Black hydra tool in Termux!

Installation

Type the commands listed below properly one by one or just copy paste it to avoid spelling mistakes.


There are many different methods to install Metasploit in Termux. Today ,Which I’m showing is the most simple Method it reduces the probability of error.

Commands

Just copy paste the Commands one by one or Type each Command carefully without any spelling mistake.

  • pkg update
  • pkg upgrade
  • termux-setup-storage
  • pkg install unstable-repo
  • pkg install Metasploit

After this it will take time around 5 to 35 minutes depending upon your device and internet connection.


Stay connected with our website The Hackash to learn more about Metasploit tools and uses .


If face any difficulty comment down Below.

Also Read: Termux Tutorials 2020

What is Unstable Repo in Termux?

There are located packages which were requested, but not added to the major Termux repository because of various reasons. Packages available here may have lower quality, be unstable or not work on all.


Thanks for reading.

  • Share
  • Share
  • Tweet
  • Share
  • Share

HackAsh


Hey, I’m HackAsh. I’m here to share my knowledge and skills. Helping you guys to get the best resource for the post related i teach.

Понравилась статья? Поделить с друзьями:
  • Unable to locate adb android studio как исправить
  • Unable to handle application files in ошибка world of tanks 8001
  • Unable to locate a running instance of steam dayz на пиратке как исправить
  • Unable to load wshps asi error 1114
  • Unable to get fan speed unknown error 999