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

How to add new programs to apt

Scheduled Pinned Locked Moved Unsolved Support
12 Posts 5 Posters 960 Views 3 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.
    • M Offline
      metty
      last edited by metty 12 Oct 2021, 17:09 10 Dec 2021, 17:07

      Hello all!
      I am not the super programmer but would like to try. I tried

      sudo apt install pass
      

      and got:

      E: Unable to locate package pass
      

      Since the program is pass opensource, it should not be very complicated to compile it for ubuntu-touch and add it to the repo. However, I have never done this before. How can I proceed?

      Or do I just need to add a repo? Maybe someone has already done this?

      S 1 Reply Last reply 10 Dec 2021, 17:15 Reply Quote 1
      • S Offline
        stanwood @metty
        last edited by 10 Dec 2021, 17:15

        @metty Ubuntu Touch doesn't work the same way as Ubuntu.
        It is strongly not recommended to use apt to install software. (as it won't work and may brick your device)
        Rather use the openstore, or use a libertine container.

        Redmi Note 9S Stable
        If God has a computer, it must be a GNU/Linux

        M N 6 3 Replies Last reply 10 Dec 2021, 17:18 Reply Quote 0
        • M Offline
          metty @stanwood
          last edited by 10 Dec 2021, 17:18

          @stanwood Thanks... It's a pity that this is exactly the kind of thing I find so cool about Linux. That you have a packet manager, and the programs can use each other.
          Is a program via the Openstore also accessible in the console?
          So is there an other way to install for example pass on my device?

          T 1 Reply Last reply 10 Dec 2021, 17:59 Reply Quote 1
          • T Offline
            TotalSonic @metty
            last edited by 10 Dec 2021, 17:59

            @metty - you can create a Libertine container (either via the Terminal, or the Libertine gui in the System Settings), then download into your Downloads folder a deb built for Ubuntu 16.04 (either arm64, or armhf if you are using an older 32bit device) - and then install it using either the Terminal or the Libertine gui.

            Info here - http://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html

            Best regards,
            Steve Berson

            M 1 Reply Last reply 11 Dec 2021, 14:23 Reply Quote 2
            • M Offline
              metty @TotalSonic
              last edited by metty 12 Nov 2021, 14:46 11 Dec 2021, 14:23

              @totalsonic Thanks steve! I will try that.

              1 Reply Last reply Reply Quote 0
              • N Offline
                nero355 @stanwood
                last edited by nero355 12 Dec 2021, 19:33 12 Dec 2021, 19:33

                @stanwood said in How to add new programs to apt:

                @metty Ubuntu Touch doesn't work the same way as Ubuntu.
                It is strongly not recommended to use apt to install software. (as it won't work and may brick your device)
                Rather use the openstore, or use a libertine container.

                To be honest I think it's really a shame that after all these years PostmarketOS seems to be the only option that offers a full blown Linux experience in combination with a phone instead of Ubuntu Touch which was the perfect candidate to offer that experience! 😢

                My phones :

                • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                • ZUK Z2 Pro - ZUI Android 8.x
                • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                P.S. : I am NOT a developer! ;)

                1 Reply Last reply Reply Quote 0
                • 6 Offline
                  6mv @stanwood
                  last edited by 12 Dec 2021, 19:51

                  Hi @stanwood.

                  Can you tell me how to do this? I have no idea, unfortunately, yet.
                  I am trying to install firefox and signal and a video recording app.
                  Ta,
                  Alex

                  S 1 Reply Last reply 12 Dec 2021, 19:59 Reply Quote 0
                  • S Offline
                    stanwood @6mv
                    last edited by 12 Dec 2021, 19:59

                    @6mv To start, go into settings => System => Libertine => Get started. Name your container and define a password if you wish.

                    Installation might take some time.

                    Currently Ubuntu Touch is still using Xenial (16.04) repositories.

                    Please read carefully the documentation:

                    https://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html

                    Redmi Note 9S Stable
                    If God has a computer, it must be a GNU/Linux

                    6 1 Reply Last reply 12 Dec 2021, 20:06 Reply Quote 0
                    • 6 Offline
                      6mv @stanwood
                      last edited by 12 Dec 2021, 20:06

                      Thanks @stanwood.
                      Can't make any sense. App options don't work, don't have a clue what these commands can be run. What is container name?

                      S 1 Reply Last reply 12 Dec 2021, 20:53 Reply Quote 0
                      • S Offline
                        stanwood @6mv
                        last edited by 12 Dec 2021, 20:53

                        @6mv said in How to add new programs to apt:

                        Thanks @stanwood.
                        What is container name?

                        The name you want to give to your container (ex: Entertainment, Private, Professional tools, or whatever you like)

                        Btw, as I'm not using desktop apps on my device, maybe other members would better help than me....

                        Redmi Note 9S Stable
                        If God has a computer, it must be a GNU/Linux

                        M 1 Reply Last reply 13 Dec 2021, 18:13 Reply Quote 0
                        • M Offline
                          metty @stanwood
                          last edited by metty 13 Dec 2021, 18:13

                          @stanwood What I did is now:

                          #!/bin/bash
                          # create the container:
                          libertine-container-manager create -i pcapps -n pcapps
                          # install pass
                          libertine-container-manager install-package -p pass
                          

                          I copyed also all my encrypted passwords to /home/phablet/.password-store
                          Then executed:

                          libertine-launch -i pcapps pass
                          

                          Now I got the following:

                          ERROR: ld.so: object 'libtls-padding.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
                          ERROR: ld.so: object 'libtls-padding.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
                          : DISPLAY environment variable not set!
                          ERROR: ld.so: object 'libtls-padding.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
                          Error: password store is empty. Try "pass init".
                          

                          Also I tried to copy the passwords to:

                          ~/.cache/libertine-container/pcapps/rootfs/home/
                          

                          No success.. Where do I have to copy them? 👽 Or in other words: Where is the home which sees the program in the container?

                          M 1 Reply Last reply 23 Dec 2021, 22:50 Reply Quote 0
                          • 10 days later
                          • M Offline
                            metty @metty
                            last edited by 23 Dec 2021, 22:50

                            @metty
                            I haven't gotten that far, and I'm not yet able to use my passwords with Unix Pass on my Ubuntu Touch device, which currently forces me to always have two phones with me.

                            Is there something I am doing wrong? I was able to initialize the program with pass, but I can't generate and save passwords. Its generating one but the list remains empty. Among many 'libtls-padding.so' errors.

                            @stanwood You write: It is strongly not recommended to use apt to install software. (as it won't work and may brick your device)
                            But back to the main topic. How do I do it? Even if it may brick my device. Better than no device. That would be the case if a such a simple thing like pass do not work on a ubuntu-phone.

                            1 Reply Last reply Reply Quote 0
                            5 out of 12
                            • First post
                              5/12
                              Last post