You are not logged in.

#1 2024-02-21 08:11:04

TUFpointe
Member
From: United States
Registered: 2024-02-20
Posts: 3

error: failed to commit transaction (conflicting files)

Hi, this is my first time ever posting a a problem I am having and trying to find a fix, so if information is needed for you guys to help me fix my problem, please let me know...

Okay. Here it is. I am trying to install LXD onto my Arch system. Here is the entire process I am taking
            Step 1:(of course xD)

pacman -Syyu

            Step 2:(Below is the output)-

$ pacman -S lxd
looking for conflicting packages...
Packages (8) dnsmasq-2.90-1  dqlite-1.16.2-1  iptables-nft-1:1.8.10-1  libnih-1.0.3-4  lxc-1:5.0.3-1  lxcfs-5.0.4-1
raft-0.18.1-1  lxd-5.20-1

Total Download Size:    36.40 MiB
Total Installed Size:  196.25 MiB

:: Proceed with installation? [Y/n] 

So of course my next step would be -
            Step 3:

:: Proceed with installation? [Y/n] y (Below is this output)

:: Retrieving packages...
lxd-5.20-1-x86_64                          32.7 MiB  5.17 MiB/s 00:06 [########################################] 100%
lxc-1:5.0.3-1-x86_64                        2.9 MiB  4.55 MiB/s 00:01 [########################################] 100%
dnsmasq-2.90-1-x86_64                     411.9 KiB   669 KiB/s 00:01 [########################################] 100%
libnih-1.0.3-4-x86_64                     151.0 KiB   888 KiB/s 00:00 [########################################] 100%
raft-0.18.1-1-x86_64                      102.6 KiB   625 KiB/s 00:00 [########################################] 100%
dqlite-1.16.2-1-x86_64                     80.0 KiB   560 KiB/s 00:00 [########################################] 100%
lxcfs-5.0.4-1-x86_64                       77.5 KiB   497 KiB/s 00:00 [########################################] 100%
Total (7/7)                                36.4 MiB  4.09 MiB/s 00:09 [########################################] 100%
(8/8) checking keys in keyring                                         [########################################] 100%
(8/8) checking package integrity                                       [########################################] 100%
(8/8) loading package files                                            [########################################] 100%
(8/8) checking for file conflicts                                      [########################################] 100%
error: failed to commit transaction (conflicting files)
iptables-nft: /etc/iptables/empty.rules exists in filesystem
iptables-nft: /etc/iptables/simple_firewall.rules exists in filesystem
iptables-nft: /usr/bin/arptables-nft exists in filesystem
iptables-nft: /usr/bin/arptables-nft-restore exists in filesystem
iptables-nft: /usr/bin/arptables-nft-save exists in filesystem
iptables-nft: /usr/bin/ebtables-nft exists in filesystem
iptables-nft: /usr/bin/ebtables-nft-restore exists in filesystem
iptables-nft: /usr/bin/ebtables-nft-save exists in filesystem
iptables-nft: /usr/bin/ebtables-translate exists in filesystem
iptables-nft: /usr/bin/ip6tables exists in filesystem
iptables-nft: /usr/bin/ip6tables-apply exists in filesystem
iptables-nft: /usr/bin/ip6tables-legacy exists in filesystem
iptables-nft: /usr/bin/ip6tables-legacy-restore exists in filesystem
iptables-nft: /usr/bin/ip6tables-legacy-save exists in filesystem
iptables-nft: /usr/bin/ip6tables-nft exists in filesystem
iptables-nft: /usr/bin/ip6tables-nft-restore exists in filesystem
iptables-nft: /usr/bin/ip6tables-nft-save exists in filesystem
iptables-nft: /usr/bin/ip6tables-restore exists in filesystem
iptables-nft: /usr/bin/ip6tables-restore-translate exists in filesystem
iptables-nft: /usr/bin/ip6tables-save exists in filesystem
iptables-nft: /usr/bin/ip6tables-translate exists in filesystem
iptables-nft: /usr/bin/iptables exists in filesystem
iptables-nft: /usr/bin/iptables-apply exists in filesystem
iptables-nft: /usr/bin/iptables-legacy exists in filesystem
iptables-nft: /usr/bin/iptables-legacy-restore exists in filesystem
iptables-nft: /usr/bin/iptables-legacy-save exists in filesystem
iptables-nft: /usr/bin/iptables-nft exists in filesystem
iptables-nft: /usr/bin/iptables-nft-restore exists in filesystem
iptables-nft: /usr/bin/iptables-nft-save exists in filesystem
iptables-nft: /usr/bin/iptables-restore exists in filesystem
iptables-nft: /usr/bin/iptables-restore-translate exists in filesystem
iptables-nft: /usr/bin/iptables-save exists in filesystem
iptables-nft: /usr/bin/iptables-translate exists in filesystem
iptables-nft: /usr/bin/iptables-xml exists in filesystem
iptables-nft: /usr/bin/nfbpf_compile exists in filesystem
iptables-nft: /usr/bin/nfnl_osf exists in filesystem
iptables-nft: /usr/bin/xtables-legacy-multi exists in filesystem
iptables-nft: /usr/bin/xtables-monitor exists in filesystem
iptables-nft: /usr/bin/xtables-nft-multi exists in filesystem
iptables-nft: /usr/include/libipq.h exists in filesystem
iptables-nft: /usr/include/libiptc/ipt_kernel_headers.h exists in filesystem
iptables-nft: /usr/include/libiptc/libip6tc.h exists in filesystem
iptables-nft: /usr/include/libiptc/libiptc.h exists in filesystem
iptables-nft: /usr/include/libiptc/libxtc.h exists in filesystem
iptables-nft: /usr/include/libiptc/xtcshared.h exists in filesystem
iptables-nft: /usr/include/xtables-version.h exists in filesystem
iptables-nft: /usr/include/xtables.h exists in filesystem
iptables-nft: /usr/lib/libip4tc.so exists in filesystem
iptables-nft: /usr/lib/libip4tc.so.2 exists in filesystem
iptables-nft: /usr/lib/libip4tc.so.2.0.0 exists in filesystem
iptables-nft: /usr/lib/libip6tc.so exists in filesystem
iptables-nft: /usr/lib/libip6tc.so.2 exists in filesystem
iptables-nft: /usr/lib/libip6tc.so.2.0.0 exists in filesystem
iptables-nft: /usr/lib/libipq.so exists in filesystem
iptables-nft: /usr/lib/libipq.so.0 exists in filesystem
iptables-nft: /usr/lib/libipq.so.0.0.0 exists in filesystem
iptables-nft: /usr/lib/libxtables.so exists in filesystem
iptables-nft: /usr/lib/libxtables.so.12 exists in filesystem
iptables-nft: /usr/lib/libxtables.so.12.7.0 exists in filesystem
iptables-nft: /usr/lib/pkgconfig/libip4tc.pc exists in filesystem
iptables-nft: /usr/lib/pkgconfig/libip6tc.pc exists in filesystem
iptables-nft: /usr/lib/pkgconfig/libipq.pc exists in filesystem
iptables-nft: /usr/lib/pkgconfig/libiptc.pc exists in filesystem
iptables-nft: /usr/lib/pkgconfig/xtables.pc exists in filesystem
iptables-nft: /usr/lib/systemd/scripts/iptables-flush exists in filesystem
iptables-nft: /usr/lib/systemd/system/ip6tables.service exists in filesystem
iptables-nft: /usr/lib/systemd/system/iptables.service exists in filesystem
iptables-nft: /usr/lib/xtables/libarpt_mangle.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_802_3.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_among.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_arp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_arpreply.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_dnat.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_ip.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_ip6.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_log.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_mark.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_mark_m.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_nflog.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_pkttype.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_redirect.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_snat.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_stp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libebt_vlan.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_DNPT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_HL.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_NETMAP.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_REJECT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_SNPT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_ah.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_dst.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_eui64.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_frag.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_hbh.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_hl.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_icmp6.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_ipv6header.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_mh.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_rt.so exists in filesystem
iptables-nft: /usr/lib/xtables/libip6t_srh.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_CLUSTERIP.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_ECN.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_NETMAP.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_REJECT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_TTL.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_ULOG.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_ah.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_icmp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_realm.so exists in filesystem
iptables-nft: /usr/lib/xtables/libipt_ttl.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_AUDIT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_CHECKSUM.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_CLASSIFY.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_CONNMARK.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_CONNSECMARK.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_CT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_DNAT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_DSCP.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_HMARK.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_IDLETIMER.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_LED.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_LOG.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_MARK.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_MASQUERADE.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_NAT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_NFLOG.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_NFQUEUE.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_NOTRACK.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_RATEEST.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_REDIRECT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_SECMARK.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_SET.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_SNAT.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_SYNPROXY.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_TCPMSS.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_TCPOPTSTRIP.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_TEE.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_TOS.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_TPROXY.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_TRACE.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_addrtype.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_bpf.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_cgroup.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_cluster.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_comment.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_connbytes.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_connlabel.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_connlimit.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_connmark.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_conntrack.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_cpu.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_dccp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_devgroup.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_dscp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_ecn.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_esp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_hashlimit.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_helper.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_ipcomp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_iprange.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_ipvs.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_length.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_limit.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_mac.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_mark.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_multiport.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_nfacct.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_osf.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_owner.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_physdev.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_pkttype.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_policy.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_quota.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_rateest.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_recent.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_rpfilter.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_sctp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_set.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_socket.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_standard.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_state.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_statistic.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_string.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_tcp.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_tcpmss.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_time.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_tos.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_u32.so exists in filesystem
iptables-nft: /usr/lib/xtables/libxt_udp.so exists in filesystem
iptables-nft: /usr/share/iptables/empty-filter.rules exists in filesystem
iptables-nft: /usr/share/iptables/empty-mangle.rules exists in filesystem
iptables-nft: /usr/share/iptables/empty-nat.rules exists in filesystem
iptables-nft: /usr/share/iptables/empty-raw.rules exists in filesystem
iptables-nft: /usr/share/iptables/empty-security.rules exists in filesystem
iptables-nft: /usr/share/iptables/empty.rules exists in filesystem
iptables-nft: /usr/share/iptables/simple_firewall.rules exists in filesystem
iptables-nft: /usr/share/man/man1/iptables-xml.1.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_create_handle.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_destroy_handle.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_errstr.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_get_msgerr.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_get_packet.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_message_type.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_perror.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_read.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_set_mode.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/ipq_set_verdict.3.gz exists in filesystem
iptables-nft: /usr/share/man/man3/libipq.3.gz exists in filesystem
iptables-nft: /usr/share/man/man8/arptables-nft-restore.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/arptables-nft-save.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/arptables-nft.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/ebtables-nft.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/ebtables-translate.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/ip6tables-apply.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/ip6tables-restore-translate.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/ip6tables-restore.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/ip6tables-save.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/ip6tables-translate.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/ip6tables.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/iptables-apply.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/iptables-extensions.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/iptables-restore-translate.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/iptables-restore.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/iptables-save.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/iptables-translate.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/iptables.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/nfbpf_compile.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/nfnl_osf.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/xtables-legacy.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/xtables-monitor.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/xtables-nft.8.gz exists in filesystem
iptables-nft: /usr/share/man/man8/xtables-translate.8.gz exists in filesystem
iptables-nft: /usr/share/xtables/iptables.xslt exists in filesystem
iptables-nft: /usr/share/xtables/pf.os exists in filesystem
Errors occurred, no packages were upgraded.

Someone please help me fix this please. I thought about just going and deleting files 1 by 1 but I know there is an easier way I just havent found it myself.
Questions or concerns? Just let me know.
Thanks in advance!!!!!

Offline

#2 2024-02-21 08:33:55

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: error: failed to commit transaction (conflicting files)

pacman -Syyu

man pacman

Check what the second "y" actually does, understand how it might have contributed to this situation and then STOP USING IT unless you really. REALLY. mean to.

Edit: check for iptables, god knows why there's no conflict.

pacmna -Qs 'nft|iptables'
pacman -Qikk iptables-nft
pacman -Qo /etc/iptables/empty.rules

Last edited by seth (2024-02-21 08:36:42)

Offline

#3 2024-02-21 08:46:43

TUFpointe
Member
From: United States
Registered: 2024-02-20
Posts: 3

Re: error: failed to commit transaction (conflicting files)

Awesome thank you so much for such a fast reply man. I was worried it would take longer than it did. Your fix worked, and I am back on the right path. And also thank you for telling me about the -Sy(y)u. I had no idea and that doesn't doesnt seem safe to use all the time like I had thought.
Now, I just need to figure out how to allocate some of my free disk space to my /boot partition for the latest firmware update.

Thanks again!!!!!

Offline

#4 2024-02-21 08:49:24

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: error: failed to commit transaction (conflicting files)

There's absolutely no fix in the above, the commands check what conflicting packages you may have prensent, whether iptables-nft is compromised and what /etc/iptables/empty.rules currently belongs to (if any package)

Offline

#5 2024-02-21 08:51:02

TUFpointe
Member
From: United States
Registered: 2024-02-20
Posts: 3

Re: error: failed to commit transaction (conflicting files)

EDIT:  Wait. I see now. Well it did lead me to the problem so that is what I meant. I was able to delete the conflicting packages.
           They were libnftnl & nftables


            What if no package owns the /etc/iptables/empty.rules ? What would I do then

Last edited by TUFpointe (2024-02-21 09:00:10)

Offline

#6 2024-02-21 09:05:36

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: error: failed to commit transaction (conflicting files)

Figure how it showed up there (part of a broken package, maybe the timestamps tell whether you were fooling around and installed software bypassing pacman at the time) and in dobut ask the wiki

Offline

Board footer

Powered by FluxBB