Keyring error while installing wine

Hello. I have recently fell in love with manjaro because of its stability and appearance.
Yesterday I installed the operating system and now I’m trying to install wine, but can’t.
I have tried countless things searching on forums and different places of the internet to try and resolve this error but it won’t work.

sudo pacman -S wine winetricks wine-mono wine_gecko
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: lib32-harfbuzz will be installed before its lib32-freetype2 dependency

Packages (26) cabextract-1.9.1-2  faudio-21.11-1  lib32-acl-2.3.1-1  lib32-attr-2.5.1-1  lib32-faudio-21.11-1
              lib32-fontconfig-2:2.13.94-1  lib32-freetype2-2.11.0-3  lib32-gettext-0.21-1  lib32-glib2-2.70.1-1
              lib32-harfbuzz-3.1.1-1  lib32-lcms2-2.12-1  lib32-libjpeg-turbo-2.1.1-1  lib32-libnl-3.5.0-1
              lib32-libpcap-1.10.1-1  lib32-libpng-1.6.37-3  lib32-libtiff-4.3.0-1  lib32-libxcursor-1.2.0-1
              lib32-pcre-8.44-1  lib32-sdl2-2.0.16-1  libjpeg-turbo-2.1.1-1  libpcap-1.10.1-1  unzip-6.0-15
              wine-6.21-1  wine-gecko-2.47.2-2  wine-mono-6.4.0-1  winetricks-20210825-1

Total Download Size:   209,38 MiB
Total Installed Size:  974,65 MiB
Net Upgrade Size:      972,12 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 wine-gecko-2.47.2-2-x86_64                86,3 MiB  1280 KiB/s 01:09 [#######################################] 100%
 wine-6.21-1-x86_64                        71,0 MiB  2,02 MiB/s 00:35 [#######################################] 100%
 wine-mono-6.4.0-1-any                     45,5 MiB  2,19 MiB/s 00:21 [#######################################] 100%
 lib32-glib2-2.70.1-1-x86_64             1174,4 KiB   971 KiB/s 00:01 [#######################################] 100%
 lib32-gettext-0.21-1-x86_64             1072,5 KiB   886 KiB/s 00:01 [#######################################] 100%
 lib32-harfbuzz-3.1.1-1-x86_64            624,6 KiB   635 KiB/s 00:01 [#######################################] 100%
 lib32-sdl2-2.0.16-1-x86_64               523,5 KiB   418 KiB/s 00:01 [#######################################] 100%
 libjpeg-turbo-2.1.1-1-x86_64             423,7 KiB   463 KiB/s 00:01 [#######################################] 100%
 lib32-pcre-8.44-1-x86_64                 373,5 KiB   304 KiB/s 00:01 [#######################################] 100%
 lib32-freetype2-2.11.0-3-x86_64          348,0 KiB   417 KiB/s 00:01 [#######################################] 100%
 lib32-libnl-3.5.0-1-x86_64               281,8 KiB   345 KiB/s 00:01 [#######################################] 100%
 libpcap-1.10.1-1-x86_64                  276,5 KiB   379 KiB/s 00:01 [#######################################] 100%
 lib32-libtiff-4.3.0-1-x86_64             204,5 KiB   331 KiB/s 00:01 [#######################################] 100%
 lib32-libjpeg-turbo-2.1.1-1-x86_64       190,1 KiB   310 KiB/s 00:01 [#######################################] 100%
 winetricks-20210825-1-x86_64             169,3 KiB   274 KiB/s 00:01 [#######################################] 100%
 lib32-lcms2-2.12-1-x86_64                160,8 KiB   271 KiB/s 00:01 [#######################################] 100%
 lib32-libpcap-1.10.1-1-x86_64            146,6 KiB   629 KiB/s 00:00 [#######################################] 100%
 lib32-fontconfig-2:2.13.94-1-x86_64      143,3 KiB   537 KiB/s 00:00 [#######################################] 100%
 unzip-6.0-15-x86_64                      141,4 KiB   390 KiB/s 00:00 [#######################################] 100%
 lib32-libpng-1.6.37-3-x86_64             129,7 KiB   316 KiB/s 00:00 [#######################################] 100%
 faudio-21.11-1-x86_64                    126,1 KiB   308 KiB/s 00:00 [#######################################] 100%
 lib32-faudio-21.11-1-x86_64              111,1 KiB   271 KiB/s 00:00 [#######################################] 100%
 cabextract-1.9.1-2-x86_64                 35,7 KiB   172 KiB/s 00:00 [#######################################] 100%
 lib32-libxcursor-1.2.0-1-x86_64           19,5 KiB  94,0 KiB/s 00:00 [#######################################] 100%
 lib32-acl-2.3.1-1-x86_64                  17,4 KiB  85,5 KiB/s 00:00 [#######################################] 100%
 lib32-attr-2.5.1-1-x86_64                  9,4 KiB  80,1 KiB/s 00:00 [#######################################] 100%
 Total (26/26)                            209,4 MiB  1485 KiB/s 02:24 [#######################################] 100%
error: failed retrieving file 'wine-gecko-2.47.2-2-x86_64.pkg.tar.zst' from kibo.remi.lu : Could not resolve host: kibo.remi.lu
warning: too many errors from kibo.remi.lu, skipping for the remainder of this transaction
(26/26) checking keys in keyring                                      [#######################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

I hope to get help soon because I like a lot this OS and I don’t want to go back to windows.

That mirror is apparently having issues. Please see Pacman-mirrors - Manjaro

When I update the mirrors with

sudo pacman-mirrors --fasttrack && sudo pacman -Syu                                                 

It starts updating packages like crazy and then this appears:

downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

I have no idea what to do…

I tried again just in case and this happened:

:: Proceed with installation? [Y/n] Y
(476/476) checking keys in keyring                                    [#######################################] 100%
downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

I hope there is a way to make this work, thanks again.

Try the following. Note the comment.

sudo rm -r /etc/pacman.d/gnupg/
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro
sudo pacman -Sc  # may or may not be necessary
sudo pacman -Syyu
2 Likes

Did a clean install of manjaro and updated mirrors and then the system. Everything works correctly now.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.