Unable to update

, ,

I am unable to dnf update due to the following error:

Running transaction check
error: rpmdbNextIterator: skipping h#    1872 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
error: rpmdbNextIterator: skipping h#    1872 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
Error: transaction check vs depsolve:
libjpeg.so.62()(64bit) is needed by libgs-9.55.0-1.fc34.x86_64
libjpeg.so.62(LIBJPEG_6.2)(64bit) is needed by libgs-9.55.0-1.fc34.x86_64
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

I tried the recommended solutions but the RPMDB rebuild didn’t work and I didn’t understand the digest output:
To diagnose the problem, try running: ‘rpm -Va --nofiles --nodigest’.
You probably have corrupted RPMDB, running ‘rpm --rebuilddb’ might fix the issue.

Anyone know how to fix this? Thank you.

Hi, @fedoradev
You did follow the two given possibilities? :grinning:

To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
1 Like

Yes, I tried all of the suggestions but they didn’t work.

I tried to diagnose the problem with the recommended command but I did not understand the output.

Rebuilding the RPMDB did not work. I also cleaned the packages.

I could paste the diagnostic command output but it is quite large.

What about
sudo dnf provides "libjpeg.so.62(LIBJPEG_6.2)(64bit)"
rpm -qa | grep libjpeg-turbo
rpm -qa | grep libgs-

1 Like
sudo dnf provides "libjpeg.so.62(LIBJPEG_6.2)(64bit)"
Last metadata expiration check: 0:13:42 ago on Fri 22 Oct 2021 11:46:47 AM EDT.
libjpeg-turbo-2.0.90-2.fc34.x86_64 : A MMX/SSE2/SIMD accelerated library for manipulating JPEG image files
Repo        : fedora
Matched from:
Provide    : libjpeg.so.62(LIBJPEG_6.2)(64bit)

libjpeg-turbo-2.0.90-3.fc34.x86_64 : A MMX/SSE2/SIMD accelerated library for manipulating JPEG image files
Repo        : @System
Matched from:
Provide    : libjpeg.so.62(LIBJPEG_6.2)(64bit)

libjpeg-turbo-2.0.90-3.fc34.x86_64 : A MMX/SSE2/SIMD accelerated library for manipulating JPEG image files
Repo        : updates
Matched from:
Provide    : libjpeg.so.62(LIBJPEG_6.2)(64bit)
rpm -qa | grep libjpeg-turbo
error: rpmdbNextIterator: skipping h#    1333 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
error: rpmdbNextIterator: skipping h#    1872 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
rpm -qa | grep libgs-
error: rpmdbNextIterator: skipping h#    1333 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
libgs-9.54.0-2.1.fc34.x86_64
error: rpmdbNextIterator: skipping h#    1872 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK

1 Like

Whoops. Didn’t spotted that before.

What is the output of
rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'

rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'
gpg-pubkey-45719a39-5f2c0192 --> Fedora (34) <fedora-34-primary@fedoraproject.org> public key
gpg-pubkey-d651ff2e-5dadbbc1 --> RPM Fusion free repository for Fedora (2020) <rpmfusion-buildsys@lists.rpmfusion.org> public key
gpg-pubkey-61a7c71d-55740c4b --> Zoom Video Communcations, Inc. Linux Package Signing Key <linux-package-signing-key@zoom.us> public key
gpg-pubkey-a989a402-5f720f55 --> name_OpenRGB (None) <name#OpenRGB@copr.fedorahosted.org> public key
gpg-pubkey-50db096c-5fb5019b --> IVPN Signing Key <admin@ivpn.net> public key
gpg-pubkey-94843c65-5dadbc64 --> RPM Fusion nonfree repository for Fedora (2020) <rpmfusion-buildsys@lists.rpmfusion.org> public key
gpg-pubkey-c2d4e821-5e7252b8 --> Brave Software <support@brave.com> public key

But sudo rpm --rebuilddb doesn’t output anything?

1 Like

I just tried it again, and it provides no output.

Btw, apart this error, it seems that libgs is installed

While libjpeg-turbo is not

I don’t know. What happens if you try to install it?
sudo dnf install libjpeg-turbo

Package libjpeg-turbo-2.0.90-3.fc34.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Could be a key error. (BAD is a bad sign) :heart_eyes:
some packages need a key.
import repos anew, with new keys?

1 Like

I don’t know how to import new repos and keys. Any ideas?

@fedoradev it is in Adding or removing software repositories in Fedora :: Fedora Docs
In the same docs is something on RPM Fusion repositories.

Are you suggesting removing all repos and then add them again?

only the one(s) that cause problems.

I am unable to decipher which ones cause problems.

@fedoradev just asking.
did you try sudo dnf install libjpeg ?
did you try sudo rpm -U sudo rpm -U https://www.rpmfind.net/linux/fedora/linux/updates/testing/35/Everything/x86_64/Packages/l/libjpeg-turbo-2.1.0-3.fc35.x86_64.rpm
This links is for F35 x86_64. You should find the right link in RPM resource libjpeg (right collumn “Download”

dnf instll libjpeg just stated it was already installed.

sudo rpm -U https://www.rpmfind.net/linux/fedora/linux/releases/33/Everything/x86_64/os/Packages/l/libjpeg-turbo-2.0.5-5.fc33.x86_64.rpm
warning: /var/tmp/rpm-tmp.qwtvJN: Header V4 RSA/SHA256 Signature, key ID 9570ff31: NOKEY
error: rpmdbNextIterator: skipping h#    1872 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
error: rpmdbNextIterator: skipping h#    1872 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
error: rpmdbNextIterator: skipping h#    1872 
Header V4 RSA/SHA256 Signature, key ID 45719a39: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
        file /usr/lib64/libjpeg.so.62.3.0 from install of libjpeg-turbo-2.0.5-5.fc33.x86_64 conflicts with file from package libjpeg-turbo-2.0.90-3.fc34.x86_64
        file /usr/share/doc/libjpeg-turbo/ChangeLog.md from install of libjpeg-turbo-2.0.5-5.fc33.x86_64 conflicts with file from package libjpeg-turbo-2.0.90-3.fc34.x86_64
        file /usr/share/doc/libjpeg-turbo/README.ijg from install of libjpeg-turbo-2.0.5-5.fc33.x86_64 conflicts with file from package libjpeg-turbo-2.0.90-3.fc34.x86_64
        file /usr/share/doc/libjpeg-turbo/README.md from install of libjpeg-turbo-2.0.5-5.fc33.x86_64 conflicts with file from package libjpeg-turbo-2.0.90-3.fc34.x86_64

Since alot of those files are from Fedora 33 you should check out DNF System Upgrade :: Fedora Docs and scroll to the part on how to remove the conflicting files and rebuild the database.