How to fix Error: Transaction check error with dnf/yum

When a dnf or yum process gets interrupted, you may get the below 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 check error:
file /usr/share/doc/avahi-libs/README from install of avahi-libs-0.6.32-0.4.rc.fc23.i686 conflicts
with file from package avahi-libs-0.6.31-43.fc23.x86_64

When presented with Error: Transaction check error, you are unable to install, update, or upgrade your system. The solution is to attempt to install the program (or download the files), locate them on your system, and manually update them using rpm. In other words, do the following:

find /var/cache/dnf/ -iname avahi-libs-0.6.32* -type f
rpm -Uvh --replacefiles /path/to/avahi-libs-0.6.32-0.4.rc.fc23.i686.rpm

    Phil

    Thanks! This saved my life 🙂



    peter dim

    I tried this solution, but I get another error when installing the package. Here’s the full output:
    Error: Transaction check error:
    file /usr/share/ipxe/10222000.rom conflicts between attempted installs of ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch and ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch
    file /usr/share/ipxe/10ec8029.rom conflicts between attempted installs of ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch and ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch
    file /usr/share/ipxe/10ec8139.rom conflicts between attempted installs of ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch and ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch
    file /usr/share/ipxe/15ad07b0.rom conflicts between attempted installs of ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch and ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch
    file /usr/share/ipxe/1af41000.rom conflicts between attempted installs of ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch and ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch
    file /usr/share/ipxe/8086100e.rom conflicts between attempted installs of ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch and ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch
    file /usr/share/ipxe/808610d3.rom conflicts between attempted installs of ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch and ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch
    file /usr/share/ipxe/80861209.rom conflicts between attempted installs of ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch and ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch

    Error Summary
    ————-

    [peterd@localhost build-system]$ find /var/cache/dnf/ -iname ipxe-roms-qemu-* -type f
    /var/cache/dnf/updates-c4f1c95f64c2b794/packages/ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch.rpm
    [peterd@localhost build-system]$ rpm -Uvh –replacefiles /var/cache/dnf/updates-c4f1c95f64c2b794/packages/ipxe-roms-qemu-20160622-1.git0418631.fc24.noarch.rpm
    error: Failed dependencies:
    ipxe-roms-qemu = 20160127-1.git6366fa7a.el7 is needed by (installed) ipxe-roms-20160127-1.git6366fa7a.el7.noarch
    [peterd@l



    Mark

    Worked perfectly for me. Thank you! I was about 2 steps away from freaking out 🙂


Add to the conversation:

Your email address will not be published. Required fields are marked *