Bug 500431 - F-droid - hash error
Summary: F-droid - hash error
Status: RESOLVED NOT A BUG
Alias: None
Product: kasts
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.2
Platform: Other Android 13.x
: NOR normal
Target Milestone: ---
Assignee: bart
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-19 19:59 UTC by roel
Modified: 2025-02-21 20:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Error f-droid: Download failed! Hash not matching (273.44 KB, image/jpeg)
2025-02-20 15:38 UTC, roel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description roel 2025-02-19 19:59:13 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
When I try to install kstst through f-droid, I get the error "Hash not matching"

STEPS TO REPRODUCE
1. Install through F-droid on a android device

OBSERVED RESULT
Error message "Hash not matching"

EXPECTED RESULT
Kasts should install.

SOFTWARE/OS VERSIONS
Android 13 one UI (Samsung)
Comment 1 bart 2025-02-20 09:08:53 UTC
Sorry, I can't seem to reproduce this. I've tried the version from the KDE release and testing repo in fdroid, and both work for me.

Are you retrieving the app from KDE release repo?  Or from elsewhere?

Maybe it helps to completely uninstall Kasts and then install it again. But, as a disclaimer, that will wipe all app data, so make sure to back up your data or sync through gpodder/nextcloud before uninstalling.
Comment 2 roel 2025-02-20 11:10:38 UTC
Hallo Bart,

I added the KDE release repo to f-droid.  I installed also Elisa and this one installed OK.  I will add the testing repo, maybe it will work there.
Comment 3 bart 2025-02-20 13:48:04 UTC
Hi Koen,

You don't really need to install the testing repo if you don't want to.  The stable repo should give you a more stable experience, so I wouldn't advice the testing repo unless you really want to help test the app.
I've switched from the testing version to the stable repo this morning to check the issue, and for me the app installed without any problems. So I'd still like to know what's wrong here.

One possible explanation is that the repository itself was not recently updated/refreshed, so it was expecting a binary with a different hash (from the older version). I have been making lots of bugfixes on the stable version over the last couple of days, so I wouldn't be surprised.
So, assuming you want the stable version, could you add that repo again, make sure to refresh the list of apps and then try to install it again?

If it still doesn't work, could you perhaps share a screenshot of the error?
Comment 4 roel 2025-02-20 15:38:50 UTC
Created attachment 178638 [details]
Error f-droid: Download failed! Hash not matching
Comment 5 roel 2025-02-20 15:40:38 UTC
Bart,

I can install from testing but stable still gives me the error message.
Comment 6 bart 2025-02-20 15:52:49 UTC
Thanks for the update.

Looking at the screenshot, I have the impression that your repository metadata is outdated: it says "last update 4 days ago", but on my device it's showing "last update 1 day ago".  I don't know fdroid well enough so I don't know 100% how to trigger a repo metadata update, but I think it will do that if you pull down (i.e. refresh) on the "updates" tab.  If you go into the app install screen, it should show the latest version to be from Feb 19th.
The expected error is that it's trying to compare the current downloaded package (from Feb 19th) to the hash it got for the version from 4 days ago. These will obviously not match.
Comment 7 roel 2025-02-20 16:10:22 UTC
I don't know, I just refreshed for updated and I had to update 4 apps, but Kasts stays on 4 days ago from 16 feb.  On the nightly repo the last one is from yesterday.  Nevermind, nightly works, so I will use nightly.
Comment 8 roel 2025-02-20 16:42:30 UTC
OK, I found the problem.  When I checked the kde repo (click on repo and then on the apps in this repo) it mentioned the version from yesterday.  But if wanted to install this one it jumped back to the 4 days old one.  So it should be there is also a version available through the f-rdoid repo.  When I put the KDE repo above the f-droid repo, then f-droid takes the version from the kde repo to install.
Comment 9 bart 2025-02-21 20:29:08 UTC
Glad that the issue is solved?

I don't think there is another version in the fdroid repo. There might be one in another repo, or maybe fdroid simply has a bug triggered by repo preference. In any case, it seems to be clear that the actual package download does work.

I'll close this issue now. Thanks for reporting anyway. It's better to know about potential issues, even if they turn out to be out of our hands in the end.