Fedora dnf update did not working?

Asked
Active3 hr before
Viewed126 times

5 Answers

update
90%

well thank you again for the effort, but my dnf-3 is still broken after applying your commands with dnf2,No it is not. Python3 is default now. Hence, your system is broken and has issues that we need to fix. SImply using dnf-2 is not the solution here.,get more information on issue,This is the right order of doing things:

The best way is to fix the original issue.
Check the output:

sudo rpm--rebuilddb
sudo dnf - 2 clean all
sudo dnf - 2 check all
sudo dnf - 2 repolist
sudo dnf - 2 distrosync
load more v
88%

The problem is that dnf update command fails with the following error:,Deleting the files will not resolve the issue, because the rpmdb will still think there is a conflict.,I find it strange that it's trying to install an older version of that package. I ran dnf update earlier today and it never tried to install that pacakge on my system. Do you have any non-stock repos other than RPM Fusion added? Maybe try disabling them if you do.,For me now the solution is to add --exclude=expat-2.4.1-1.fc34.i686 to dnf update command.

The problem is that dnf update command fails with the following error:

Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
   file / usr / share / doc / expat / Changes from install of expat - 2.4 .1 - 1. fc34.i686 conflicts with file from package expat - 2.2 .10 - 2. fc34.x86_64
file / usr / share / man / man1 / xmlwf .1.gz from install of expat - 2.4 .1 - 1. fc34.i686 conflicts with file from package expat - 2.2 .10 - 2. fc34.x86_64
load more v
72%

This method did not solve the problem,I had the same problem. Running rm -f /var/lib/rpm/__db* and then yum update, solved this.,I had the same problem. Running rm -f /var/lib/rpm/__db* and then dnf update, solved this.,dnf is also the same error

sudo dnf update - y
sudo dnf install bat fd - find[sudo] password
for wms:
   whitewaterfoundry_wslu 183 B / s | 833 B 00: 04
Dependencies resolved. ===
   === === === === === === === === === === === === === === === === === === === === === === === === === ==
   Package Arch Version Repository Size ===
   === === === === === === === === === === === === === === === === === === === === === === === === === ==
   Installing:
   bat x86_64 0.11 .0 - 3. module_f30 + 5045 + 5668 d494 updates - modular 1.6 M
fd - find x86_64 7.3 .0 - 3. module_f30 + 5180 + e6d08112 updates - modular 780 k
Installing dependencies:
   http - parser x86_64 2.9 .2 - 1. fc30 updates 36 k
libgit2_0 .28 x86_64 0.28 .2 - 1. fc30 updates 424 k
libssh2 x86_64 1.9 .0 - 1. fc30 updates 112 k
Enabling module streams:
   bat latest
fd - find rolling

Transaction Summary
   ===
   === === === === === === === === === === === === === === === === === === === === === === === === === ==
   Install 5 Packages

Total download size: 2.9 M
Installed size: 7.8 M
Is this ok[y / N]: y
Downloading Packages:
   (1 / 5): http - parser - 2.9 .2 - 1. fc30.x86_64.rpm 139 kB / s | 36 kB 00: 00(2 / 5): fd - find - 7.3 .0 - 3. module_f30 + 5180 + e6d08112 1.6 MB / s | 780 kB 00: 00(3 / 5): bat - 0.11 .0 - 3. module_f30 + 5045 + 5668 d494.x8 2.6 MB / s | 1.6 MB 00: 00(4 / 5): libgit2_0 .28 - 0.28 .2 - 1. fc30.x86_64.rpm 1.0 MB / s | 424 kB 00: 00(5 / 5): libssh2 - 1.9 .0 - 1. fc30.x86_64.rpm 323 kB / s | 112 kB 00: 00
   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Total 902 kB / s | 2.9 MB 00: 03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
RPM: error: db5 error(-30969) from dbenv - > open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
RPM: error: cannot open Packages index using db5 - (-30969)
RPM: error: cannot open Packages database in /var/lib / rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Could not run transaction.
load more v
65%

Help Center Detailed answers to any questions you might have ,After a while (still running dnf) I got pushed back to the login-screen and when I logged in, all terminal-windows were gone. After a restart I noticed that the kernel hasn't been updated (though I saw a newer version had been queued and my VMs also use a newer one). ,I installed a fresh copy of Fedora 24 on my older notebook (1.gen i5) a few weeks ago and (naturally) first tried to get the latest updates through dnf (sudo will be omitted here).,Please be sure to answer the question. Provide details and share your research!

Check for duplicated packages by running
rpm -qa

rpm - qa
load more v
75%

I was looking for Fedora update command from terminal. Who knew just typing dnf update will apply all updates?, New to Fedora Terminal Mar 4, 2021 @ 3:48 I was looking for Fedora update command from terminal. Who knew just typing dnf update will apply all updates? Link ,Next FAQ: How to install snapd on Fedora Linux system using dnf command,And there you have it. You just updated Fedora Linux using terminal to get latest software patches. Keeping your software up to date is an essential task to avoid security problems. Hence, regularly run the ‘sudo dnf upgrade‘ command.

Type the following command to find our the Linux kernel version:
uname -mrs
Sample outputs:

Linux 4.16 .3 - 301. fc28.x86_64 x86_64
load more v

Other "update-undefined" queries related to "Fedora dnf update did not working?"