You are not logged in.

#1 2025-02-04 03:33:37

DJArch
Member
Registered: 2021-06-23
Posts: 19

[Solved] Help with system update

I am trying to update my system but I get the following error:

$ pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
:: Replace lib32-sdl2 with multilib/lib32-sdl2-compat? [Y/n]
:: Replace p7zip with extra/7zip? [Y/n]
:: Replace sdl2 with extra/sdl2-compat? [Y/n]
:: Replace webrtc-audio-processing with extra/webrtc-audio-processing-0.3? [Y/n]
resolving dependencies...
looking for conflicting packages...
warning: removing 'nodejs-23.7.0-1' from target list because it conflicts with 'nodejs-lts-jod-22.13.1-1'
:: nodejs-lts-jod-22.13.1-1 and nodejs-23.4.0-1 are in conflict. Remove nodejs? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nodejs-lts-jod-22.13.1-1 and nodejs-23.4.0-1 are in conflict

Can I get some pointers on how to solve this (and what caused it in the first place)?
I haven't had any luck googling the warnings/error messages

Last edited by DJArch (2025-02-04 03:38:44)

Offline

#2 2025-02-04 03:35:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,634

Re: [Solved] Help with system update

What happens when you let it remove nodejs?

Online

#3 2025-02-04 03:39:44

DJArch
Member
Registered: 2021-06-23
Posts: 19

Re: [Solved] Help with system update

This is embarrassing. Thanks. I didn't notice the default was [N] for that question.

After letting it remove nodejs, it just moves on with the update.

Offline

#4 2025-02-04 03:43:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,381

Re: [Solved] Help with system update

Do you need nodejs-lts-jod ? Do you need nodejs?  Will one or the other cover your needs?

Edit: Too slow

Last edited by ewaller (2025-02-04 03:44:26)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2025-02-04 06:33:22

HipnoTanatos
Member
From: Argentina
Registered: 2025-02-04
Posts: 2

Re: [Solved] Help with system update

I have the same problem, but i dont understand why ´nodejs-lts-jod´ is conflicting. I never installed that package.

pacman -Qs nodejs-lts-jod

does not report any  installation of nodejs-lts.

pacman -Qu | grep nodejs-lts-jod

does not report  nodejs-lts-jod  in the list.

pacman -Qi nodejs-lts-jod

does not report ´nodejs-lts-jod´ as dependence of any packet (all dependencies on Node.js are for ´nodejs´ package, not LTS version).

I know i can remove ´nodejs´ package, but i would like to understand what is happening.

Last edited by HipnoTanatos (2025-02-04 06:35:10)

Offline

#6 2025-02-04 08:11:41

Ernest0x
Member
Registered: 2007-01-24
Posts: 5

Re: [Solved] Help with system update

HipnoTanatos wrote:

I have the same problem, but i dont understand why ´nodejs-lts-jod´ is conflicting. I never installed that package.

pacman -Qs nodejs-lts-jod

does not report any  installation of nodejs-lts.

pacman -Qu | grep nodejs-lts-jod

does not report  nodejs-lts-jod  in the list.

pacman -Qi nodejs-lts-jod

does not report ´nodejs-lts-jod´ as dependence of any packet (all dependencies on Node.js are for ´nodejs´ package, not LTS version).

I know i can remove ´nodejs´ package, but i would like to understand what is happening.

The new version of at least one of the packages you are trying to upgade depends on 'nodejs-lts-jod'. In my case, that package was 'prettier'.
This command may come handy for you:

pacman -Q -u | grep -o -E '^[^ ]+' | xargs pacman -S -i | grep -E 'Name|Depends On' | grep -B 1 'nodejs-lts-jod'

Last edited by Ernest0x (2025-02-04 08:15:28)

Offline

#7 2025-02-04 17:00:09

hutou
Member
Registered: 2012-03-01
Posts: 13

Re: [Solved] Help with system update

Adding "sudo" and "LANG=C" may be useful for non-english locales:

sudo pacman -Q -u | grep -o -E '^[^ ]+' | LANG=C xargs pacman -S -i | grep -E 'Name|Depends On' | grep -B 1 'nodejs-lts-jod'

I also get prettier as a dependency: in my system, prettier 3.4.1-1 is installed, but not nodejs-lts-jod
So, this seems somewhat strange.

I guess nodejs and nodejs-lst-jod are not in sync.


Dell laptop XPS15 running ArchLinux and Gnome

Offline

#8 2025-02-04 17:18:12

hutou
Member
Registered: 2012-03-01
Posts: 13

Re: [Solved] Help with system update

And running

sudo pacman -Syu --ignore prettier

allows system update !


Dell laptop XPS15 running ArchLinux and Gnome

Offline

#9 2025-02-05 01:01:30

HipnoTanatos
Member
From: Argentina
Registered: 2025-02-04
Posts: 2

Re: [Solved] Help with system update

Yes, is prettier package for me too. Still somewhat strange, but a lot clearer for me now.
Thank you all

Last edited by HipnoTanatos (2025-02-05 01:03:04)

Offline

#10 2025-02-10 09:41:36

cyq
Member
Registered: 2023-08-06
Posts: 4

Re: [Solved] Help with system update

Ran into this today. In my case the offending package is `extra/yaml-language-server` FYI.

2025-03-17 update: fixed in `yaml-language-server-1.17.0-2`

Last edited by cyq (2025-03-17 04:54:43)

Offline

#11 2025-02-10 09:47:07

daenney
Member
Registered: 2020-05-23
Posts: 3

Re: [Solved] Help with system update

It seems a couple of packages have been made to explicitly depend on nodejs-lts-jod, instead of requiring a Nodejs runtime.

Most packages seem to declare

depends=('nodejs')

, but yaml-language-server, prettier and hedgedoc have an explicit

depends=('nodejs-lts-jod')

since a few days.

Offline

#12 2025-02-11 13:08:18

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 101

Re: [Solved] Help with system update

This commit states:
Prettier does not support the Current (v23) release.

Surprisingly I couldn't find anything upstream, see https://github.com/prettier/prettier/issues/ !?
Even the just released new version 3.5.0 doesn't seem to solve this issue...

Offline

Board footer

Powered by FluxBB