meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.28k stars 680 forks source link

Unable to resolve names in any distro #1328

Open ashubisht opened 2 years ago

ashubisht commented 2 years ago

Hi, I am facing issues when using curl or wget or even ping. I am getting error: wget: unable to resolve host address <any url> With curl I am getting error: curl: (6) Could not resolve host: <any url>

I tried adding nameservers in /etc/resolve.conf and even via configure options in app, yet its failing. Ping also fails with Operation not permitted.

However, sudo apt update and sudo apt install <package_name> works.

Any advise on how to make it working.

pariksha-jee commented 2 years ago

https://github.com/meefik/linuxdeploy/issues/1169: usermod shows command not found. So I ran /usr/sbin/usermod. It says permission denied. Running with sudo /usr/sbin/usermod, the command passes successfully, but the issue still persist.

Also tried rebooting container and then try again

ZerGo0 commented 2 years ago

Try this command in adb: dumpsys deviceidle disable. I'm pretty sure that this isn't permanent, so keep that in mind. I also had to use the wakelock app to get it to work fully.

Thanks to @fjh1997 in #1092 for mentioning it.

andrej-ilievski commented 1 year ago

Try this command in adb: dumpsys deviceidle disable. I'm pretty sure that this isn't permanent, so keep that in mind. I also had to use the wakelock app to get it to work fully.

Thanks to @fjh1997 in #1092 for mentioning it.

Doesn't work for me because I can't use curl or wget even when the app is on. And this disables the device from dozing (deep sleeping) as far as I understand.

Lev910466 commented 4 months ago

Hãy thử lệnh này trong adb: . Tôi khá chắc chắn rằng điều này không phải là vĩnh viễn, vì vậy hãy ghi nhớ điều đó. Tôi cũng phải sử dụng ứng dụng wakelock để làm cho nó hoạt động đầy đủ.dumpsys deviceidle disable Cảm ơn trong # 1092 đã đề cập đến nó.

Không hoạt động với tôi vì tôi không thể sử dụng curl hoặc wget ngay cả khi ứng dụng đang bật. Và điều này vô hiệu hóa thiết bị khỏi ngủ gật (ngủ sâu) theo như tôi hiểu.

Hãy thử lệnh này trong adb: . Tôi khá chắc chắn rằng điều này không phải là vĩnh viễn, vì vậy hãy ghi nhớ điều đó. Tôi cũng phải sử dụng ứng dụng wakelock để làm cho nó hoạt động đầy đủ.dumpsys deviceidle disable Cảm ơn trong # 1092 đã đề cập đến nó.

Không hoạt động với tôi vì tôi không thể sử dụng curl hoặc wget ngay cả khi ứng dụng đang bật. Và

Try this command in adb: dumpsys deviceidle disable. I'm pretty sure that this isn't permanent, so keep that in mind. I also had to use the wakelock app to get it to work fully. Thanks to @fjh1997 in #1092 for mentioning it.

Doesn't work for me because I can't use curl or wget even when the app is on. And this disables the device from dozing (deep sleeping) as far as I understand.

did you get it working i have the same problem