I installed xenial (Ubuntu 16.04) in a chroot on my Android device (using armhf architecture). Everything works just fine. All the local commands and wget and curl work fine. However, apt-get fails. Here is the issue:
sudo apt-get update
gives me an error: Temporary failure resolvingports.ubuntu.com
(other programs such as wget and curl can access dns names successfully). I pinged the servers and obtained the IP so I edit the/etc/apt/sources.list
to reflect thissudo apt-get update
gives me another error: Could not create a socket for91.189.88.150 (f=2 t=1 p=6) - socket (13: Permission denied)
Alright, so then I suid all the apt-* programs:
sudo chmod u+s /usr/bin/apt-*
To remove any questions about the specific apt-get version I have removed apt via apt-get itself and installed the apt.deb via dpkg successfully, however, the problem persists.
It's very surprising that this basic feature on Ubuntu seems to be broken, it could be specific to armhf packages. I can't seem to find the same problem reported on SO. However, I did find another user reporting something similar on reddit's /r/debian
but it was not concluded.
Any suggestions?