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.
      • J Offline
        JacekRock
        last edited by

        I run

        sudo apt install vim
        

        but failed

        alan_gA arubislanderA G 3 Replies Last reply Reply Quote 0
        • I Offline
          incyi
          last edited by

          What does the "fail" say ?

          1 Reply Last reply Reply Quote 0
          • J Offline
            JacekRock
            last edited by

            W: Not using locking for read only lock file /var/lib/dpkg/lock
            E: Unable to write to /var/chache/apt/
            E: The package lists or status file could not be parsed or opened.

            1 Reply Last reply Reply Quote 0
            • LakotaubpL Offline
              Lakotaubp
              last edited by

              Fairly certain apt does not work on UT.

              L 1 Reply Last reply Reply Quote 0
              • alan_gA Offline
                alan_g @JacekRock
                last edited by

                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

                  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?

                  dobeyD 1 Reply Last reply Reply Quote 0
                  • dobeyD Offline
                    dobey @JacekRock
                    last edited by

                    @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
                    • arubislanderA Offline
                      arubislander @JacekRock
                      last edited by

                      @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)

                      jezekJ 1 Reply Last reply Reply Quote 2
                      • jezekJ Offline
                        jezek @arubislander
                        last edited by

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

                        jEzEk

                        AppLeeA 1 Reply Last reply Reply Quote 0
                        • AppLeeA Offline
                          AppLee @jezek
                          last edited by

                          @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
                          • dobeyD Offline
                            dobey
                            last edited by

                            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

                              @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.

                              LakotaubpL 1 Reply Last reply Reply Quote -2
                              • LakotaubpL Offline
                                Lakotaubp @LinuxMasta420
                                last edited by

                                @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

                                  @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