[Solved] Update failed, Error: python-cairo

[judd@AL ~]$ LANG=C yay
[sudo] password for judd: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 archlabs is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (6) linux-hardened-6.0.11.hardened1-1  linux-hardened-headers-6.0.11.hardened1-1  python-cairo-1.23.0-2
             sqlite-3.40.0-2  usbutils-015-2  vlc-3.0.18-1

Total Installed Size:  315.07 MiB
Net Upgrade Size:        0.08 MiB

:: Proceed with installation? [Y/n] 
(6/6) checking keys in keyring                                                                      [----------------------------------------------------------] 100%
(6/6) checking package integrity                                                                    [----------------------------------------------------------] 100%
(6/6) loading package files                                                                         [----------------------------------------------------------] 100%
(6/6) checking for file conflicts                                                                   [----------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
python-cairo: /usr/lib/python3.10/site-packages/cairo/__pycache__/__init__.cpython-310.pyc exists in filesystem
Errors occurred, no packages were upgraded.
 -> error installing repo packages
[judd@AL ~]$ 
1 Like

upgrade python-cairo first,

$sudo pacman -S --overwrite \* python-cairo

5 Likes

It worked perfectly!
Thank you very much @chroot!

[judd@AL ~]$ sudo pacman -S --overwrite \* python-cairo
[sudo] contrase├▒a para judd: 
resolviendo dependencias...
buscando conflictos entre paquetes...

Paquetes (1) python-cairo-1.23.0-2

Tama├▒o total de la instalaci├│n:  0,42 MiB
Tama├▒o neto tras actualizar:     0,00 MiB

:: ┬┐Continuar con la instalaci├│n? [S/n] 
(1/1) comprobando las claves del dep├│sito                                                                                            [--------------------------------------------------------------------------------] 100%
(1/1) verificando la integridad de los paquetes                                                                                      [--------------------------------------------------------------------------------] 100%
(1/1) cargando los archivos de los paquetes                                                                                          [--------------------------------------------------------------------------------] 100%
(1/1) comprobando conflictos entre archivos                                                                                          [--------------------------------------------------------------------------------] 100%
(1/1) comprobando el espacio disponible en el disco                                                                                  [--------------------------------------------------------------------------------] 100%
:: Procesando los cambios de los paquetes...
(1/1) actualizando python-cairo                                                                                                      [--------------------------------------------------------------------------------] 100%
:: Ejecutando los ┬źhooks┬╗ de posinstalaci├│n...
(1/1) Arming ConditionNeedsUpdate...
[judd@AL ~]$ sudo pacman -Syu
:: Sincronizando las bases de datos de los paquetes...
 core está actualizado
 extra está actualizado
 community está actualizado
 multilib está actualizado
 archlabs                                                                                                 14,4 KiB  12,7 KiB/s 00:01 [--------------------------------------------------------------------------------] 100%
:: Iniciando actualizaci├│n completa del sistema...
resolviendo dependencias...
buscando conflictos entre paquetes...

Paquetes (5) linux-hardened-6.0.11.hardened1-1  linux-hardened-headers-6.0.11.hardened1-1  sqlite-3.40.0-2  usbutils-015-2  vlc-3.0.18-1

Tama├▒o total de la instalaci├│n:  314,65 MiB
Tama├▒o neto tras actualizar:       0,08 MiB

:: ┬┐Continuar con la instalaci├│n? [S/n] 
(5/5) comprobando las claves del dep├│sito                                                                                            [--------------------------------------------------------------------------------] 100%
(5/5) verificando la integridad de los paquetes                                                                                      [--------------------------------------------------------------------------------] 100%
(5/5) cargando los archivos de los paquetes                                                                                          [--------------------------------------------------------------------------------] 100%
(5/5) comprobando conflictos entre archivos                                                                                          [--------------------------------------------------------------------------------] 100%
(5/5) comprobando el espacio disponible en el disco                                                                                  [--------------------------------------------------------------------------------] 100%
:: Ejecutando los ┬źhooks┬╗ de preinstalaci├│n...
(1/2) Removing linux initcpios...
(2/2) Remove DKMS modules
==> dkms remove --no-depmod broadcom-wl/6.30.223.271 -k 6.0.10-hardened1-1-hardened
==> depmod 6.0.10-hardened1-1-hardened
:: Procesando los cambios de los paquetes...
(1/5) actualizando linux-hardened                                                                                                    [--------------------------------------------------------------------------------] 100%
(2/5) actualizando linux-hardened-headers                                                                                            [--------------------------------------------------------------------------------] 100%
(3/5) actualizando sqlite                                                                                                            [--------------------------------------------------------------------------------] 100%
(4/5) actualizando usbutils                                                                                                          [--------------------------------------------------------------------------------] 100%
(5/5) actualizando vlc                                                                                                               [--------------------------------------------------------------------------------] 100%
:: Ejecutando los ┬źhooks┬╗ de posinstalaci├│n...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Updating module dependencies...
(3/7) Install DKMS modules
==> dkms install --no-depmod broadcom-wl/6.30.223.271 -k 6.0.11-hardened1-1-hardened
==> depmod 6.0.11-hardened1-1-hardened
(4/7) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-hardened.preset: 'default'
  -> -k /boot/vmlinuz-linux-hardened -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-hardened.img
==> Starting build: 6.0.11-hardened1-1-hardened
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [shutdown]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-hardened.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-hardened.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-hardened -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-hardened-fallback.img -S autodetect
==> Starting build: 6.0.11-hardened1-1-hardened
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [shutdown]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-hardened-fallback.img
==> Image generation successful
(5/7) Updating icon theme caches...
(6/7) Updating the desktop file MIME type cache...
(7/7) Updating the vlc plugin cache...
[judd@AL ~]$ 

2 Likes

Glad that it s fixed @judd . Props to @chroot for the solution !

2 Likes

I just had this self same problem updating my MumÔÇÖs EOS remotely

I searched for it with ÔÇśEndeavourÔÇÖ which led me to this post

which led me to this post :smiley:

Worked perfectly!

Thanks @chroot !

1 Like