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

apt-get install fails with read-only filesystem

Scheduled Pinned Locked Moved Support
10 Posts 8 Posters 8.0k 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.
    • J Offline
      jojumaxx
      last edited by 2 Jul 2020, 19:37

      Hi,

      I'm tying to install a little command line tool. But I get the error

      read-only filesystem
      

      That concerns /usr/local/bin/.
      I have developer mode enabled but that doesn't help either. Is there a way to do this?

      Thanks!

      Happily running Ubuntu Touch:

      • BQ Aquaris E5 HD (Retired)
      • BQ Aquaris M10 HD (Retired)
      • Meizu MX4 Pro (Retired)
      • Meizu Pro 5 (Retired)
      • PinePhone UBPorts Edition
      • Volla Phone
      • Volla Phone X
      A 1 Reply Last reply 2 Jul 2020, 21:25 Reply Quote 0
      • K Offline
        Keneda
        last edited by Keneda 7 Feb 2020, 19:49 2 Jul 2020, 19:48

        I believe you should use libertine contener to use apt-get in it.
        Read-only FS is wanted on the major part of the system, uTouch works that way to prevent security issues.

        You can bypass this by enabling r/w access, for example with UT Tweak Tool, but it's very not recommended.
        You could break your system making it unusable, or break OTA update, and such things...

        Try it at your own risk... Or use libertine contener to be safe.

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

        1 Reply Last reply Reply Quote 0
        • A Offline
          AppLee @jojumaxx
          last edited by 2 Jul 2020, 21:25

          @jojuma
          Apps are expected to be click packages from the Open Store or any other mean you might have.
          Installation using apt is enabled within Libertine, so "desktop applications" can be tried on tablet or within external mouse, keyboard and screen.
          Libertine is a bit experimental though.

          As @Keneda mentioned the rootfs is mounted read only for good reasons.
          Tweaking is always possible, that's open sourced and we cannot prevent people from doing what they want, but it's completely not supported.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jojumaxx
            last edited by 3 Jul 2020, 22:56

            Thanks for your replies. That means, I also can't use neither curl nor wget for the same reason, right?
            Sorry for asking, I'm not that experienced yet.
            I'll definitaly follow your recommendations since I absolutely don't want to risk breaking the system.

            Happily running Ubuntu Touch:

            • BQ Aquaris E5 HD (Retired)
            • BQ Aquaris M10 HD (Retired)
            • Meizu MX4 Pro (Retired)
            • Meizu Pro 5 (Retired)
            • PinePhone UBPorts Edition
            • Volla Phone
            • Volla Phone X
            1 Reply Last reply Reply Quote 0
            • T Offline
              tgv34
              last edited by 4 Jul 2020, 08:35

              To be able to write once on read-only filesystem

              sudo mount -o rw,remount /
              

              But as said, the rootfs is mounted read only for good reasons.

              1 Reply Last reply Reply Quote 1
              • F Offline
                flohack
                last edited by 4 Jul 2020, 10:06

                And the reason for that s among security that we are doing delta OTA upgrades, so if you modify your root file system you will eventually break this functionality. Instead you will get a new, fresh, read-only image of / and so all your things installed with apt are lost. Also it is very hard for us to help users with issues if we don´t know what they have installed.

                So as suggestd, create a libertine container in system settings and install it there. This is not a traditional desktop environment, the design choices for mobile devices have been made a bit different here.

                My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jojumaxx
                  last edited by 4 Jul 2020, 10:13

                  Got it, thank you for your help.

                  Happily running Ubuntu Touch:

                  • BQ Aquaris E5 HD (Retired)
                  • BQ Aquaris M10 HD (Retired)
                  • Meizu MX4 Pro (Retired)
                  • Meizu Pro 5 (Retired)
                  • PinePhone UBPorts Edition
                  • Volla Phone
                  • Volla Phone X
                  A 1 Reply Last reply 4 Jul 2020, 12:32 Reply Quote 0
                  • A Offline
                    arubislander @jojumaxx
                    last edited by 4 Jul 2020, 12:32

                    @jojuma You can also take a look at this blog post. It is a bit old, but still relevant. Scroll down to the bottom to get right into it.

                    🇦🇼 🇳🇱 🇺🇸 🇪🇸
                    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
                    • S Offline
                      singpolyma
                      last edited by 8 Jul 2020, 02:29

                      Related to this, I find also that many packages are simply missing from apt -- no vim, no git, no irssi... but looking at the apt config it looks like it's just using the normal Ubuntu ARM repos (plus some extra stuff) -- anyone know why many common packages apt simply cannot find?

                      D 1 Reply Last reply 8 Jul 2020, 19:41 Reply Quote 0
                      • D Offline
                        dobey @singpolyma
                        last edited by 8 Jul 2020, 19:41

                        @singpolyma apt is still not supported as a means of installing things in the rootfs. All of those things can be installed inside a libertine container and it works fine.

                        1 Reply Last reply Reply Quote 0
                        • M MrT10001 referenced this topic on 11 Jan 2022, 10:20
                        10 out of 10
                        • First post
                          10/10
                          Last post