Neo-Oli / termux-ubuntu

Ubuntu chroot on termux
866 stars 310 forks source link

groups: cannot find name for group ID #2

Open hariswhdn opened 7 years ago

hariswhdn commented 7 years ago

$ ./startubuntu.sh groups: cannot find name for group ID 1015 groups: cannot find name for group ID 1023 groups: cannot find name for group ID 1028 groups: cannot find name for group ID 3003 groups: cannot find name for group ID 9997 groups: cannot find name for group ID 50020 root@localhost:~# exit logout

I get error while extracting file with tar, there was 6 file not extracted. I start ubuntu and get that error. So i extract ubuntu.tar.gz again with tar command, i get the 6 file back but the error still appear, is this not related with that error? I am new on linux, thank you.

Neo-Oli commented 7 years ago

The 6 or more errors when extracting the tar are actually normal. It's all files in ubuntu-fs/dev/, which gets mounted to /dev/ anyway, so it shouldn't matter.

I also get the groups: errors. So far I don't know how to avoid them

remo7777 commented 7 years ago

When decompress ubuntu**tar.gz shows decompressing ubuntu image tar: dev/full: Cannot mknod: Operation not permitted tar: dev/random: Cannot mknod: Operation not permitted tar: dev/tty: Cannot mknod: Operation not permitted tar: dev/urandom: Cannot mknod: Operation not permitted tar: dev/null: Cannot mknod: Operation not permitted tar: dev/zero: Cannot mknod: Operation not permitted tar: Exiting with failure status due to previous errors fixing nameserver, otherwise it can't connect to the internet

remo7777 commented 7 years ago

When i lunch start.sh shows -- bash start.sh groups: cannot find name for group ID 3003 groups: cannot find name for group ID 9997 groups: cannot find name for group ID 50137 mesg: change /dev/pts/1 mode failed: Permission denied

My dpkg architecture is aarch64 plz...help..

runskey2017 commented 7 years ago

./start.sh groups: cannot find name for group ID 1015 groups: cannot find name for group ID 1028 groups: cannot find name for group ID 3003 groups: cannot find name for group ID 9997 groups: cannot find name for group ID 50307 mesg: change /dev/pts/17 mode failed: Permission denied
My dpkg is arm pls help

maidenone commented 6 years ago

When i lunch start.sh shows -- bash start.sh groups: cannot find name for group ID 3003 groups: cannot find name for group ID 9997 groups: cannot find name for group ID 50137 mesg: change /dev/pts/1 mode failed: Permission denied

My dpkg architecture is aarch64

This is what i have as well

Neo-Oli commented 6 years ago

You can try this branch https://github.com/Neo-Oli/termux-ubuntu/tree/stubs to see if it fixes things for you without breaking other things.

Ahmedroid commented 6 years ago

why i cant go to sdacrd in ubunto root@localhost:~# cd /sdcrad bash: cd: /sdcrad: No such file or directory

shaqman commented 6 years ago

@Ahmedroid

First of all, even though there is a /sdcard folder, which there isn't, you mistyped it there. See termux-storage for mounting sdcard into termux, then uncomment inside start.sh

command+=" -b /data/data/com.termux/files/home"

so it could be bind inside ubuntu.

Please note, that this is not a support forum. And you are hijacking a totally different issue.

NatoBoram commented 6 years ago

Same issue!

$ ./start-ubuntu.sh
groups: cannot find name for group ID 3003
groups: cannot find name for group ID 9997
groups: cannot find name for group ID 20167
groups: cannot find name for group ID 50167
root@localhost:~# apt
apt 1.6.1 (arm64)
Root-voidX commented 6 years ago

I have the same issue to:

groups: cannot find name for group ID 3003 groups: cannot find name for group ID 9997 groups: cannot find name for group ID 20290 groups: cannot find name for group ID 50290

Ahmedroid commented 6 years ago

I know that but the problem did not solved

On Wed, Feb 28, 2018, 16:40 Syakur Rahman notifications@github.com wrote:

@Ahmedroid https://github.com/ahmedroid

First of all, even though there is a /sdcard folder, which there isn't, you mistyped it there. See termux-storage for mounting sdcard into termux, then uncomment inside start.sh

command+=" -b /data/data/com.termux/files/home"

so it could be bind inside ubuntu.

Please note, that this is not a support forum. And you are hijacking a totally different issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Neo-Oli/termux-ubuntu/issues/2#issuecomment-369241882, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai2RllJMGo-IiIRyT_KQPM0sBuo843kyks5tZVcvgaJpZM4OLemn .

Amooti73 commented 6 years ago

Forgive me, but I want to thank Ahmedroid for his hijack and shaqman for his answer giving the script edit, which removed a "roadblock" for me!

MFDGaming commented 6 years ago

i recomend to you to use this https://play.google.com/store/apps/details?id=com.gnuroot.debian and not termux

corbinlc commented 6 years ago

This is an issue that must be solved with proot. If the getgroups system call is called the kernel is returning supplemental group ids that your ubuntu chroot knowns nothing about. Probably need to fully emulate getgroups and setgroups withing fake_id0 extension. Right now there is a /TODO/ comment there. As a shorter term fix, you can probably get proot to drop those system calls.

corbinlc commented 6 years ago

Yes. Just dropping the system calls seems to not cause and issue for me. My version of fake_id0 is very different than yours, but you get the point. If I fully emulate this later, I will make sure to update you all.

gauloics commented 6 years ago

solved by touch ~/.hushlogin

https://askubuntu.com/questions/463349/groups-cannot-find-name-for-group-id

diehard88 commented 6 years ago

touché!

Amooti73 commented 6 years ago

Thanks, gauloics! It worked for me!

Br. John

solved by touch ~/.hushlogin

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/Neo-Oli/termux-ubuntu/issues/2#issuecomment-431105144

-- Bro. John Flood, C.S.C.

Email: jfloodcsc@gmail.com jflood@cuea.edu Phone: +254-711-983025/0711-983025 +256-779-427935

Jesus "expects us to stop looking for those personal or communal niches which shelter us from the maelstrom of human misfortune, and instead to enter into the reality of other people's lives and to know the power of tenderness. Whenever we do so, our lives become wonderfully complicated".

Pope Francis, The Joy of the Gospel, 44

AlbertCaro commented 5 years ago

@gauloics I love u

JacobTDC commented 5 years ago

I'm not sure disabling the check is the best solution. Maybe using addgroup --system? Can anyone think of any potential problems with doing that?

Neboer commented 5 years ago

@gauloics I love u too! The way to solve the problem is to touch a file in your Ubuntu system and you cannot get error again!

apolbox commented 5 years ago

If you want, i make repo for install termux-ubuntu and how to fix groups: cannot find name group id

click this link https://github.com/apolbox/termux-ubuntu

Hero9909 commented 4 years ago

after quick research the groups are found in the rootfs bc of android adding them. so if your in your termux shell you should see those missing ids by running id add these groups to your groups in your chroot. you might have to add any none root user to a set of them in order to make sudo or some different programms to work.

akashisgreat commented 3 years ago

why i cant go to sdacrd in ubunto root@localhost:~# cd /sdcrad bash: cd: /sdcrad: No such file or directory Remove the # in start-ubuntu.sh , line no 58
See here https://github.com/Neo-Oli/termux-ubuntu/blob/87e5818cedbfafff1e3fb42e751fc9a25671a48e/ubuntu.sh#L58 After that run ./start-ubuntu.sh agian

duskygloom commented 3 years ago

Yesterday I also faced this issue, but there's no need to hushlogin to fix it. In my case, the problem arose because mounted the termux home folder. #command+=" -b /data/data/com.termux/files/home:/root" This changed the home directory of the distro to the home directory of termux.

To fix this, you may copy all the data from the distro's home to termux home. Or you may recomment the line in the start-.sh

Note that this was the problem in my case. And it worked. If this is not what happened with you, you may add a blank file named .hushlogin in the termux home by touch .hushlogin

This will reset all your customisations, but you will have all your applications intact.

mashirozx commented 3 years ago

In your termux run groups, you'll get this: image

And then id GROUP_NAME_YOU_GOT, you'll get something like this: image

You see, some group cannot show here, you need to check them by id GID_NEED_TO_QUERY.

This uid and the group name is what we need, in my condition, run commands below in Ubuntu:

addgroup --system --gid 3003 inet
addgroup --system --gid 9997 everybody
addgroup --system --gid 20237 u0_a237_cache
addgroup --system --gid 50237 all_a237
addgroup --system --gid 99909997 u999_everybody
reset