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

    Libertine App Install, Run, and Remove

    Scheduled Pinned Locked Moved Unsolved Support
    1 Posts 1 Posters 483 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.
      • E Offline
        enohpu
        last edited by

        I am trying to install foxtrotgps (https://www.foxtrotgps.org/) as an app in a Libertine Contianer. I am running Ubuntu 20.04 (2023-W13) from 20.04/arm64/android9plus/stable on a Google Pixel 3a phone.

        1. Libertine fails to install a package because of permissions related to the creation of a directory /run/gpsd. How do you fix permission errors related to gpsd?
        2. Why is there are discrepancy between the terminal “container list-apps” and the Libertine GUI?
        3. Shouldn’t failed installs not show under start menu and “libertine-container-manager list-apps”?
        4. Shouldn’t “libertine-container-manager list” and Settings>Libertine>Manage Libertine Containers show the same information?

        Details:
        I have a default Libertine container set up "Ubuntu 'Focal Fossa'". I set the container up in Settings>Libertine and it shows in the terminal:

        $ libertine-container-manager list
        focal
        

        and it shows in Settings>Libertine>Manage Libertine Containers as"
        Ubuntu 'Focal Fossa'
        I tried to install the app but the Libertine GUI shows no apps installed. But:

        $ libertine-container-manager list-apps 
        focal_foxtrotgps_0.0
        

        Running the application from the start screen starts X11 support and the foxtrotgps app but nothing but a black screen appears.

        Also starting the package from the command line (as per the documentation) fails. The documentation says: “Run desktop application - Run it from the app menu like any other app. To start a graphical app from the command-line, for example gedit, run this in a terminal:
        #ubuntu-app-launch <CONTAINER_ID>_<desktop_file_name>_0.0
        ubuntu-app-launch xenial_gedit_0.0”
        I get the following:

        $ ubuntu-app-launch focal_foxtrotgps_0.0
        -bash: ubuntu-app-launch: command not found
        

        Here is what is shown when I try to install the app from the command line. The sticking point seems to be “Stopped: Couldn't create home directory `/run/gpsd': Permission denied.” When I install the same app on my desktop computer the /run/gpsd directory gets created with no problem. Here is the output from trying to install the app with Libertine:

        $ libertine-container-manager install-package -p foxtrotgps
        Failed to connect to bus: Operation not permitted
        Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
        Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
        Get:3 https://repo2.ubports.com focal InRelease [10.4 kB]
        Get:4 https://repo2.ubports.com focal/main arm64 Packages [4,275 kB]
        Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [2,025 kB]
        Get:6 http://ports.ubuntu.com/ubuntu-ports focal-updates/main Translation-en [453 kB]
        Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1,006 kB]
        Get:8 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe Translation-en [260 kB]
        Get:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse arm64 Packages [8,476 B]
        Get:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse Translation-en [7,484 B]
        Fetched 8,159 kB in 6s (1,315 kB/s)
        Reading package lists...
        Reading package lists...
        Building dependency tree...
        Reading state information...
        foxtrotgps is already the newest version (1.2.2-2ubuntu1).
        0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
        1 not fully installed or removed.
        After this operation, 0 B of additional disk space will be used.
        Setting up gpsd (3.20-8ubuntu0.4) ...
        Creating/updating gpsd user account...
        Stopped: Couldn't create home directory `/run/gpsd': Permission denied.
        
        Removing directory `/run/gpsd' ...
        Removing user `gpsd' ...
        dpkg: error processing package gpsd (--configure):
         installed gpsd package post-installation script subprocess returned error exit status 1
        Errors were encountered while processing:
         gpsd
        E: Sub-process /usr/bin/dpkg returned an error code (1)
        Reading package lists...
        Building dependency tree...
        Reading state information...
        0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
        1 not fully installed or removed.
        After this operation, 0 B of additional disk space will be used.
        Setting up gpsd (3.20-8ubuntu0.4) ...
        Creating/updating gpsd user account...
        Stopped: Couldn't create home directory `/run/gpsd': Permission denied.
        
        Removing directory `/run/gpsd' ...
        Removing user `gpsd' ...
        dpkg: error processing package gpsd (--configure):
         installed gpsd package post-installation script subprocess returned error exit status 1
        Errors were encountered while processing:
         gpsd
        E: Sub-process /usr/bin/dpkg returned an error code (1)
        libertine-container-manager:184: ERROR: install_package():	Package 'foxtrotgps' failed to install in container 'focal'
        
        

        If I try to remove the app:

        $ libertine-container-manager remove-package -p focal_foxtrotgps_0.0
        libertine-container-manager:219: ERROR: remove_package(): Package 'focal_foxtrotgps_0.0' is not installed.
        $ libertine-container-manager list-apps
        focal_foxtrotgps_0.0
        

        So..

        1. Libertine fails to install a package because of permissions related to the creation of a directory /run/gpsd. How do you fix permission errors related to gpsd?
        2. Why is there are discrepancy between the terminal “libertine-container-manager list-apps” and the Libertine GUI?
        3. Shouldn’t failed installs not show under start menu and “libertine-container-manager list-apps”?
        4. Shouldn’t libertine-container-manager list and Settings>Libertine>Manage Libertine Containers show the same information?
        1 Reply Last reply Reply Quote 0
        • E enohpu referenced this topic on
        • First post
          Last post