LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   chroot from Slackware to newer GNU/Linux (https://www.linuxquestions.org/questions/linux-containers-122/chroot-from-slackware-to-newer-gnu-linux-4175724644/)

dchmelik 04-30-2023 11:41 PM

chroot from Slackware to newer GNU/Linux
 
Lately I installed Gentoo and a couple Ubuntu variants on my PC, the latter because I administer *ubuntus for users. Personally I've always used the oldest GNU/Linux, so I want to chroot in. It works perfectly with Gentoo (able to update). When I do so with Ubuntu variants, it says the following.

Code:

groups: cannot find name for group ID 17
groups: cannot find name for group ID 215

I didn't see those in /etc/group, so what does this mean? Other than this, the chroot seems to work well, including updates, apt, etc. Do the error messages mean anything else needs to be configured for things to work right? Of course, the OS I chroot from doesn't have systemd.
        Next I'll be trying same with Fedora and openSUSE... anything I need to know about the case for these?

hazel 05-01-2023 05:41 AM

I think it just means that the group lists in your different distros don't match exactly. Copy all the /etc/group files into one place and compare them. You can always add groups to the distro that doesn't have them.

dchmelik 05-01-2023 05:18 PM

Yes, it was that there are more groups in Slackware.

dchmelik 05-01-2023 11:15 PM

Also, when I chroot into KDE Neon or Mint and startx, it says permisison to open the virtual console is denied; is there any fix for this? (I won't need it for Gentoo but maybe was going to try Fedora and SUSE).

sundialsvcs 05-02-2023 07:57 PM

Of particular concern, however, is that "the correspondence between group-names and group-IDs" match exactly wherever the names are the same.

If, for example, the group named "foo" is #20 in one file and #21 in any other, then you suddenly have a terrific headache on your hands. Because Linux knows nothing of the (conflicting ...) names – only numbers. Whereas humans (and their programs ...?) usually deal only with names.

Exactly the same problem can arise with regard to user IDs.

- - -

The fastest way to check for this problem is to touch (to create ...) an empty file, then cat each of the files into it, then sort that file, then use uniq to eliminate duplicates, then sort it again, then hope against hope that you don't find the same name twice. (Isn't the command-line fun?) :)


All times are GMT -5. The time now is 06:12 AM.