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

    error while installing lomiri-systems-settings

    Scheduled Pinned Locked Moved Support
    23 Posts 4 Posters 2.9k 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.
      • N Offline
        nibzy26
        last edited by

        I used crossbuilder to build my changes in lomiri-systems-settings and it built arm64 based deb packages.But I am getting this error while installing them onto the phone

        Unpacking lomiri-system-settings (1.0.2+1local~1699268765) over (1.0.1+0~20231003095806.181+ubports20.04~1.gbp8b9442) ...
        dpkg: error processing archive lomiri-system-settings_1.0.2+1local~1699268765_arm64.deb (--install):
        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

        Although I did sudo mount -o rw,remount /

        lduboeufL 1 Reply Last reply Reply Quote 0
        • lduboeufL Offline
          lduboeuf @nibzy26
          last edited by

          @nibzy26 you can get rid of that by unmounting sudo umount /usr/share/session-migration/scripts

          N 1 Reply Last reply Reply Quote 0
          • CiberSheepC CiberSheep moved this topic from OS on
          • N Offline
            nibzy26 @lduboeuf
            last edited by nibzy26

            @lduboeuf said in error while installing lomiri-systems-settings:

            sudo umount /usr/share/session-migration/scripts

            @lduboeuf Thanks it solved one problem
            but now complaining about dependency issue

            setting up liblomirisystemsettingsprivate-dev:arm64 (1.0.2+1local~1699268765) ...

            dpkg: dependency problems prevent configuration of lomiri-system-settings:
            lomiri-system-settings depends on libdeviceinfo0 (>= 0.2.1+0~20231014230604.8+ubports20.04~1.gbp7e819c); however:
            Version of libdeviceinfo0 on system is 0.2.0+0~20230918210732.7+ubports20.04~1.gbp72afc4.

            dpkg: error processing package lomiri-system-settings (--install):
            dependency problems - leaving unconfigured

            I built these arm64 deb packages using crossbuilder

            also tried to install it like
            phablet@ubuntu-phablet:~/Documents$ sudo apt install libdeviceinfo0=0.2.1
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            E: Version '0.2.1' for 'libdeviceinfo0' was not found
            phablet@ubuntu-phablet:~/Documents$

            N lduboeufL 2 Replies Last reply Reply Quote 0
            • N Offline
              nibzy26 @nibzy26
              last edited by

              Alos getting low spce issue on the phone
              phablet@ubuntu-phablet:~/Documents$ df /
              Filesystem 1K-blocks Used Available Use% Mounted on
              /dev/mapper/system 3026216 3009728 0 100% /
              phablet@ubuntu-phablet:~/Documents$

              How can I make some space . I dint install any large packages yet.

              1 Reply Last reply Reply Quote 0
              • lduboeufL Offline
                lduboeuf @nibzy26
                last edited by

                @nibzy26 said in error while installing lomiri-systems-settings:

                @lduboeuf said in error while installing lomiri-systems-settings:

                sudo umount /usr/share/session-migration/scripts

                @lduboeuf Thanks it solved one problem
                but now complaining about dependency issue

                setting up liblomirisystemsettingsprivate-dev:arm64 (1.0.2+1local~1699268765) ...

                dpkg: dependency problems prevent configuration of lomiri-system-settings:
                lomiri-system-settings depends on libdeviceinfo0 (>= 0.2.1+0~20231014230604.8+ubports20.04~1.gbp7e819c); however:
                Version of libdeviceinfo0 on system is 0.2.0+0~20230918210732.7+ubports20.04~1.gbp72afc4.

                dpkg: error processing package lomiri-system-settings (--install):
                dependency problems - leaving unconfigured

                I built these arm64 deb packages using crossbuilder

                also tried to install it like
                phablet@ubuntu-phablet:~/Documents$ sudo apt install libdeviceinfo0=0.2.1
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                E: Version '0.2.1' for 'libdeviceinfo0' was not found
                phablet@ubuntu-phablet:~/Documents$

                Hum not sure about how to work around that dependency issue. But for Lomiri System Settings, we have to increase a version in debian changelog.

                lomiri-system-settings (1.0.4) unstable; urgency=medium
                
                  * test
                
                 -- UBports developers <developers@ubports.com>  Fri, 25 May 2023 07:55:10 +0100
                
                
                1 Reply Last reply Reply Quote 0
                • U Offline
                  uxes
                  last edited by

                  i think that i have a solution, since it is finally deployed on my phone now https://github.com/ubports/crossbuilder/pull/82

                  1 Reply Last reply Reply Quote 0
                  • danfroD Offline
                    danfro
                    last edited by

                    Did anyone use crossbuilder recently? When running it on lomiri-system -settings from crosbuilder main branch I get this error:

                    dh_auto_configure: error: cd obj-aarch64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g\+\+ -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DPKG_CONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config -DPKGCONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config -DQMAKE_EXECUTABLE=/usr/bin/aarch64-linux-gnu-qmake -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DENABLE_LIBDEVICEINFO=ON -DENABLE_UBUNTU_ACCOUNTSSERVICE=ON -DENABLE_TESTS=OFF .. returned exit code 1
                    make[1]: *** [debian/rules:35: override_dh_auto_configure] Error 2```
                    lduboeufL 1 Reply Last reply Reply Quote 0
                    • lduboeufL Offline
                      lduboeuf @danfro
                      last edited by

                      @danfro said in error while installing lomiri-systems-settings:

                      Did anyone use crossbuilder recently? When running it on lomiri-system -settings from crosbuilder main branch I get this error:

                      dh_auto_configure: error: cd obj-aarch64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g\+\+ -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DPKG_CONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config -DPKGCONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config -DQMAKE_EXECUTABLE=/usr/bin/aarch64-linux-gnu-qmake -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DENABLE_LIBDEVICEINFO=ON -DENABLE_UBUNTU_ACCOUNTSSERVICE=ON -DENABLE_TESTS=OFF .. returned exit code 1
                      make[1]: *** [debian/rules:35: override_dh_auto_configure] Error 2```
                      

                      I guess you try to build it for 24.04 if you are working on main branch.
                      Have you updated crossbuilder ?

                      danfroD 1 Reply Last reply Reply Quote 0
                      • danfroD Offline
                        danfro @lduboeuf
                        last edited by

                        @lduboeuf Yes, I updated crossbuilder from master branch. Is that already configured for noble? Ah, looks like it from the merged PR history. But how can I use it for focal builds then? Revert that PR?

                        U 1 Reply Last reply Reply Quote 0
                        • U Offline
                          uxes @danfro
                          last edited by uxes

                          @danfro i have been building from crossbuilders master branch last week,
                          crossbuilder --lxd-image=ubuntu:20.04 --architecture=arm64 build it still works, but seems only with arm64, amd build crashes

                          danfroD 2 Replies Last reply Reply Quote 0
                          • danfroD Offline
                            danfro @uxes
                            last edited by

                            @uxes Cool, thank. I will give that a try tonight. arm64 is sufficient for me for testing changes.

                            1 Reply Last reply Reply Quote 0
                            • danfroD Offline
                              danfro @uxes
                              last edited by

                              @uxes said in error while installing lomiri-systems-settings:

                              crossbuilder --lxd-image=ubuntu:20.04 --architecture=arm64 build

                              Sadly this did not fix my issues. I run into the same error message.

                              danfroD lduboeufL 2 Replies Last reply Reply Quote 0
                              • danfroD Offline
                                danfro @danfro
                                last edited by danfro

                                Hmm. I found this (kind of full error message):

                                # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
                                # So until Debian bug 719148 is fixed, do it ourselves.
                                dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var" -DENABLE_LIBDEVICEINFO=ON -DENABLE_UBUNTU_ACCOUNTSSERVICE=ON -DENABLE_TESTS=OFF
                                	cd obj-aarch64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g\+\+ -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DPKG_CONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config -DPKGCONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config -DQMAKE_EXECUTABLE=/usr/bin/aarch64-linux-gnu-qmake -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DENABLE_LIBDEVICEINFO=ON -DENABLE_UBUNTU_ACCOUNTSSERVICE=ON -DENABLE_TESTS=OFF ..
                                -- Could NOT find Lcov (missing: LCOV_EXECUTABLE GENHTML_EXECUTABLE) 
                                -- Could NOT find gcovr (missing: GCOVR_EXECUTABLE) 
                                -- Checking for module 'polkit-agent-1'
                                --   No package 'polkit-agent-1' found
                                CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
                                  A required package was not found
                                

                                But I guess those are not missing on my system, but in lxd image, right?

                                lduboeufL 1 Reply Last reply Reply Quote 0
                                • lduboeufL Offline
                                  lduboeuf @danfro
                                  last edited by

                                  @danfro said in error while installing lomiri-systems-settings:

                                  @uxes said in error while installing lomiri-systems-settings:

                                  crossbuilder --lxd-image=ubuntu:20.04 --architecture=arm64 build

                                  Sadly this did not fix my issues. I run into the same error message.

                                  Humm, and you are sure no old files are here ( like previous build for 20.04 ) ?

                                  danfroD 1 Reply Last reply Reply Quote 0
                                  • lduboeufL Offline
                                    lduboeuf @danfro
                                    last edited by

                                    @danfro said in error while installing lomiri-systems-settings:

                                    Hmm. I found this (kind of full error message):

                                    # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
                                    # So until Debian bug 719148 is fixed, do it ourselves.
                                    dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var" -DENABLE_LIBDEVICEINFO=ON -DENABLE_UBUNTU_ACCOUNTSSERVICE=ON -DENABLE_TESTS=OFF
                                    	cd obj-aarch64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g\+\+ -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DPKG_CONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config -DPKGCONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config -DQMAKE_EXECUTABLE=/usr/bin/aarch64-linux-gnu-qmake -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DENABLE_LIBDEVICEINFO=ON -DENABLE_UBUNTU_ACCOUNTSSERVICE=ON -DENABLE_TESTS=OFF ..
                                    -- Could NOT find Lcov (missing: LCOV_EXECUTABLE GENHTML_EXECUTABLE) 
                                    -- Could NOT find gcovr (missing: GCOVR_EXECUTABLE) 
                                    -- Checking for module 'polkit-agent-1'
                                    --   No package 'polkit-agent-1' found
                                    CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
                                      A required package was not found
                                    

                                    But I guess those are not missing on my system, but in lxd image, right?

                                    Yes maybe they need to be installed within the lxd container. Or something wrong with control dependency declaration

                                    danfroD 1 Reply Last reply Reply Quote 0
                                    • danfroD Offline
                                      danfro @lduboeuf
                                      last edited by

                                      @lduboeuf I even grabbed a brand new clone of lomiri-system-settings and tried with that to make sure there is no bug in my local copy.

                                      1 Reply Last reply Reply Quote 0
                                      • danfroD Offline
                                        danfro @lduboeuf
                                        last edited by

                                        @lduboeuf Can I do that via shell and then exit shell and run crossbuilder again?

                                        lduboeufL 1 Reply Last reply Reply Quote 0
                                        • lduboeufL Offline
                                          lduboeuf @danfro
                                          last edited by lduboeuf

                                          @danfro said in error while installing lomiri-systems-settings:

                                          @lduboeuf Can I do that via shell and then exit shell and run crossbuilder again?

                                          yes, it will persist, so sudo apt install libpolkit-agent-1-devshould do it. But if you build for arm64, iirc you have to append the arch, e.g `sudo apt install libpolkit-agent-1-dev:arm64

                                          danfroD 1 Reply Last reply Reply Quote 0
                                          • danfroD Offline
                                            danfro @lduboeuf
                                            last edited by

                                            @lduboeuf said in error while installing lomiri-systems-settings:

                                            sudo apt install libpolkit-agent-1-dev

                                            Hmm. That might be the problem:

                                            Err:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-dev amd64 2.64.6-1~ubuntu20.04.4
                                              404  Not Found [IP: 2620:2d:4000:1::102 80]
                                            Get:17 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpolkit-gobject-1-dev amd64 0.105-26ubuntu1.3 [59.9 kB]
                                            Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpolkit-agent-1-dev amd64 0.105-26ubuntu1.3 [22.2 kB]
                                            Err:3 http://security.ubuntu.com/ubuntu focal-updates/main amd64 uuid-dev amd64 2.34-0.1ubuntu9.3
                                              404  Not Found [IP: 2620:2d:4000:1::102 80]
                                            Err:4 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libblkid-dev amd64 2.34-0.1ubuntu9.3
                                              404  Not Found [IP: 2620:2d:4000:1::102 80]
                                            Err:5 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libmount-dev amd64 2.34-0.1ubuntu9.3
                                              404  Not Found [IP: 2620:2d:4000:1::102 80]
                                            
                                            
                                            danfroD 1 Reply Last reply Reply Quote 0
                                            • danfroD Offline
                                              danfro @danfro
                                              last edited by

                                              @danfro Ah, forgot the arch. 😉

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