UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    libertine Focal don't find group ID

    Scheduled Pinned Locked Moved Libertine
    3 Posts 2 Posters 1.4k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • B Offline
        Bouleetbil
        last edited by Bouleetbil

        Hi,
        I've install focal OTA-1 on my volla phone.
        I've create a new libertine container

        $ libertine-container-manager create -i focal
        

        I can start firefox as well https, youtube...
        But when, I would manage my container

        phablet@ubuntu-phablet:~$ LC_ALL=C libertine-container-manager exec -i focal -c "/bin/bash"
        groups: cannot find name for group ID 32011
        
        

        Same thing as user shell :

        phablet@ubuntu-phablet:~$ LC_ALL=C  libertine-launch -i focal /bin/bash
        groups: cannot find name for group ID 32011
        I have no name!@ubuntu-phablet:~
        

        Someone use libertine focal ?

        FP5 24.04 RC daily use with pinetime
        Pixel 3a 24.04-2
        Redmi 9S 24.04-2
        PinePhonePro Mobian/Postmarketos

        1 Reply Last reply Reply Quote 0
        • B Offline
          Bouleetbil
          last edited by

          fixed with editing /etc/nsswitch.conf into libertine chroot

          passwd:         files extrausers
          group:          files extrausers
          shadow:         files extrausers
          gshadow:        files
          
          hosts:          files dns
          networks:       files
          
          protocols:      db files
          services:       db files
          ethers:         db files
          rpc:            db files
          
          netgroup:       nis
          
          

          instead

          passwd:         files systemd
          group:          files systemd
          shadow:         files
          gshadow:        files
          
          hosts:          files dns
          networks:       files
          
          protocols:      db files
          services:       db files
          ethers:         db files
          rpc:            db files
          
          netgroup:       nis
          
          

          But I can't have a root shell with :

          libertine-container-manager exec -i focal -c "/bin/bash"
          

          I've got a user shell

          FP5 24.04 RC daily use with pinetime
          Pixel 3a 24.04-2
          Redmi 9S 24.04-2
          PinePhonePro Mobian/Postmarketos

          C 1 Reply Last reply Reply Quote 0
          • B Bouleetbil referenced this topic on
          • C Offline
            chris @Bouleetbil
            last edited by chris

            @Bouleetbil
            I struggled with getting a root shell as well and tried many things, but suddenly found a quite easy way:
            after logging in to the libertine focal container with

            libertine-container-manager exec -i focal -c "/bin/bash"
            

            type the command "fakeroot" and press return. I could then run apt within the container without the dpkg "requires superuser" errors.

            or it is possible to use the following command to log in to libertine with user root:

            libertine-container-manager exec -i focal -c "/bin/fakeroot"
            

            EDIT: it might only work for libertine containers of type 'chroot'. (-t chroot when creating the container)

            1 Reply Last reply Reply Quote 0
            • C chris referenced this topic on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post