• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 786 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 Offline
      jojumaxx
      last edited by jojumaxx 16 Mar 2022, 10:15

      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
      • D Offline
        dobey
        last edited by 16 Mar 2022, 22:10

        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 18 Mar 2022, 19:24 Reply Quote 2
        • J Offline
          jojumaxx @dobey
          last edited by 18 Mar 2022, 19:24

          @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
          D 1 Reply Last reply 18 Mar 2022, 19:31 Reply Quote 0
          • D Offline
            dobey @jojumaxx
            last edited by 18 Mar 2022, 19:31

            @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 18 Mar 2022, 20:39 Reply Quote 0
            • J Offline
              jojumaxx @dobey
              last edited by 18 Mar 2022, 20:39

              @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 18 Mar 2022, 20:39
              • K Keneda referenced this topic on 18 Mar 2022, 23:44
              • K Keneda referenced this topic on 18 Mar 2022, 23:46
              4 out of 5
              • First post
                4/5
                Last post