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

    How to uninstall/remove packages in a Libertine container?

    Scheduled Pinned Locked Moved Libertine
    4 Posts 2 Posters 197 Views 2 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.
      • H Offline
        hlbkv
        last edited by

        I am unable to remove/uninstall any package installed in a Libertine container, getting

        libertine-container-manager:219: ERROR: remove_package(): Package <package> is not installed.
        

        even when using the full 'focal_<package>_0.0' name listed in 'libertiner-container-manager list-apps'.

        Is there any inconvenience to calling 'apt remove <package>' directly with 'libertine-container-manager exec' or using a libertine shell e.g. lish?

        arubislanderA 1 Reply Last reply Reply Quote 0
        • arubislanderA Offline
          arubislander @hlbkv
          last edited by

          @hlbkv said in How to uninstall/remove packages in a Libertine container?:

          Is there any inconvenience to calling 'apt remove <package>' directly with 'libertine-container-manager exec' or using a libertine shell e.g. lish?

          Don't remember what lish does exactly, but you can achieve a command line that looks like a root shell with libertine-container-manager exec -c fakeroot. Then you can apt remove and / or install packages to your heart's content.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          H 1 Reply Last reply Reply Quote 0
          • H Offline
            hlbkv @arubislander
            last edited by

            @arubislander that did it, thanks.

            Noting that, as of Feb. 2025, the methodology in the official documentation doesn't work.

            arubislanderA 1 Reply Last reply Reply Quote 0
            • arubislanderA Offline
              arubislander @hlbkv
              last edited by

              @hlbkv said in How to uninstall/remove packages in a Libertine container?:

              as of Feb. 2025, the methodology in the official documentation doesn't work.

              I think it hasn't worked since the move to focal. But there is no one yet who has taken it upon themselves to update the documentation on that point.

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post