Open changhe3 opened 2 years ago
update-crypto-policies --set DEFAULT:SHA1
fix the problem temporarily but the problem persists when you need to import another key.
Are you using WSL version 1? You can always run DNF with the --nogpgcheck
parameter to skip GPG key checks.
Also, you can try the solutions described in:
switch to wsl 2 fixes the issue, but for wsl 1 aforementioned "solution" doesn't really seem to do anything since I can sort of "fix" the problem even just by killing the dnf process and restart it. It's super weird...
one possible workaround (if you are stuck with WSL1) is to comment out gpgcheck=1
in /etc/dnf/dnf.conf
.