-
-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apt upgrade shows error "sources disagree on hashes for supposedly identical version" #1048
Comments
Thanks for reporting this issue. I suspect this is the problem:
Evidence supporting this hypothesis: The amd64 packages list lists quick-lint-js-vim_*.deb for both amd64 and arm64:
I'll see what I can do to fix it. |
Our current apt pool file structure looks like this:
I think apt-ftparchive cannot handle this structure well if we want to segregate by
Thinking about it more, I'm not convinced this will fix the warning. OP's sources.list mentions If duplicates are still a problem after the pool restructuring, then one possible fix is to delete the quick-lint-js-vim package from one of the architectures. Ugly. Another possible fix is to make the packages bit-identical. (They have different hashes for some reason. Perhaps there are timestamps somewhere.) This won't work for old versions (because I don't want to modify old versions), but it might fix the duplicate-package warnings going forward. |
Based on this I tried removing the arm64 arch since I don't need the arm package but the same warning showed. In the meantime I've run the following so that I can update other packages without the warning: apt-mark hold quick-lint-js quick-lint-js-vim |
binary-amd64/Packages and binary-arm64/Packages both have entries for the quick-lint-js-vim package. I want there to be one listing of the quick-lint-js-vim package for either architecture in case you write [arch=amd64,arm64] in your sources.list. Move the quick-lint-js-vim package into the binary-all/Packages file. With this patch, because there are two bit-differing copies of quick-lint-js-vim for 2.14.0 and 2.15.0, 'apt install quick-lint-js' complains: > W: Sources disagree on hashes for supposely identical version > '2.15.0-1' of 'quick-lint-js-vim:amd64'. This warning was already issued if your sources.list included [arch=amd64,arm64]. Now, the warning is issued even if your sources.list includes only [arch=amd64] or [arch=arm64]. This issue will be fixed in a future commit. This is a step toward fixing #1048.
I pushed a fix to the apt repository (commits 570eaa0 and 226e84b). @RossBarnie Can you please un-hold the packages and see if the original problem occurs? |
@strager That's fixed it for me, upgrade went through without any warnings, thanks very much. |
Environment:
Ubuntu 22.04 in WSL2
Apt source for quick-lint-js:
Note this does deviate from the provided install instructions to get around the apt-key deprecation warning as reported in #1041 but has not been a problem before today. Last update was approximately a week ago.
Steps:
apt update && apt upgrade
Expected:
Actual:
I'm not clear on the source of the warning but given that my environment hasn't changed and that I only have one source for quick-lint-js, I believe it's something on the apt repo end rather than mine.
The text was updated successfully, but these errors were encountered: