Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    apt-get install fails with read-only filesystem

    Support
    8
    10
    291
    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
      jojumaxx last edited by

      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!

      AppLee 1 Reply Last reply Reply Quote 0
      • Keneda
        Keneda last edited by Keneda

        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.

        1 Reply Last reply Reply Quote 0
        • AppLee
          AppLee @jojumaxx last edited by

          @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
            jojumaxx last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • T
              tgv34 last edited by

              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 0
              • Flohack
                Flohack last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • J
                  jojumaxx last edited by

                  Got it, thank you for your help.

                  arubislander 1 Reply Last reply Reply Quote 0
                  • arubislander
                    arubislander @jojumaxx last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • S
                      singpolyma last edited by

                      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?

                      dobey 1 Reply Last reply Reply Quote 0
                      • dobey
                        dobey @singpolyma last edited by

                        @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
                        • First post
                          Last post