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
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
I think you haven't update repo, look like you have just install termux. Anyway, execute
apt update
and then install any package.
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
The combination of the others answers worked for me
termux-setup-storagetermux-change-repo (I selected Albatros)pkg update and pkg upgrade`exit and then restart termuxpkg install python -yDownload it from Fdroid insted of Playstore. pasting the link below:- : https://f-droid.org/en/packages/com.termux/
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.
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