Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

groups: cannot find name for group ID #2

Open
hariswhdn opened this issue Jul 2, 2017 · 26 comments
Open

groups: cannot find name for group ID #2

hariswhdn opened this issue Jul 2, 2017 · 26 comments

Comments

@hariswhdn
Copy link

$ ./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
Copy link
Owner

Neo-Oli commented Jul 4, 2017

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
Copy link

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
Copy link

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
Copy link

./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
Copy link

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
Copy link
Owner

Neo-Oli commented Nov 20, 2017

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
Copy link

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

@shaqman
Copy link

shaqman commented Feb 28, 2018

@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
Copy link

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
Copy link

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
Copy link

Ahmedroid commented Jun 16, 2018 via email

@Amooti73
Copy link

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
Copy link

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

@corbinlc
Copy link

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
Copy link

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
Copy link

gauloics commented Oct 18, 2018

solved by
touch ~/.hushlogin

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

@diehard88
Copy link

touché!

@Amooti73
Copy link

Amooti73 commented Oct 19, 2018 via email

@AlbertCaro
Copy link

@gauloics I love u

@JacobTDC
Copy link

JacobTDC commented Feb 27, 2019

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
Copy link

Neboer commented Apr 9, 2019

@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
Copy link

apolbox commented May 8, 2019

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
Copy link

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
Copy link

akashisgreat commented Dec 8, 2020

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

#command+=" -b /sdcard"

After that run ./start-ubuntu.sh agian

@duskygloom
Copy link

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
Copy link

mashirozx commented Feb 4, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests