Ошибка термекс 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: Unab...

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

23.1k27 gold badges91 silver badges120 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

26.2k8 gold badges57 silver badges78 bronze badges

answered Dec 11, 2020 at 11:04

Krishna Kanhaiya's user avatar

1

The combination of the others answers 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

Gino Mempin's user avatar

Gino Mempin

23.1k27 gold badges91 silver badges120 bronze badges

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

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.

  • Перейти на 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

Понравилась статья? Поделить с друзьями:
  • Ошибка торрента former volume not mounted
  • Ошибка теплогенератора 1 vaillant
  • Ошибка тойота прадо 150 c1201
  • Ошибка торрента crc как исправить
  • Ошибка теневого копирования тома непредвиденная ошибка при запросе интерфейса ivsswritercallback