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

    Help installing openvpn3 client on UT

    Scheduled Pinned Locked Moved Unsolved Support
    4 Posts 3 Posters 278 Views 1 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.
      • S Offline
        stack24
        last edited by

        Hello There!

        I'm new here and this is my first post/question!

        Context

        On android I installed the OpenVPN Client Connect app which enables me to make use of CloudConnexa VPN Networks functionality. Unfortunately, the openvpn which comes installed with UT is not compatible for what I need... That said, I would like to install openvpn3 client on my device running ubuntuTouch following this tutorial: CloudConnexa.

        Progress so far

        I was able to run some of the commands after mounting filesystem as rw, then re-mounting it to ro of course. But when I ran

        apt install openvpn3
        

        I got errors relating to _apt user so I temporarily create this new user and then I got the following errors:

        phablet@ubuntu-phablet:~$ sudo apt --fix-broken install
        [sudo] password for phablet: 
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        Correcting dependencies... Done
        The following additional packages will be installed:
          lomiri-download-manager-common lomiri-system-settings lomiri-ui-toolkit-common
        Suggested packages:
          dbus-property-service
        The following packages will be upgraded:
          lomiri-download-manager-common lomiri-system-settings lomiri-ui-toolkit-common
        3 upgraded, 0 newly installed, 0 to remove and 130 not upgraded.
        77 not fully installed or removed.
        Need to get 0 B/1,343 kB of archives.
        After this operation, 84.0 kB of additional disk space will be used.
        Do you want to continue? [Y/n] y
        (Reading database ... 58765 files and directories currently installed.)
        Preparing to unpack .../lomiri-ui-toolkit-common_1.3.5012+0~20240719183201.3+ubports20.04~1.gbp451471_all.deb ...
        Unpacking lomiri-ui-toolkit-common (1.3.5012+0~20240719183201.3+ubports20.04~1.gbp451471) over (1.3.5011+0~20240104163658.121+ubports20.04~1.gbpd09e76) ...
        dpkg: error processing archive /var/cache/apt/archives/lomiri-ui-toolkit-common_1.3.5012+0~20240719183201.3+ubports20.04~1.gbp451471_all.deb (--unpack):
         unable to create '/usr/share/session-migration/scripts/luitk-config-migration.sh.dpkg-new' (while processing './usr/share/session-migration/scripts/luitk-config-migration.sh'): Read-only file system
        dpkg: error while cleaning up:
         unable to remove newly-extracted version of '/usr/share/session-migration/scripts/luitk-config-migration.sh': Read-only file system
        Preparing to unpack .../lomiri-download-manager-common_0.1.3+0~20240128102929.65+ubports20.04~1.gbp682c49_all.deb ...
        Unpacking lomiri-download-manager-common (0.1.3+0~20240128102929.65+ubports20.04~1.gbp682c49) over (0.1.2+0~20231212004254.58+ubports20.04~1.gbp9491d2) ...
        dpkg: error processing archive /var/cache/apt/archives/lomiri-download-manager-common_0.1.3+0~20240128102929.65+ubports20.04~1.gbp682c49_all.deb (--unpack):
         unable to create '/usr/share/session-migration/scripts/ldm-db-migration.sh.dpkg-new' (while processing './usr/share/session-migration/scripts/ldm-db-migration.sh'): Read-only file system
        dpkg: error while cleaning up:
         unable to remove newly-extracted version of '/usr/share/session-migration/scripts/ldm-db-migration.sh': Read-only file system
        Preparing to unpack .../lomiri-system-settings_1.0.2+0~20240710053303.1+ubports20.04~1.gbp001aac_arm64.deb ...
        Unpacking lomiri-system-settings (1.0.2+0~20240710053303.1+ubports20.04~1.gbp001aac) over (1.0.2+0~20240106100909.209+ubports20.04~1.gbp92884e) ...
        dpkg: error processing archive /var/cache/apt/archives/lomiri-system-settings_1.0.2+0~20240710053303.1+ubports20.04~1.gbp001aac_arm64.deb (--unpack):
         unable to create '/usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh.dpkg-new' (while processing './usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh'): Read-only file system
        dpkg: error while cleaning up:
         unable to remove newly-extracted version of '/usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh': Read-only file system
        Errors were encountered while processing:
         /var/cache/apt/archives/lomiri-ui-toolkit-common_1.3.5012+0~20240719183201.3+ubports20.04~1.gbp451471_all.deb
         /var/cache/apt/archives/lomiri-download-manager-common_0.1.3+0~20240128102929.65+ubports20.04~1.gbp682c49_all.deb
         /var/cache/apt/archives/lomiri-system-settings_1.0.2+0~20240710053303.1+ubports20.04~1.gbp001aac_arm64.deb
        E: Sub-process /usr/bin/dpkg returned an error code (1)
        
        

        And I'm stuck from here on....

        Does anyone know if it's possible at all to install openvpn3 client on UT? Else is anyone aware of an alternative client/solution?

        Thanks! 🙂

        1 Reply Last reply Reply Quote 0
        • P Offline
          Plarde
          last edited by Plarde

          Hey! I don't have a lot of knowledge myself, but I'll reply since nobody else replied so far. I'll be corrected if I got something wrong!

          The base Ubuntu Touch install is immutable, e. g. the filesystem is read-only and you can't install anything with APT. This is I believe for security and to simplify OTA updates. I believe you can change it to make it read-write, but this will prevent some other stuff from working fine. The only well-supported way to add stuff on Ubuntu Touch is though Click packages, that you can get from the Open Store.

          That being said, I believe Ubuntu Touch already supports OpenVPN-style configuration in the Settings app, so there should be no need to install anything extra. I'm not sure if you can provide it a ready-made configuration file, but I know you can at least configure it manually.

          EDIT: I just remembered that you can install stuff from APT on your phone, but only in a Libertine container (Creating a container can be all done from GUI, or from CLI, at your preference). That works for local apps, but not for anything that may need full access to the system like a VPN does, so it won't be useful in this instance.

          S LuksusL 2 Replies Last reply Reply Quote 1
          • S Offline
            stack24 @Plarde
            last edited by

            Hey @Plarde, no worries at all and thanks for all the info you provided in your response 🙂

            1 Reply Last reply Reply Quote 0
            • LuksusL Offline
              Luksus @Plarde
              last edited by

              @Plarde maybe have a look here:
              https://forums.ubports.com/post/80411

              Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

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