Announcement

Collapse
No announcement yet.

Cannot use sudo inside of a toolbox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cannot use sudo inside of a toolbox

    I'm hoping to set up an Arch container with toolbox/toolbx to do some software development. On other distros, I have had a pretty good success rate with the toolbox images for various distros available in this repository:

    https://github.com/toolbx-images/images

    However, on my new install of Kubuntu 22.04, I am unable to use sudo inside of a newly created toolbox. For example:

    Code:
    ~> toolbox create --image quay.io/toolbx-images/archlinux-toolbox:latest archlinux
    ~> toolbox enter archlinux # complains about fish being unavailable but works properly
    gmail@toolbox:~$ sudo whoami
    gmail is not in the sudoers file.​
    Thinking the problem might be with the Quay image, I tried again with their Alpine Linux image and had the same result. Needless to say, this means I can't update/install packages or anything.

    Any ideas on how to get my toolboxes working properly?

    I see lots of issues related to this on the toolbox GH, but it seems like they are Fedora-specific, and my overall impression is "it depends on how toolbox is packaged," which is why I have come to the Kubuntu forum Note that I am using the fish shell in my main install, but I don't think this is the source of the problem--the toolbox complains that it can't find /usr/bin/fish when you enter it, but just kicks me to bash and carries on.

    #2
    Toolbox looks broken for this use case:
    https://github.com/containers/toolbox/issues/1361
    Last edited by claydoh; Dec 28, 2023, 07:44 AM.

    Comment


      #3
      Originally posted by claydoh View Post
      Toolbox loos broken for this use case:
      https://github.com/containers/toolbox/issues/1361
      Brutal... Thanks for the link though.

      Comment


        #4
        At least it is known. Maybe the devs can fix it soon enough.

        The suggested workaround doesn't work for you?

        Comment


          #5
          Originally posted by claydoh View Post
          At least it is known. Maybe the devs can fix it soon enough.

          The suggested workaround doesn't work for you?
          Haven't done it yet, but I think I'll just pin toolbox to the older version that doesn't have this bug until it is fixed.

          Comment

          Working...
          X