Page 1 of 1

[SOLVED] Package endless update

PostPosted: Apr 1st, '26, 16:08
by fmolina2b
Dears,
The package npm-10.9.7-1.22.22.2.1.mga9.x86_64 , at least for me, appears endlessly for update: it appears in the software manager (MCC), I click to update, no error is shown, and it appears again, and again ...
Trying urpmi gives that:
[root@Octopus fernando]# urpmi --update npm-10.9.7-1.22.22.2.1.mga9.x86_64


$MIRRORLIST: media/core/updates/npm-10.9.7-1.22.22.2.1.mga9.x86_64.rpm
instalando npm-10.9.7-1.22.22.2.1.mga9.x86_64.rpm desde /var/cache/urpmi/rpms
Preparando... ###################################################################################
1/1: npm ###################################################################################
error: falló el desempaquetado de archivos en archivo/usr/lib/node_modules/npm/docs;69cd25c3: cpio: File from package already exists as a directory in system
ERROR: 'unpack' failed for npm-1:10.9.7-1.22.22.2.1.mga9.x86_64
error: npm-1:10.9.7-1.22.22.2.1.mga9.x86_64: instalar falló
error: npm-1:10.9.4-1.22.22.0.1.mga9.x86_64: borrar ignorado

Of course, it is only a nuisance, nothing more, but shouldn´t occur.
Best
Linux Octopus 6.6.120-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 01:59:53 UTC 2026 x86_64 GNU/Linux

Re: Package endless update

PostPosted: Apr 1st, '26, 17:56
by doktor5000
fmolina2b wrote:I click to update, no error is shown, and it appears again, and again ...

MCC shows the same errors as urpmi, and in your output the error is pretty clearly shown.
It does not appear again and again, it is always the same package because it never installed successfully due to the error shown.
fmolina2b wrote: 1/1: npm ###################################################################################
error: falló el desempaquetado de archivos en archivo/usr/lib/node_modules/npm/docs;69cd25c3: cpio: File from package already exists as a directory in system
ERROR: 'unpack' failed for npm-1:10.9.7-1.22.22.2.1.mga9.x86_64
error: npm-1:10.9.7-1.22.22.2.1.mga9.x86_64: instalar falló
error: npm-1:10.9.4-1.22.22.0.1.mga9.x86_64: borrar ignorado

Clear your package cache, if the problem persists then open a bugreport, as this might be a packaging error.
See https://docs.fedoraproject.org/en-US/pa ... placement/

Re: Package endless update

PostPosted: Apr 1st, '26, 17:59
by doktor5000
FWIW, this has already been reported: https://bugs.mageia.org/show_bug.cgi?id=33601

Re: Package endless update

PostPosted: Apr 1st, '26, 18:21
by fmolina2b
After
Code: Select all
rm -fr /usr/lib/node_modules/npm

and
Code: Select all
urpmi npm

Things seem fixed.
But I saw the error only in the console, the MCC Gui did not show any error message, only presented the same package for update again.

Re: Package endless update

PostPosted: Apr 1st, '26, 18:28
by doktor5000
Did you maybe use npm update in the past?

Re: Package endless update

PostPosted: Apr 1st, '26, 18:33
by fmolina2b
I installed npm recently, a few weeks ago, and I don't remember updating it.