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

    ubports-qa update

    Scheduled Pinned Locked Moved Xiaomi Redmi Note 7
    23 Posts 7 Posters 3.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.
      • K Offline
        kugiigi
        last edited by

        ubports-qa update is the same as using apt to update. It just automates things like remounting root as RW. As already mentioned, apt isn't the proper way to update the system. Although you can technically use it, there's a possibility that the updates will break your system just like what happened to you. If I am not mistaken the apt repos contain developmental packages so if you are on stable channel, there may be a greater chance to break your system since you are installing stuffs that are only compatible with the devel channel. Actually, there was a recent update in devel that broke it but it is fixed now. In my case, I use ubports-qa update to fix my system and maybe in your case, it broke yours šŸ™‚

        1 Reply Last reply Reply Quote 1
        • M Offline
          Markatrafik
          last edited by

          Dear UBports developers and contributors, the fact is that security updates can be released quite often. I myself have to backport security patches fixing CVEs, for example from Debian 10 to earlier versions, or by myself, because the developers and maintainers don't have time to do it. Here, however, the system not only didn't let me install the security updates, it also crashed during the system update.

          K 1 Reply Last reply Reply Quote 0
          • M Offline
            Markatrafik
            last edited by

            Unfortunately ubports-installer doesn't handle a lot of errors, doesn't let you fix them and gives little debugging, often coming "Oops... " and that's it, nothing useful on stdout either. Tried it on Debian 9, both with Ubuntu deb package and with snapd. In the last case, everything seemed to go well, ubports-installer wrote the firmware through fastboot and sent the phone to reboot. After that it stood up on the start screen. I had to overwrite the boot loader and all the other partitions over TWRP. The phone is new from the box, unloked out of the box, with Android 9, I buy it especially to test your project. šŸ™‚

            1 Reply Last reply Reply Quote 0
            • K Offline
              kugiigi @Markatrafik
              last edited by

              @markatrafik Hotfix OTA update can be released if there's an urgent security fix. You may raise the security issue to the core team and they will decide if it's worth a quick release.

              As for the UBports installer, it is continuously improving but of course it's still not perfect. Contributions are greatly welcome and appreciated šŸ™‚

              stanwoodS 1 Reply Last reply Reply Quote 1
              • M Offline
                Markatrafik
                last edited by

                And yet... can you tell me how to install, within the concept of UBports, some deb application from apt repository or just a deb package with dpkg? Is it necessary to remount the partition in r/w? Or is this considered a non-standard action on the end device and could break the system? - this is unfortunate, would cool to be able to do this.

                Thank you so much for doing a good job!
                I hope to be able to help you in some way in the future.

                KenedaK 1 Reply Last reply Reply Quote 0
                • KenedaK Offline
                  Keneda @Markatrafik
                  last edited by

                  @markatrafik said in ubports-qa update:

                  And yet... can you tell me how to install, within the concept of UBports, some deb application from apt repository or just a deb package with dpkg? Is it necessary to remount the partition in r/w? Or is this considered a non-standard action on the end device and could break the system?

                  Yes to use apt you need to make the system r/w.
                  Yes it is considered as a non-standard action.
                  Yes, depending on what you do, you can break system or OTA updates.

                  But if you know what you do, if you well know Ubuntu Touch, that can be no problem.

                  Recently i did that (r/w + apt) because @Flohack, a core dev, needed some infos from my device (from evtest tool), but i did this under his knowledge, knowing that he wouldn't make me brake my system.

                  In normal use, i stay in the standard use of the system, because i don't have skill to step out of it, and it is my daily driver so i don't want to mess with it.

                  2015-2023 : Meizu MX4 ā˜ ļøāš°ļøāœļø
                  2023-2024 : Nexus 5 ā˜ ļøāš°ļøāœļø
                  2024-***** : FPOS Fairphone 5 waiting UT for freedom šŸ˜‰
                  šŸ‡²šŸ‡«šŸ‡¬šŸ‡§

                  M 2 Replies Last reply Reply Quote 0
                  • stanwoodS Offline
                    stanwood @kugiigi
                    last edited by

                    @kugiigi I Confirm that UBports Installer (0.8.7 Beta on Ubuntu 20.04.2) works pretty well with Redmi Note 7:

                    UBports intaller redmi note 7 1.jpg

                    UBports installer Redmi Note 7 2.jpg

                    Redmi Note 9S Stable
                    If God has a computer, it must be a GNU/Linux

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Markatrafik @Keneda
                      last edited by

                      @keneda let's just say, probably not always so... since I tried it on different machines under Debian 9, and there was always a problem. I was run it from under an unprivileged user, maybe it was necessary to run from under the root? Maybe I needed to add a user to the dialout group or make symlinks to adb and fastboot? Okay, next time, I'll try again with logs and screenshots... Sorry...

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        Markatrafik @Keneda
                        last edited by Markatrafik

                        But if you know what you do, if you well know
                        Ubuntu Touch, that can be no problem.

                        As I understand it, I need to take old deb packages witch compatible to installed, which will not entail by dependencies and the need to replace libraries. Some libraries may pull dependencies of other packages, which in turn may break the system. Or to build static packages of what I need with debhelper etc... Just, I was hoping there was a standard way to install a number of simple shell standalone applications and utilities that would not affect dbus/systemd, udev, networking, vendor stuff and so on.
                        And No, Ubuntu Touch I do not know well enough, but I plan to look at the project. However I know Linux since kernel 0.0.99 and Debian since 1.2/rex šŸ™‚ desktop Ubuntu, some other Un*x systems, slightly Android.

                        AppLeeA 1 Reply Last reply Reply Quote 0
                        • AppLeeA Offline
                          AppLee @Markatrafik
                          last edited by

                          @markatrafik
                          Hi using APT is not standard on Ubnutu Touch, the standard way is to use click packages.

                          You can use sofwares packaged as .deb and repackaged them into a click.
                          If they are simple CLI than I think it won't be hard to include the necessary libraries into a click package.
                          This click can then be uploaded to the Open Store and be made available to all.

                          Of course on mobile, a nice GUI is always welcome šŸ˜‰

                          1 Reply Last reply Reply Quote 1
                          • M Offline
                            Markatrafik
                            last edited by Markatrafik

                            And, what about pkcon utility? It reports that over ~ 15 repositories are connected to it. But when you try to install, for example, mc - it crashes. Did this tool come from the Canonical and must not be used?

                            dobeyD 1 Reply Last reply Reply Quote 0
                            • dobeyD Offline
                              dobey @Markatrafik
                              last edited by

                              @markatrafik The supported method for installing legacy and CLI apps from the Ubuntu archive, is via a Libertine container.

                              1 Reply Last reply Reply Quote 1
                              • M Offline
                                Markatrafik
                                last edited by Markatrafik

                                Without ubports-qa update, all seems to be ok...
                                ~$ sudo bash
                                ~# mount -o remount,rw /
                                ~# apt-get install joe
                                ~# sync
                                ~# mount -o remount,ro /
                                ~# reboot
                                System is booting, working, and no errors in logs...
                                Btw, ubports-qa - simple python script, with some manipulation with repos. But, you think, that such actions are contrary to the concept? And I need to compile a static binary together with these libraries?! and then wrap it in a package manager "click" to drop it in /opt ? No, of course, I'll probably do it that way too... but later šŸ™‚

                                M KenedaK 2 Replies Last reply Reply Quote 0
                                • M Offline
                                  Markatrafik @Markatrafik
                                  last edited by

                                  phablet@ubuntu-phablet:~$ ldd $(which joe)
                                  linux-vdso.so.1 => (0x000000707013a000)
                                  libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007070050000)
                                  libtinfo.so.5 => /lib/aarch64-linux-gnu/libtinfo.so.5 0x000000707001a000)
                                  libutil.so.1 => /lib/aarch64-linux-gnu/libutil.so.1 (0x0000007070007000)
                                  libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x000000706fec1000)
                                  /lib/ld-linux-aarch64.so.1 (0x000000707010f000)

                                  1 Reply Last reply Reply Quote 0
                                  • KenedaK Offline
                                    Keneda @Markatrafik
                                    last edited by

                                    @markatrafik said in ubports-qa update:

                                    But, you think, that such actions are contrary to the concept?

                                    Fact is, when you'll update your phone, you'll loose any "apt" modifications you did.

                                    2015-2023 : Meizu MX4 ā˜ ļøāš°ļøāœļø
                                    2023-2024 : Nexus 5 ā˜ ļøāš°ļøāœļø
                                    2024-***** : FPOS Fairphone 5 waiting UT for freedom šŸ˜‰
                                    šŸ‡²šŸ‡«šŸ‡¬šŸ‡§

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Markatrafik @Keneda
                                      last edited by

                                      @keneda Well... I'll remember a couple of tools šŸ™‚ But! I will listen to your opinion, because I understand that you know what you are advising, as I am not the first day in IT ...

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