so there i am using chroot to chrooting into debian bootstrap everything worked just right on root account until i added a new user to figure out that i cannot do update or access xdisplay or localhost ip which is strange i did not know what to do so i am asking for helphere is the chroot script i am using
~ $ cat chroot.shsudo mount -t proc /proc chroot-ubuntu/procsudo mount --rbind /sys chroot-ubuntu/syssudo mount --rbind /dev chroot-ubuntu/devsudo mount /system/ chroot-ubuntu/system/unset LD_PRELOADenv -i HOME=/root \PATH="/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games:/opt/wine-5.3/bin/:/opt/wine-staging/bin/" \TERM="xterm" \BASH="/usr/bin/bash" \SHELL="/usr/bin/bash" \PREFIX="/usr" \MDIR="/tmp" \LD_LIBRARY_PATH="/lib:/usr/lib:/usr/lib/i386-linux-gnu/:/var/lib:/var/lib/dpkg/:/lib/i386-linux-gnu:/usr/local/lib:/opt/wine-stable/lib:/opt/wine-stable/lib/wine:/opt/wine-5.3/lib:/lib:/lib/wine:/lib/wine/fakedlls:/opt/wine-staging/lib" \chroot chroot-ubuntu/ /bin/bash
i execute chroot.sh using sudo so iam always into root accountlets add a new user i get this strange output
root@localhost:~# adduser gAdding user `g' ...Adding new group `g' (1000) ...Adding new user `g' (1000) with group `g' ...Creating home directory `/home/g' ...Copying files from `/etc/skel' ...passwd: user 'g' does not existPermission deniedTry again? [y/N]
and if i try to add a password to the new user i get
root@localhost:~# passwd gpasswd: user 'g' does not exist
so o had to add user manually which i did (i dont remember how)
here is the ifconfig output on root and user
root@localhost:~# ifconfiglo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host>
notice that inet 127.0.0.1 which not there when do ifcnfig on user
spiral@localhost:~$ /sbin/ifconfigwarning: no inet socket available: No such file or directory`lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet6 ::1 prefixlen 128 scopeid 0x10<host>
instead there is warning: no inet socket available: No such file or directory
error