question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WinGet - Failed to install as Administrator (Hash Mismatch)

See original GitHub issue

System information:

  • Operating system: Windows 11 (Build 22000.376)
  • DBeaver version: 21.3.0.202111281534 (Not Latest)
  • Additional extensions: N/A

Connection specification:

  • Database name and version: N/A
  • Driver name: N/A
  • Do you use tunnels or proxies (SSH, SOCKS, etc)?: N/A

Describe the problem you’re observing:

When attempting to install / update DBeaver using winget command line utility, an error is encountered. The downloaded installer hash does not match the hash provided in DBeaver’s winget repository entry.

Steps to reproduce, if exist:

  1. Launch PowerShell / Windows Terminal as Administrator.
  2. Execute winget upgrade --id "dbeaver.dbeaver" (or, in my case, winget upgrade --all)
  3. winget downloads the installer successfully.
  4. Installation is skipped because the installer hash did not match, and winget will not bypass hash checks when running as Administrator.

Include any warning/errors/backtraces from the logs

Here is a screenshot from the output of winget: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Matvey16commented, Jan 26, 2022

@ooobii Thank you for the report, this happened because we implemented a hotfix after a release but the version number remained the same. This should be fixed now, because version 21.3.3 was released

1reaction
ooobiicommented, Jan 10, 2022

I used chocolatey and it did work. I used choco install dbeaver -y.

I will use this for the time being - hash checks in choco match! Thanks, @mattcargile 👍🏼

But, the problem with winget still remains and should be corrected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot override installer hash as admin. Even if EnableLua ...
Yes, when I use --force I get the following error still: "Installer hash does not match; this cannot be overridden when running as...
Read more >
Use the winget tool to install and manage applications
The winget command line tool enables developers to discover, install, upgrade, remove and configure applications on Windows computers.
Read more >
Windows package manager installation error - Support
the windows package manager offers a mp3tag installation but that is not working quite right C:\Users\typ_xxi\Downloads>winget install ...
Read more >
Install Uninstall Apps From Windows Package Manager Using ...
Let's try to understand Uninstallation Error with WinGet Tool on Windows PCs. The WinGet uninstall command doesn't seem to work on Windows 10 ......
Read more >
Need help installing WinGet : r/MDT - Reddit
I ran my script post sequence and winget is then registered but I still get an immediate install hash error. Could be group...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found