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 919 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 ?

        Pixel 3a ubports focal RC version daily use with pinetime
        PinePhonePro Mobian / ubports Focal
        Redmi 9S focal devel version

        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

          Pixel 3a ubports focal RC version daily use with pinetime
          PinePhonePro Mobian / ubports Focal
          Redmi 9S focal devel version

          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
            • First post
              Last post