-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Termux can't connect to internet anyway #2778
Comments
Does internet access work at all on the device? Does internet access with other tools like curl work? Does mirrors other than the tsinghua one work? |
Mirror is syncing? |
I'm experiencing a similar issue, but instead of the
@Grimler91: I'm able to reach the Internet with other apps, but not with Termux. Other tools like curl, ping, ssh, etc. do not work, and thus switching the mirror doesn't fix anything. |
How could you possibly not be able to connect to cloudflare? Try termux-change-repo to replace one of the 13 Chinese mirrors. |
Thanks for the help @2096779623 :) Because it seems like Termux can't do any networking whatsoever: The same error ("could not create a socket") appears when I try to use ssh, for instance. BTW, I already tried to change the mirror as well via |
Please generate a bug report: |
I download termux and my phone is like parse error cant install |
|
@2096779623 I also had a same problem.. Transcript
Termux App InfoAPP_NAME: Device InfoSoftwareOS_VERSION: HardwareMANUFACTURER: Termux APT InfoSubscribed Repositoriessources.list
Updatable PackagesAll packages up to date Termux Files InfoTERMUX_REQUIRED_FILES_DIR_PATH ($PREFIX):
Logcat Dump
|
I just installed termux 5 minutes ago. And I can't say that termux can't access the network because I have successfully updated the packages by using the But I can't install or search other packages |
@Aridlvory your issue looks unrelated to this one, error message is different. Try switching to another mirror with |
@Grimler91 |
That mirror does not serve packages anymore, only https connection is succeeding. It has been replaced with https://dl.kcubeterm.com, hence you getting error. Shift ALL your mirrors to some other mirrors and then run |
I think the problem that you're experiencing, @Aridlvory, is different to mine, since mine is related to the fact that Termux can't open network sockets, but in your logs I see it does connect to the Internet without an issue (except as @agnostic-apollo said, some mirrors are down). I forgot to share the debug information myself. In case anybody is able to help me figure out the cause of the issue, I'll attach it here. Thank you so much in advance!! Debug informationTranscript
Termux App InfoAPP_NAME: Device InfoSoftwareOS_VERSION: HardwareMANUFACTURER: Termux APT InfoSubscribed Repositoriessources.list
Updatable PackagesAll packages up to date Termux Files InfoTERMUX_REQUIRED_FILES_DIR_PATH ($PREFIX):
Logcat Dump
|
That doesn't seem to contain amy useful info, take a full logcat dump with Make sure there is no network permission disabled in android settings/permission manager, if there exists. |
Hi again, and thanks for your message @agnostic-apollo! I just realized this issue stopped happening when I uninstalled the Termux:API app. I did some more tests (basically continuously running I installed both Termux and Termux:API by downloading the APKs from F-Store and running After running logcat and inspecting the logs, I found what I suspect are some interesting entries, since they seem to be related to Termux:API and permissions: (EDIT: just to be clearer, these logs correspond to a moment in which Termux and Termux:API were both installed)
I've sent the full logs (except some censored bits) to your email address, just in case it helps. They start at the moment the Termux app begins launching, until 2/3 seconds after the Also, I'm a user of Shelter, just in case it could be related with the issue. Again, thanks!! |
@avm99963, replied to your email 19 days ago, haven't received a response. |
@agnostic-apollo Hey, sorry, I missed your email. I'm in the middle of the university final exams, so could I get back to you in July? At that time I'll have free time to troubleshoot this and help you find out if there's a bug in Termux :) EDIT: I forgot to mention you. |
Sure, np. |
Run If inet is not in the current user, install Magisk to execute this (requires root!):
|
Already asked him for output of Don't think |
I have a similar problem. and It's because I don't grant the network permissions for termux by mistake. |
Try switching to another mirror with the |
The same thing happened to me on Termux this afternoon. I was trying to clone a new, empty repository on the terminal when it shows me "git-core error". I uninstalled and reinstalled again, and this time, I can't even install Git and other packages without seeing this message (Screenshot) |
kcubeterm.me is gone. Use |
My dump $ pkg install gem git
Testing the available mirrors:
[*] https://dl.bintray.com/termux/termux-packages-24: bad
[*] https://grimler.se/termux-packages-24: ok
[*] https://main.termux-mirror.ml: bad
[*] https://termux.mentality.rip/termux-packages-24: ok
Picking mirror: https://termux.mentality.rip/termux-packages-24
Get:1 https://termux.mentality.rip/termux-packages-24 stable InRelease [14.0 kB]
Ign:2 https://dl.bintray.com/grimler/game-packages-24 games InRelease
Ign:3 https://dl.bintray.com/grimler/science-packages-24 science InRelease
Err:4 https://dl.bintray.com/grimler/game-packages-24 games Release
502 Bad Gateway
Err:5 https://dl.bintray.com/grimler/science-packages-24 science Release
502 Bad Gateway
Get:6 https://termux.mentality.rip/termux-packages-24 stable/main aarch64 Packages [432 kB]
Reading package lists... Done
E: The repository 'https://dl.bintray.com/grimler/game-packages-24 games Release' does not have a Release file.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
E: The repository 'https://dl.bintray.com/grimler/science-packages-24 science Release' does not have a Release file.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
$``` |
same issue, I solve it by only using apt instead of pkg. Here is my device info. Termux App InfoAPP_NAME: Device InfoSoftwareOS_VERSION: HardwareMANUFACTURER: |
Have you tried using |
@coderlogan Presence of lines like
mean that |
What does the |
Also, you could try to reset termux. I don't know if that is a permanent solution though... |
It could be trying to connect to https sources but the mirrors won't allow https connection or don't support them... |
What about wireless debugging? |
I have same issue. If I ping, get "Operation not permitted", groups lists inet as one of my groups. If I "su" to root, and then ping, everything works fine (well pkg/apt doesn't work well as root XD). Uninstalled Termux:API and Termux, reinstalled only Termux, and now seems to be working normally. |
Can't ping 1.1.1.1. socket: Connection refused |
I added the group at login after connecting to adb shell:
|
currently having issues with socket connections as well, i do seem to be in the inet group so im unsure what is going on |
Problem description
Termux from F-Droid. Can't use ping command to ping a address.
And I cant download any package from pkg or apt.
Steps to reproduce the behavior.
[-] WLAN
[-] sdcard 1
[-] sdcard 2
What is the expected behavior?
No response
System information
The text was updated successfully, but these errors were encountered: