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

    uAdBlockNG doesn't work with 24.04-1.x stable

    Scheduled Pinned Locked Moved Solved Fairphone 3
    11 Posts 3 Posters 871 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.
      • M Offline
        muskist
        last edited by muskist

        Ever since upgrading to 24.04:

        When enabling the app it gives the message "Error".

        The last lines of the log read:

        25.02.26 10:25] Cannot write to ‘/etc/hosts.blocklist’ (Success).
        [25.02.26 10:25] pam_unix(sudo:session): session closed for user root
        [25.02.26 10:25] file:///opt/click.ubuntu.com/uadblockng.liohmoeller/1.1/share/qml/uAdBlockNG/Main.qml:146:13: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.
        

        Same issue is reported on OpenStore but on https://github.com/LiohMoeller/uAdBlockNG/issues there is no issues mentioned.

        Am I missing something? Is there a workaround?

        TIA!

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          gpatel-fr @muskist
          last edited by

          @muskist

          probably the app is missing this PR

          maybe create an issue to point to the maintainer that it is an active problem ?

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            muskist @gpatel-fr
            last edited by

            @gpatel-fr
            Even creating an issue is impossible:

            Error
            Unable to create issue.
            
            G 1 Reply Last reply Reply Quote 0
            • G Offline
              gpatel-fr @muskist
              last edited by

              @muskist

              what kind of browser do you use ? is it the old Morph Browser or the new QT6 Beta ?

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                muskist @gpatel-fr
                last edited by

                @gpatel-fr

                Mozilla Firefox 148.0 on my Linux PC.

                G 1 Reply Last reply Reply Quote 0
                • G Offline
                  gpatel-fr @muskist
                  last edited by

                  @muskist

                  yes, the repo owner has disabled the issues 😞

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    muskist @gpatel-fr
                    last edited by

                    @gpatel-fr

                    Too bad. I consider it a PITA on the small display of my device.

                    Thanks for your replies anyway.

                    1 Reply Last reply Reply Quote 0
                    • mihaelM Offline
                      mihael
                      last edited by

                      It was my problem too and it was because there was not enough space in /etc partition. What I did was to create a symlink /etc/hosts.blocklist -> /home/phablet/Downloads/hosts.blocklist (maybe I had to create first the /home/phablet/Downloads/hosts.blocklist file and then the symlink but I don't remember) and then uAdBlockNG worked.

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        muskist @mihael
                        last edited by

                        @mihael
                        Thanks for that tip. Unfortunately it didn't work out.

                        Logs read:

                        
                        100% 5,90M=21s
                        [25.02.26 23:17] 2026-02-25 23:17:43 (1,90 MB/s) - ‘/etc/hosts.blocklist’ saved [41546183/41546183]
                        [25.02.26 23:17] pam_unix(sudo:session): session closed for user root
                        [25.02.26 23:17] qml: next cp /etc/hosts /etc/hosts.without-adblock
                        [25.02.26 23:17]  phablet : PWD=/opt/click.ubuntu.com/uadblockng.liohmoeller/1.1 ; USER=root ; COMMAND=/usr/bin/cp /etc/hosts /etc/hosts.without-adblock
                        [25.02.26 23:17] pam_unix(sudo:session): session opened for user root(uid=0) by phablet(uid=32011)
                        [25.02.26 23:17] pam_unix(sudo:session): session closed for user root
                        [25.02.26 23:17] qml: next cp /etc/hosts.blocklist /etc/hosts
                        [25.02.26 23:17]  phablet : PWD=/opt/click.ubuntu.com/uadblockng.liohmoeller/1.1 ; USER=root ; COMMAND=/usr/bin/cp /etc/hosts.blocklist /etc/hosts
                        [25.02.26 23:17] pam_unix(sudo:session): session opened for user root(uid=0) by phablet(uid=32011)
                        [25.02.26 23:17] cp: error writing '/etc/hosts': No space left on device
                        [25.02.26 23:17] pam_unix(sudo:session): session closed for user root
                        [...]
                        

                        I even added two symlinks for /etc/hosts
                        and /etc/hosts.without-adblock targeting /home/phablet/Downloads. No success, however.

                        mihaelM 1 Reply Last reply Reply Quote 0
                        • mihaelM Offline
                          mihael @muskist
                          last edited by

                          @muskist If you ls -l /etc what do you get? - I checked on my phone and I get (among many other lines):
                          hosts -> /home/phablet/Downloads/hosts
                          hosts.blocklist -> /home/phablet/Downloads/hosts.blocklist

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            muskist @mihael
                            last edited by

                            @mihael

                            I had another try after uninstalling and reinstalling uAdBlockNG and creating symlinks like this:

                            root@ubuntu-phablet:/etc# ls -l hosts*
                            lrwxrwxrwx 1 root root  29 Feb 26 16:49 hosts -> /home/phablet/Downloads/hosts
                            
                            lrwxrwxrwx 1 root root  39 Feb 26 16:07 hosts.blocklist -> /home/phablet/Downloads/hosts.blocklist
                            [...]
                            

                            and it worked out fine! I must have made a mistake before when creating the symlinks.

                            Thanks for your help!

                            1 Reply Last reply Reply Quote 0
                            • M muskist marked this topic as a question
                            • M muskist has marked this topic as solved

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • First post
                              Last post