unable to locate package git termux что делать

How To Fix Unable To Locate Package in Termux App?

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.

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.

Источник

How To Fix Unable To Locate Package in Termux 2021

unable to locate package git 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’.

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:

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

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.

Источник

Python libraries #984

Comments

sfbarrerab commented May 4, 2017

Hi everyone, I am trying to use the python libraries (numpy, matplotlib, etc), but when I run:
packages install python-numpy
I obtained this error:
E: Unable to locate package python-numpy
Someone else have this problem? How can I fix it?

Thanks for your help and sorry for my english (I am from Colombia)

The text was updated successfully, but these errors were encountered:

Grimler91 commented May 4, 2017

Hi, you have to install numpy and the other modules through pip. See this thread.

its-pointless commented May 4, 2017 •

i recommend using apt rather than the eggs since hte eggs are no longer updated. Just a single line to sources.list and stuff.

fornwall commented May 4, 2017

Closing this in favour of the above mentioned #136 issue.

kirAn-sAi commented Oct 26, 2017

I also got the same issue while installing numpy, i pip command it is also not working

kirAn-sAi commented Nov 16, 2017

petacube commented Nov 30, 2017

kiran-sAi nice try but it does work for me either. i get error saying cannot compile Python.h

Grimler91 commented Nov 30, 2017

@petacube Python.h is provided by the package python-dev, so install python-dev with pkg install python-dev and try again.

petacube commented Nov 30, 2017

Grimler91 commented Nov 30, 2017

Mahesh222 commented Jul 10, 2020

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Can not update using apt #99

Comments

indam commented Dec 19, 2015

Hey, I reinstalled the app, and executed ‘apt update’, then failed. here is the screenshot.

unable to locate package git termux что делать

The text was updated successfully, but these errors were encountered:

fornwall commented Dec 19, 2015

Could you try accessing http://apt.termux.com/dists/stable/InRelease in the browser on the device, and try running

fornwall commented Dec 19, 2015

Also, which Android device do you run? Which Android version? Running a custom ROM?

indam commented Dec 19, 2015

@fornwall thanks, please find it here. I installed termux from Google Play.
My phone is HTC M8, with the official ROM, android version 5.0.1, rooted.

unable to locate package git termux что делать

indam commented Dec 19, 2015

And I tried to download the InRelease file, it seems not working for me.

indam commented Dec 19, 2015

oops, I am sorry, I closed this issue by mistake, could you please reopen it?

fornwall commented Dec 19, 2015

And I tried to download the InRelease file, it seems not working for me.

Can you access it (http://apt.termux.com/dists/stable/InRelease) in your Android browser? If not, what happens (blank page or error message)?

indam commented Dec 19, 2015

@fornwall I am sorry, I make you confused. I mean I can access it in browser, and also be able to download it with wget. But apt install still did not work for me.

fornwall commented Dec 19, 2015

@indam Ok, thanks for the confirmation! I’m trying to reproduce the problem, but I’m still unable to do so. So if you have the possibility to try a few things it would be helpful:

(1) Update to the latest apt version by hand, and see if it works afterwards:

(2) If the problem still persists, could you run the following and append the output here?

(3) Later, could you install strace by hand:

Then run the following

and upload the log.txt somewhere and link to it (or mail the file to me)?

indam commented Dec 19, 2015

@fornwall Yes, I put the screenshot here, and you can also find the log file as attachment.

unable to locate package git termux что делать
unable to locate package git termux что делать

fornwall commented Dec 19, 2015

@indam Thanks for all the help!

It seems that apt loads the url fine, but for some reason the lib/apt/methods/http binary seem to hit the line

indam commented Dec 20, 2015

@fornwall You are welcome. I hope this can be solved soon, and if you need more investigation, do not hesitate to contact me.

franciscod commented Dec 21, 2015

have you guys tried on another network? if you’re on 3G try wifi, if on wifi try 3G or another wifi, and so on

franciscod commented Dec 21, 2015

Also, notice this message in the first line:

res_send: select: Connection refused

It might be an issue on the server where the packages are hosted. Maybe hosting them on a mirror could help to diagnose the issue?

fornwall commented Dec 22, 2015

There was a DNS change done for apt.termux.com (updating the SOA record in the DNS zone to ensure it lines up with the nameservers in use by the domain) two days ago, could you try again if it works for you now @indam?

If it’s still a problem, could you install curl and check if e.g. curl http://apt.termux.com/ gives any error output (just ruling out some possible errors)?

jlefman commented Dec 23, 2015

There are issues with wget and apt. Curl works okay it seems.

franciscod commented Dec 23, 2015

maybe try verbosities of curl and wget to see effectively what IP address they’re trying to download from?

indam commented Dec 23, 2015

@fornwall I tried again, still the same problem. And I do not think this is due to the network, because I tried using different VPNs, it is still like this.

I test with curl, it seems fine. No errors found. @franciscod

unable to locate package git termux что делать

jlefman commented Dec 23, 2015

Update

Manually installed all available updates in arm binaries under release packages using dpkg. No changes to apt error.

All packages installed:

fornwall commented Dec 23, 2015

I was able to reproduce the problem on a HTC One X with stock ROM, so I would guess that this is a HTC problem (the apt http code triggering debug logging on HTC system builds). Will look into it!

franciscod commented Dec 24, 2015

franciscod commented Dec 24, 2015

EDIT: no, server seems to be flaky.

fornwall commented Dec 26, 2015

For users stuck with the current non-working apt version, you can either re-install the application, or execute the following commands:

Thanks a lot for all the information provided which helped pinpoint where the problem was!

indam commented Dec 26, 2015

Thank you, it works for me now. 😀

jlefman commented Dec 28, 2015

👍 Working for my system as well. Thank you, @fornwall. Would it be possible to receive an explanation of the underlying issue and what this workaround is doing? Thank you for your time on this issue.

fornwall commented Dec 28, 2015

This debug output from a dedicated http fetching process in apt led to apt not being able to parse the http response, which caused to this problem.

The solution was to patch apt to disable SRV records by default for now, since it’s not something used by the Termux apt.

Источник

Ошибка unable to locate package в Ubuntu

Один из многих способов установки программного обеспечения в Ubuntu – команда apt-get или apt. Установка пакетов с помощью пакетного менеджера намного удобнее и безопаснее, чем поиск и загрузка программ в интернете. Открыв терминал, вы должны вызвать утилиту apt с параметром install написать название программы, чтобы установить ее.

При использовании этой команды иногда возникает ошибка E: Unable to locate package. Ошибка не нуждается в пояснении. Linux-система не может найти пакет, который вы пытаетесь установить. Но почему так? Почему она не видит пакет? Рассмотрим несколько способов решения данной проблемы. В этой статье мы рассмотрим как исправить ошибку Unable to locate package error в Ubuntu.

unable to locate package git termux что делать

Ошибка Unable to locate package error в Ubuntu

Дальше пошагово рассмотрим процесс устранения ошибки.

1. Проверьте имя пакета

Это первое, что вы должны сделать. Может, в названии пакета опечатка? Если вы пытаетесь установить vlc и написали vcl, то непременно ничего не получится. Опечатки – распространенная проблема, так что убедитесь в том, что вы не допустили ошибок во время ввода имени пакета.

2. Обновите кэш репозиториев

Если вы в первый раз запустили систему после установки, следует написать команду update:

unable to locate package git termux что делать

Данная команда не обновит Ubuntu полностью. На деле, команда apt update составляет локальный список доступных для установки пакетов.

При использовании команды install, менеджер пакетов apt просматривает кэш, чтобы получить информацию о пакете и его версии, а затем скачать его из репозиториев в сети. Если пакета в кэше нет, система не сможет его установить.

Кэш в только что установленной системе изначально пуст. Именно поэтому вам стоит запустить команду apt update сразу после установки Ubuntu или других дистрибутивов, основанных на Ubuntu (например, Linux Mint).

Даже если система не новая, кэш apt вполне может оказаться устаревшим. В любой момент не лишним будет его обновить.

3. Убедитесь, что пакет доступен в вашей версии Ubuntu

Отлично! Вы проверили название пакета, и оно верно. Вы запустили команду update, чтобы обновить состояние кэша, но все ошибка unable to locate package все еще присутствует. Вполне возможно, что пакет попросту недоступен. Но вы следуете инструкции с какого-то сайта, и у всех получается установить его указанным образом. В чем может заключаться проблема?

Есть два варианта. Либо пакет доступен в репозитории Universe, который в вашей системе не включен, либо пакета вовсе не существует для вашей версии Ubuntu.

Первый шаг – проверьте, какая версия Ubuntu у вас запущена. Откройте терминал и введите следующую команду:

unable to locate package git termux что делать

В результате вы увидите версию Ubuntu и ее кодовое название. Именно кодовое название нам важно больше всего. Как видите, мы используем Ubuntu 18.04 с кодовым именем bionic. У вас может быть иначе, но суть должна быть понятна. Как только вы получили сведения о версии и названии, откройте сайт Ubuntu Packages.

Пролистайте пониже и остановитесь на заголовке Поиск. Вы увидите поле с ключевым словом. Введите название пакета, который ваша система не может найти, и выберите соответствующее кодовое имя. Секцию поставьте любую. После проделанных действий, нажмите на кнопку поиска.

unable to locate package git termux что делать

Вам будет показано, доступен ли пакет для вашей версии Ubuntu, и если это так, то вместе с этим отобразится репозиторий, в котором он находится. Мы искали средство создания скриншотов Shutter и вот, что вышло для Ubuntu 18.04 Bionic:

unable to locate package git termux что делать

В нашем случае, название пакета точно совпало. Это значит, что пакет shutter существует для Ubuntu 18.04 Bionic, но в репозитории Universe.

Если необходимый пакет доступен для вашей версии Ubuntu, но в Universe или Multiverse, эти репозитории необходимо включить:

sudo add-apt-repository universe multiverse

unable to locate package git termux что делать

unable to locate package git termux что делать

Также нужно обновить кэш для того, чтобы система узнала о новых пакетах, находящихся в подключенных репозиториях:

Теперь установка пакета должна пройти гладко.

Ничего не работает, что делать?

Если сайте Ubuntu Packages показывает, что пакета для вашей версии системы нет, то придется найти обходные пути его установки.

Возьмем в качестве примера Shutter. Это отличное средство создания скриншотов для Linux, но его несколько лет не обновляли, поэтому в Ubuntu 18.10 и более новых версиях оно не поддерживается. Как же его установить? К счастью, один сторонний разработчик создал собственный репозиторий (PPA) и установить программу можно с помощью него. Искать пакеты и PPA, в которых они находятся, можно на сайте Launchpad для Ubuntu.

Учтите, что не стоит подключать неофициальные PPA к списку репозиториев. Лучше пользоваться теми, которые есть в вашем дистрибутиве.

Иными словами, проверьте на официальном сайте, не изменился ли метод установки приложения.

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

В заключение…

Теперь вы знаете как исправить ошибку unable to locate package Ubuntu. Если вы начали пользоваться Linux недавно, все может казаться очень непонятным. По этой причине мы освещаем подобные темы, чтобы вы могли лучше разобраться в том, как работают те или иные аспекты вашей системы.

Надеемся, что это руководство помогло решить проблему с пакетами в Ubuntu. Если у вас есть вопросы или предложения, можно оставить их в комментариях.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *