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

I want to know how to use apt on Ubuntu Touch?

Scheduled Pinned Locked Moved Support
14 Posts 10 Posters 8.4k 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.
    • A Away
      alan_g @JacekRock
      last edited by 7 Apr 2020, 13:31

      See the FAQ: "Can I use the APT repositories on Ubuntu Touch and install packages?"

      The system partition is intentionally read-only (because of design trade-offs suited to a phone). You can create a chroot and install things there.

      1 Reply Last reply Reply Quote 1
      • J Offline
        JacekRock
        last edited by 7 Apr 2020, 13:37

        but it says "Our goal is to provide a single platform for application developers, allowing a single code base to run on all Ubuntu Touch devices. Running apt on Ubuntu Touch is possible, but it's only for developers because it will break future OTA update push." Doesn't apt work in theory?

        D 1 Reply Last reply 7 Apr 2020, 13:38 Reply Quote 0
        • D Offline
          dobey @JacekRock
          last edited by 7 Apr 2020, 13:38

          @JacekRock The supported method of using apt, is to create a container in libertine and install the legacy/console apps you want to use, in there. Being a single converged platform, doesn't mean supporting legacy insecure packaging methods of traditional distributions.

          1 Reply Last reply Reply Quote 1
          • A Offline
            arubislander @JacekRock
            last edited by 8 Apr 2020, 06:08

            @JacekRock
            While I realize your question is about using apt, it might be worth noting that vim is already installed in the root filesystem.
            You can access it with vi from the terminal application.

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

            J 1 Reply Last reply 8 Apr 2020, 13:26 Reply Quote 2
            • J Offline
              jezek @arubislander
              last edited by 8 Apr 2020, 13:26

              @arubislander vi is not vim. Or did I miss something?

              jEzEk

              A 1 Reply Last reply 8 Apr 2020, 13:55 Reply Quote 0
              • A Offline
                AppLee @jezek
                last edited by 8 Apr 2020, 13:55

                @jezek
                mv vim vi and it is πŸ™‚
                I think @arubislander is correct and this is in fact vim that is executed with command vi on Ubuntu Touch.
                I remember that happy face I had when I accidentally typed insert and saw the insertion mode message.

                But my memory is bad so don't trust it too much.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dobey
                  last edited by 8 Apr 2020, 22:07

                  vi on Debian/Ubuntu is indeed just vim in a more pure vi mode.

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    LinuxMasta420 @Lakotaubp
                    last edited by 3 Nov 2020, 05:24

                    @Lakotaubp goodness you are more useless than a Windows install. You have no business using an Ubuntu phone if you can't even figure out how to make apt work.

                    @JacekRock apt doesn't just work in theory, it works in practice, as soon as you make your filesystem r/w instead of just r.

                    @AppLee
                    @dobey
                    go post on some other thread about your text editors, this thread is about apt.

                    THE ACTUAL ANSWER TO THIS THREAD:
                    sudo mount -o remount,rw /

                    #this remounts the filesystem temporarily as rw. Another solution is using chroot or libertine.

                    L 1 Reply Last reply 3 Nov 2020, 06:10 Reply Quote -2
                    • L Offline
                      Lakotaubp @LinuxMasta420
                      last edited by 3 Nov 2020, 06:10

                      @LinuxMasta420 Firstly welcome to the UBports forum. Secondly if you want to remain here and have people help you or follow your advice it is best not to insult people in anypost especially your first post.Please don't repeat it. Most of those you have criticized have been working on and developing Ubuntu Touch for sometime now and will have a greater knowledge than you may of how it works. Thirdly as mentioned by @dobey it is recommended to use apt only inside a Libertine container as it can wreck your system in some cases.

                      1 Reply Last reply Reply Quote 5
                      • G Offline
                        Gra @JacekRock
                        last edited by 2 Feb 2023, 07:36

                        @jacekrock Hi, I can see it's old question, but I just solved the issue, I hope it will help others:
                        Default UT is minimised version, as most of the users will not use it on the level you want.

                        sudo unminimize
                        

                        I found it as I tried use man command.

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