Conflicting files during latest stable update

I am currently upgrading and get this message as part of the ongoing installation process:

Überprüfe Schlüsselring...                                                                                                     [576/576]
Integrität wird überprüft...                                                                                                   [576/576]
Fehler: tdb: Signatur von "Felix Yan <felixonmars@archlinux.org>" ist ungültig
Fehler: xorg-server: Signatur von "Mark Wagie <mark@manjaro.org>" ist ungültig
Fehler: double-conversion: Signatur von "Antonio Rojas <arojas@archlinux.org>" ist ungültig
Fehler: qt5-translations: Signatur von "Antonio Rojas <arojas@archlinux.org>" ist ungültig
Entferne ungültige Dateien und wiederhole Vorgang...

Ok 2 minutes later the process did not completed, and finished with these error message:

Überprüfe Schlüsselring...                                                                                                     [576/576]
Integrität wird überprüft...                                                                                                   [576/576]
Paketdateien werden geladen...                                                                                                 [576/576]
Dateikonflikte werden überprüft...                                                                                             [576/576]
Error: Vorgang konnte nicht abgeschlossen werden:
In Konflikt stehende Dateien:
- npm: /usr/lib/node_modules/npm/docs/content/using-npm/logging.md already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/docs/output/using-npm/logging.html already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/lib/utils/display.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/lib/utils/log-file.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/lib/utils/log-shim.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/lib/utils/timers.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/lib/utils/with-chown-sync.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/override-set.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/node_modules/just-diff-apply/index.mjs already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/node_modules/just-diff-apply/rollup.config.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/node_modules/just-diff/index.mjs already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/node_modules/just-diff/rollup.config.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/node_modules/parse-conflict-json/LICENSE.md already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut
- npm: /usr/lib/node_modules/npm/node_modules/parse-conflict-json/lib/index.js already exists in filesystem,
wenn diese Datei nicht benötigt wird, entferne sie und versuche es erneut

For the English user here, it says I should delete those files and try again if I don’t need them. But I don’t know exactly if I need them. Maybe not, but I don’t know if any program requires these files. What should I do?

You installed things using sudo npm
In the future dont do that … now undo that, or otherwise handle the files, then proceed.

https://wiki.manjaro.org/index.php/Pacman_troubleshooting#Conflicting_files_-_FILENAME_exists_in_filesystem

What about this?

Überprüfe Schlüsselring...                                                                                                     [576/576]
Integrität wird überprüft...                                                                                                   [576/576]
Fehler: tdb: Signatur von "Felix Yan <felixonmars@archlinux.org>" ist ungültig
Fehler: xorg-server: Signatur von "Mark Wagie <mark@manjaro.org>" ist ungültig
Fehler: double-conversion: Signatur von "Antonio Rojas <arojas@archlinux.org>" ist ungültig
Fehler: qt5-translations: Signatur von "Antonio Rojas <arojas@archlinux.org>" ist ungültig
Entferne ungültige Dateien und wiederhole Vorgang...

The section above the previous one
https://wiki.manjaro.org/index.php/Pacman_troubleshooting#Errors_about_Keys

1 Like

Thanks, I’ll look into it now.

I’ve moved the post to a new thread, please stop replying in the Stable Update thread.

You just moved at the same time when I was replying and didn’t know it was moved. I thought the reply did not got through and I just made the same reply again.

I am following the instructions about the Errors_about_Keys and it seems not working properly. Here is the log of the process, in short step 1 and 2 was successfull but step 3 not:

sudo rm -r /etc/pacman.d/gnupg                                                       1 ✘  7m 22s 
[sudo] password for tuncay:
   ~  sudo pacman-key --init                                                                            ✔
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: key 15B8FDDE942A797C marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/DF444112A43E3F36C01B47E515B8FDDE942A797C.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
   ~  mkdir -pv $HOME/.cache/pkg/ && sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/
mkdir: created directory '/home/tuncay/.cache/pkg/'
:: Synchronising package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
resolving dependencies...

Packages (2) archlinux-keyring-20211028-1  manjaro-keyring-20210910-2

Total Download Size:  0,00 MiB

:: Proceed with download? [Y/n] y
:: Retrieving packages...
archlinux-keyring-20211028-1-any       979,1 KiB  4,55 MiB/s 00:00 [######################################] 100%
manjaro-keyring-20210910-2-any         141,6 KiB  3,46 MiB/s 00:00 [######################################] 100%
(2/2) checking keys in keyring                                      [######################################] 100%
downloading required keys...
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <arch@eworm.de>"? [Y/n] y
:: Import PGP key DAD3B211663CA268, "Bernhard Landauer <oberon@manjaro.org>"? [Y/n] y
(2/2) checking package integrity                                    [######################################] 100%
error: archlinux-keyring: signature from "Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>" is unknown trust
:: File /home/tuncay/.cache/pkg/archlinux-keyring-20211028-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: manjaro-keyring: signature from "Bernhard Landauer <bernhard@manjaro.org>" is unknown trust
:: File /home/tuncay/.cache/pkg/manjaro-keyring-20210910-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Did I something wrong?

1 Like

Step 1 worked and I get error message with step 2:

   ~  sudo rm -r /etc/pacman.d/gnupg                                                          1 ✘  22s 
[sudo] password for tuncay:
   ~  sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring                                           ✔
:: Synchronising package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
warning: gnupg-2.2.32-2 is up to date -- reinstalling
warning: archlinux-keyring-20211028-1 is up to date -- reinstalling
warning: manjaro-keyring-20210910-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (3) archlinux-keyring-20211028-1  gnupg-2.2.32-2  manjaro-keyring-20210910-2

Total Installed Size:  11,49 MiB
Net Upgrade Size:       0,00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
gnupg-2.2.32-2-x86_64 is up to date
archlinux-keyring-20211028-1-any is up to date
manjaro-keyring-20210910-2-any is up to date
(3/3) 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: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

I did not proceed with the next step, due to the error message. Edit: I read int he message asking me to run pacman-key --init. Sorry I am just confused currently and don’t just want to run commands on my own by trying, so I ask here if I should continue with the pacman-key commands? I guess this is a bit annoying to you.

try now:

sudo pacman -Syy
sudo pacman-key --refresh-keys
sudo pacman-key --populate archlinux manjaro
sudo pacman -Sc
1 Like

Edit: Clarified.
I needed to do the init in order to continue, so i did that now and continued with each step in the order you gave me.

   ~  sudo pacman-key --refresh-keys                                                                    ✔
==> ERROR: You do not have sufficient permissions to read the pacman keyring.
==> Use 'pacman-key --init' to correct the keyring permissions.

At last step it asked me to remove old packages from cache and unused repositories, which I did by answering y. Should I try to pamac update now or should I check something to make sure it is working properly?

Thank you for your help, i was really helpless.

Proceed with update if possible.

Thank you too. I updated my system without issues now and rebooted. It looks fine. I will continue with updating the Python AUR packages.

Happy New Year

1 Like

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