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

    Problem with 'sudo': Is my system broken?

    Scheduled Pinned Locked Moved Solved Support
    5 Posts 2 Posters 799 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.
      • J Online
        jojumaxx
        last edited by jojumaxx

        Hello,

        while trying to get a shell running in a Libertine container on my Volla Phone, I did this:

        phablet@ubuntu-phablet:~$ sudo libertine-launch -i xenial bash
        ERROR: ld.so: object 'libtls-padding.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
        sudo: /usr/bin/sudo must be owned by UID 0 and have the »setuid« bit set
        

        But there seems to be no problem if I do something like this:

        phablet@ubuntu-phablet:~$ sudo su
        [sudo] password for phablet: 
        root@ubuntu-phablet:/home/phablet# 
        

        Checking sudo rights gives me:

        phablet@ubuntu-phablet:~$ ls -l /usr/bin/sudo
        -rwsr-xr-x 1 root root 132576 Jan 20  2021 /usr/bin/sudo
        

        Is this enough information to tell, if my system is messed up? When searching the web it seems like I'll have to newly set up the whole system since this is hardly repairable.
        What am I supposed to do?

        Thanks in advance

        Happily running Ubuntu Touch:

        • BQ Aquaris E5 HD (Retired)
        • BQ Aquaris M10 HD (Retired)
        • Meizu MX4 Pro (Retired)
        • Meizu Pro 5 (Retired)
        • PinePhone UBPorts Edition
        • Volla Phone
        • Volla Phone X
        1 Reply Last reply Reply Quote 0
        • dobeyD Offline
          dobey
          last edited by

          Why are you trying to use sudo with libertine? Indeed you should not install sudo inside the libertine container, nor should you run either libertine-container-manager nor libertine-launch with sudo.

          It seems you've installed sudo in the container, and thus now that container is broke. You'll need to destroy it and create a new container and never install sudo in it.

          If you want a "root" shell in a libertine container, you can use libertine-container-manager exec -c bash though this is just fakeroot, and not a real root, as the libertine container is unprivileged.

          J 1 Reply Last reply Reply Quote 2
          • J Online
            jojumaxx @dobey
            last edited by

            @dobey thanks for your answer. I did, waht you suggested and got

            phablet@ubuntu-phablet:~$ libertine-container-manager exec -c bash
            groups: cannot find name for group ID 1001
            groups: cannot find name for group ID 1002
            groups: cannot find name for group ID 1003
            groups: cannot find name for group ID 1004
            groups: cannot find name for group ID 1005
            groups: cannot find name for group ID 1013
            groups: cannot find name for group ID 1015
            groups: cannot find name for group ID 1021
            groups: cannot find name for group ID 2001
            groups: cannot find name for group ID 3002
            groups: cannot find name for group ID 3003
            groups: cannot find name for group ID 3004
            groups: cannot find name for group ID 9997
            groups: cannot find name for group ID 32011
            root@ubuntu-phablet:/# 
            

            Does that look right?
            I then tried to install flatpak and failed, since the package wasn't found.
            Before I try further, is it possible to use flatpak inside the conrainer?

            Thanks again

            Happily running Ubuntu Touch:

            • BQ Aquaris E5 HD (Retired)
            • BQ Aquaris M10 HD (Retired)
            • Meizu MX4 Pro (Retired)
            • Meizu Pro 5 (Retired)
            • PinePhone UBPorts Edition
            • Volla Phone
            • Volla Phone X
            dobeyD 1 Reply Last reply Reply Quote 0
            • dobeyD Offline
              dobey @jojumaxx
              last edited by

              @jojumaxx said in Problem with 'sudo': Is my system broken?:

              Before I try further, is it possible to use flatpak inside the conrainer?

              It's not really supported, and I think maybe flatpak is not available in Ubuntu 16.04.

              J 1 Reply Last reply Reply Quote 0
              • J Online
                jojumaxx @dobey
                last edited by

                @dobey Thank you for your help! 🙂

                Happily running Ubuntu Touch:

                • BQ Aquaris E5 HD (Retired)
                • BQ Aquaris M10 HD (Retired)
                • Meizu MX4 Pro (Retired)
                • Meizu Pro 5 (Retired)
                • PinePhone UBPorts Edition
                • Volla Phone
                • Volla Phone X
                1 Reply Last reply Reply Quote 0
                • J jojumaxx has marked this topic as solved on
                • KenedaK Keneda referenced this topic on
                • KenedaK Keneda referenced this topic on
                • First post
                  Last post