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

    Getting error while installing through dpkg

    Scheduled Pinned Locked Moved Libertine
    7 Posts 3 Posters 1.1k 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.
      • D Offline
        deepanshu1409
        last edited by

        When I used dpkg to install the .deb file in the libertine container, I faced this error while using apt-get. I can't use sudo in the bash of the container
        dpkg: error: requested operation requires superuser privilege

        KenedaK arubislanderA 2 Replies Last reply Reply Quote 0
        • KenedaK Offline
          Keneda @deepanshu1409
          last edited by Keneda

          @deepanshu1409 said in Getting error while installing through dpkg:

          requested operation requires superuser privilege

          I may be wrong, but isn'it it sudo su then entering password for getting superuser privilege ?
          I'm a noob so pardon me if i said bull stuff ^^

          2015-2023 : Meizu MX4 ☠️⚰️✝️
          2023-2024 : Nexus 5 ☠️⚰️✝️
          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
          🇲🇫🇬🇧

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            deepanshu1409 @Keneda
            last edited by

            @Keneda bash provides us fake sudo privileges, so we need not write sudo, and by entering su it requests a password which I have never set, and thereby it returns su: Authentication failure

            KenedaK 1 Reply Last reply Reply Quote 0
            • KenedaK Offline
              Keneda @deepanshu1409
              last edited by Keneda

              @deepanshu1409
              I don't know for libertine as i don't use it and never did.

              Maybe it's different from UT bash, but under UT i had some times to do "sudo su", then entering my phone unlock pincode, in order to have somme command working.

              Again, i'm noob in linux, and even more in libertine, so i hope someone who knows well this UT "tool" will provide you some better help 😅

              2015-2023 : Meizu MX4 ☠️⚰️✝️
              2023-2024 : Nexus 5 ☠️⚰️✝️
              2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
              🇲🇫🇬🇧

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

                @deepanshu1409

                The supported way of installing packages in a libertine container is with the libertine-container-managercommand. Type

                libertine-container-manager install-package -h
                

                for more info on how to install .deb files.

                🇦🇼 🇳🇱 🇺🇸 🇪🇸
                Happily running Ubuntu Touch
                Google Pixel 3a (20.04 DEV)
                JingPad (24.04 preview)
                Meizu Pro 5 (16.04 DEV)

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  deepanshu1409 @arubislander
                  last edited by

                  @arubislander So, I can't use apt to install packages in libertine-container? Is there no way I can use apt anyway in ubuntu touch?

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

                    @deepanshu1409 On 16.04 it was possible to use apt in a libertine container. That seems no longer to be easily possible on 20.04.

                    But is it not more important that you can achieve your objective of installing a package, rather than using apt specifically for doing so?

                    You can install debs with libertine-container-manager install-package, at least according to the --help. I have not tried yet myself.

                    🇦🇼 🇳🇱 🇺🇸 🇪🇸
                    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