topazus
(purpleman)
December 2, 2022, 12:51pm
1
I want to remove google chrome package. But I got the following error, after some googling and I do not find a method to solve it.
$ sudo dnf rm google-chrome-stable
[sudo] password for ruby:
Dependencies resolved.
==================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================
Removing:
google-chrome-stable x86_64 107.0.5304.110-1 @google-chrome 300 M
Removing unused dependencies:
liberation-fonts noarch 1:2.1.5-3.fc37 @rawhide 0
Transaction Summary
==================================================================================================================================================
Remove 2 Packages
Freed space: 300 M
Is this ok [y/N]: y
Running transaction check
error: rpmdbNextIterator: skipping h# 2135
Header V4 DSA/SHA1 Signature, key ID 7fac5991: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
Error: An rpm exception occurred: package not installed
td211
(A. Ismail)
December 2, 2022, 1:29pm
2
This is an indicator that your rpmdb is probably corrupt.
Try rebuilding your rpm database: sudo rpm --rebuilddb
1 Like
It is possible that the font package is not installed.
You could try that with the --noautoremove
option to skip the font package and see what it tells you then. The font package comes from fedora and chrome comes from google.
BTW, I just moved one system to F37 last night and it shows
google-chrome-stable x86_64 108.0.5359.71-1 @google-chrome 301 M
straycat
(Tim G)
December 2, 2022, 2:21pm
4
If you installed it from the google repo you can open gnome software and remove it from there.
topazus
(purpleman)
December 2, 2022, 3:04pm
5
I tried and remove chrome, still the same error
ruby: ~
$ sudo rpm --rebuilddb
[sudo] password for ruby:
ruby: ~
$ sudo rpm --rebuilddb -v
ruby: ~
$ sudo dnf rm google-chrome-stable
Dependencies resolved.
==================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================
Removing:
google-chrome-stable x86_64 107.0.5304.110-1 @google-chrome 300 M
Removing unused dependencies:
liberation-fonts noarch 1:2.1.5-3.fc37 @rawhide 0
Transaction Summary
==================================================================================================================================================
Remove 2 Packages
Freed space: 300 M
Is this ok [y/N]: y
Running transaction check
error: rpmdbNextIterator: skipping h# 1393
Header V4 DSA/SHA1 Signature, key ID 7fac5991: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
Error: An rpm exception occurred: package not installed
$ sudo dnf remove google-chrome-stable --noautoremov
Dependencies resolved.
==================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================
Removing:
google-chrome-stable x86_64 107.0.5304.110-1 @google-chrome 300 M
Transaction Summary
==================================================================================================================================================
Remove 1 Package
Freed space: 300 M
Is this ok [y/N]: y
Running transaction check
error: rpmdbNextIterator: skipping h# 1393
Header V4 DSA/SHA1 Signature, key ID 7fac5991: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
Error: An rpm exception occurred: package not installed
td211
(A. Ismail)
December 2, 2022, 4:09pm
6
Try reinstalling the chrome package from google. Maybe it is missing a key?
That was going to be my suggestion. Do a reinstall of google-chrome-stable so the rpm database is up to date, then remove it.
That last message specifically told you it has a bad key.
grumpey
(Joe Walker)
December 2, 2022, 4:40pm
8
Take a look at the recovery steps here, rpm.org - RPM Database Recovery
marko23
(Markos Malliarakis)
December 2, 2022, 4:51pm
9
You can either install Google-Chrome creating a specif repository or download an .rpm package that creates the repository allowing updates : either way is fully documented on their website. Youâre reporting error from DNF package manager, remove specific repository file in /etc/yum.repos.d with console command rm. After, to keep yourself reassured, run âdnf clean allâ.
qulogic
(Elliott Sales de Andrade)
December 5, 2022, 4:20am
10
Youâre on Rawhide; you need to follow the development and/or QA mailing lists more closely. https://docs.fedoraproject.org/en-US/releases/rawhide/#_discussing_rawhide Ask is for stable releases only.
This is why a lot of answers are somewhat incorrect guesses. The problem here is that Google still uses the insecure SHA1 hashes and Rawhide rpm is more strict. You will need to loosen up your crypto policies to allow it to process the chrome rpm:
sudo update-crypto-policies --set LEGACY
3 Likes
casep
(Carlos Sepulveda)
December 5, 2022, 2:49pm
11
This did the trick for me, cheers mate
kkapp
(Alex Kapranoff)
December 30, 2022, 8:30pm
12
(adding information for people searching for solutions)
The official âcodeâ packages (Visual Studio Code, vscode) have the same problem and it can also be worked around with the command Elliott provided.