termux-ubuntu icon indicating copy to clipboard operation
termux-ubuntu copied to clipboard

groups: cannot find name for group ID

Open hariswhdn opened this issue 8 years ago • 26 comments

$ ./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.

hariswhdn avatar Jul 02 '17 03:07 hariswhdn

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

Neo-Oli avatar Jul 04 '17 12:07 Neo-Oli

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 avatar Aug 27 '17 07:08 remo7777

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..

remo7777 avatar Aug 27 '17 07:08 remo7777

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

runskey2017 avatar Sep 16 '17 23:09 runskey2017

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

maidenone avatar Nov 20 '17 09:11 maidenone

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.

Neo-Oli avatar Nov 20 '17 10:11 Neo-Oli

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

Ahmedroid avatar Feb 28 '18 12:02 Ahmedroid

@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.

shaqman avatar Feb 28 '18 13:02 shaqman

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)

NatoBoram avatar Jun 01 '18 02:06 NatoBoram

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

Root-voidX avatar Jun 15 '18 13:06 Root-voidX

I know that but the problem did not solved

On Wed, Feb 28, 2018, 16:40 Syakur Rahman [email protected] 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 .

Ahmedroid avatar Jun 16 '18 03:06 Ahmedroid

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!

Amooti73 avatar Jun 26 '18 02:06 Amooti73

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

MFDGaming avatar Jun 29 '18 10:06 MFDGaming

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 avatar Jul 12 '18 17:07 corbinlc

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.

corbinlc avatar Jul 13 '18 05:07 corbinlc

solved by touch ~/.hushlogin

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

gauloics avatar Oct 18 '18 18:10 gauloics

touché!

diehard88 avatar Oct 18 '18 21:10 diehard88

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: [email protected] [email protected] 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

Amooti73 avatar Oct 19 '18 05:10 Amooti73

@gauloics I love u

AlbertCaro avatar Dec 03 '18 06:12 AlbertCaro

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?

JacobTDC avatar Feb 27 '19 15:02 JacobTDC

@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!

Neboer avatar Apr 09 '19 07:04 Neboer

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

apolbox avatar May 08 '19 03:05 apolbox

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.

Nebdir avatar Apr 16 '20 21:04 Nebdir

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

akashisgreat avatar Dec 08 '20 15:12 akashisgreat

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.

duskygloom avatar Jan 10 '21 04:01 duskygloom

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

mashirozx avatar Feb 04 '21 10:02 mashirozx