Pacman fails to upgrade because of file conflicts

Summary

As usual, I updated my system. But I got a error message about file conflicts. Apparently, two packages depend on the same file. This causes pacman to not upgrade the packages.

What I have tried

Here’s the breakdown of steps I took:

$ sudo pacman -Syuu
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (39)                          Old Version          New Version          Net Change

core/cryptsetup                       2.5.0-3              2.5.0-4                0,00 MiB
endeavouros/endeavouros-skel-i3wm     3.30-1               3.31-1                 0,00 MiB
core/gettext                          0.21.1-1             0.21.1-2               0,00 MiB
core/gnutls                           3.7.8-1              3.7.8-2                0,26 MiB
core/guile                            2.2.7-2              2.2.7-3               -0,03 MiB
core/hwdata                           0.363-1              0.364-1                0,03 MiB
extra/imath                           3.1.5-3              3.1.6-1                0,01 MiB
community/libappindicator-gtk3        12.10.0.r296-2       12.10.0.r298-1         0,00 MiB
core/libidn2                          2.3.4-1              2.3.4-3               -0,17 MiB
community/libmupdf                    1.20.3-2             1.21.0-1               1,39 MiB
extra/libnma                          1.10.2-2             1.10.4-1               0,00 MiB
extra/libnma-common                   1.10.2-2             1.10.4-1               0,00 MiB
core/libpsl                           0.21.1-1             0.21.1-3               0,01 MiB
extra/libsynctex                      2022.62885-2         2022.62885-3           0,00 MiB
core/libunistring                     1.0-1                1.1-2                  0,06 MiB
extra/luit                            20220111-1           20221028-1             0,00 MiB
extra/mobile-broadband-provider-info  20220725-1           20221107-1             0,00 MiB
community/mupdf                       1.20.3-2             1.21.0-1               0,09 MiB
extra/network-manager-applet          1.28.0-1             1.30.0-1               0,00 MiB
extra/nm-connection-editor            1.28.0-1             1.30.0-1               0,05 MiB
community/nodejs-nopt                 6.0.0-1              7.0.0-1                0,00 MiB
community/podofo                      0.9.8-2              0.9.8-3                0,00 MiB
community/python-css-parser           1.0.7-1              1.0.8-1                0,00 MiB
community/python-inflate64            0.1.3-1              0.3.1-1               -0,03 MiB
extra/python-platformdirs             2.5.2-1              2.5.3-1                0,00 MiB
community/python-py7zr                0.20.0-1             0.20.2-1               0,01 MiB
community/python-regex                2022.9.13-1          2022.10.31-1           0,00 MiB
extra/python-setuptools               1:64.0.2-1           1:65.0.2-1            -0,10 MiB
community/python-shtab                1.5.5-1              1.5.7-1                0,00 MiB
community/python-termcolor            2.0.1-1              2.1.0-1                0,00 MiB
community/python-wheel                0.38.0-1             0.38.1-1               0,00 MiB
extra/qt5-base                        5.15.7+kde+r169-1    5.15.7+kde+r170-1      0,00 MiB
extra/qt5-declarative                 5.15.7+kde+r20-1     5.15.7+kde+r21-1       0,02 MiB
community/rubygems                    3.3.23-1             3.3.25-1               0,00 MiB
core/shadow                           4.11.1-3             4.11.1-4              -0,12 MiB
extra/smbclient                       4.17.2-1             4.17.2-2               0,00 MiB
extra/texlive-bin                     2022.62885-2         2022.62885-3           0,00 MiB
extra/xdg-utils                       1.1.3+21+g1a58bc2-2  1.1.3+25+g8ae0263-1    0,00 MiB
extra/zvbi                            0.2.35-4             0.2.37-1              -0,13 MiB

Total Installed Size:  394,52 MiB
Net Upgrade Size:        1,35 MiB

:: Proceed with installation? [Y/n] 
(39/39) checking keys in keyring                                                                                                             [--------------------------------------------------------------------------------------] 100%
(39/39) checking package integrity                                                                                                           [--------------------------------------------------------------------------------------] 100%
(39/39) loading package files                                                                                                                [--------------------------------------------------------------------------------------] 100%
(39/39) checking for file conflicts                                                                                                          [--------------------------------------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
/usr/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml exists in both 'libnma-common' and 'network-manager-applet'
Errors occurred, no packages were upgraded.
 -> error installing repo packages
$ pacman -Qo /usr/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml is owned by libnma-common 1.10.2-2
$ sudo pacman -S libnma
resolving dependencies...
looking for conflicting packages...

Package (2)          Old Version  New Version  Net Change

extra/libnma-common  1.10.2-2     1.10.4-1       0,00 MiB
extra/libnma         1.10.2-2     1.10.4-1       0,00 MiB

Total Installed Size:  1,68 MiB
Net Upgrade Size:      0,00 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                                                                                               [--------------------------------------------------------------------------------------] 100%
(2/2) checking package integrity                                                                                                             [--------------------------------------------------------------------------------------] 100%
(2/2) loading package files                                                                                                                  [--------------------------------------------------------------------------------------] 100%
(2/2) checking for file conflicts                                                                                                            [--------------------------------------------------------------------------------------] 100%
:: Processing package changes...
(1/2) upgrading libnma-common                                                                                                                [--------------------------------------------------------------------------------------] 100%
(2/2) upgrading libnma                                                                                                                       [--------------------------------------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Compiling GSettings XML schema files...
(3/3) Checking which packages need to be rebuilt

But now I can’t do a general upgrade because of network-manage-applet, because the file it owns already exists in the system.

Info on my environment

Output o inxi -Fxz

System:
  Kernel: 6.0.7-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    Desktop: i3 v: 4.21.1 Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81FE v: Lenovo ideapad 330-15IKB
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40688 WIN
    serial: <superuser required> UEFI: LENOVO v: 8TCN61WW date: 05/19/2021
Battery:
  ID-1: BAT0 charge: 15.5 Wh (68.0%) condition: 22.8/30.0 Wh (75.8%)
    volts: 8.2 min: 7.5 model: SMP L16M2PB1 status: charging
CPU:
  Info: quad core model: Intel Core i7-8550U bits: 64 type: MT MCP
    arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 2000 min/max: 400/4000 cores: 1: 2000 2: 2000 3: 2000
    4: 2000 5: 2000 6: 2000 7: 2000 8: 2000 bogomips: 32012
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel
    arch: Gen-9.5 bus-ID: 00:02.0
  Device-2: NVIDIA GP108M [GeForce MX150] vendor: Lenovo driver: nvidia
    v: 520.56.06 arch: Maxwell bus-ID: 01:00.0
  Device-3: Acer EasyCamera type: USB driver: uvcvideo bus-ID: 1-8:3
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: intel,nvidia
    unloaded: modesetting dri: i965 gpu: i915 resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 Mesa 22.2.2 renderer: Mesa Intel UHD Graphics 620 (KBL
    GT2) direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
  Sound API: ALSA v: k6.0.7-arch1-1 running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.59 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel port: 3000 bus-ID: 02:00.0
  IF: enp2s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    vendor: Lenovo driver: ath10k_pci v: kernel bus-ID: 03:00.0
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-7:2
  Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: see --recommends
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 bus-ID: 00:17.0
Drives:
  Local Storage: total: 931.51 GiB used: 66.6 GiB (7.1%)
  ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-24Z10T0
    size: 931.51 GiB
Partition:
  ID-1: / size: 915.53 GiB used: 66.6 GiB (7.3%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 299.4 MiB used: 312 KiB (0.1%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) file: /swapfile
Sensors:
  System Temperatures: cpu: 56.0 C pch: 52.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 210 Uptime: 44m Memory: 7.67 GiB used: 2.16 GiB (28.2%)
  Init: systemd Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: 1442
  Shell: Bash v: 5.1.16 inxi: 3.3.23

How should I proceed? Is it safe to remove network-manager-applet? Thanks.

Duplicate: /usr/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml exists in both libnma-common and 'network-manager-applet'