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

    onu

    Please I need help with this. I cant really get this fixed on my site. Can one guide me?

    file /usr/lib64/ImageMagick-6.9.12/config-Q16/configure.xml from install of ImageMagick-libs-0:6.9.12.48-2.el8.x86_64 conflicts with file from package ImageMagick6-libs-1:6.9.12.50-1.el8.remi.x86_64



      awippler

      The error message shows that you already have a newer version installed.



    sjekoken

    Complete lifesaver, thanks!



    Juan Luis

    A mi también me “salvó la vida”. He tenido el problema dos veces con Fedora 30 en el último mes en dos diferentes laptop.
    Muy agradecido por publicar esta solución.
    Un saludo muy cordial



    Mark

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



    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



    Phil

    Thanks! This saved my life 🙂


Comments are closed.