bash-language-server icon indicating copy to clipboard operation
bash-language-server copied to clipboard

Package conflict in Fedora 37

Open RaulPPelaez opened this issue 1 year ago • 4 comments

Code editor

N/A

Platform

Fedora 37

Version

4.6.1-2

What steps will reproduce the bug?

In Fedora 37, run:

sudo dnf install nodejs-bash-language-server

How often does it reproduce? Is there a required condition?

A few days ago a nodejs update broke the package for bash-language-server

What is the expected behavior?

Package should install successfully

What do you see instead?

Last metadata expiration check: 0:07:26 ago on Thu 09 Mar 2023 08:23:34 AM CET.
Dependencies resolved.
=============================================================================================================================================================================
 Package                                                Architecture                      Version                                   Repository                          Size
=============================================================================================================================================================================
Installing:
 nodejs-bash-language-server                            noarch                            4.6.1-2.fc37                              updates                            1.0 M
Installing weak dependencies:
 ShellCheck                                             x86_64                            0.8.0-3.fc37                              fedora                             2.4 M

Transaction Summary
=============================================================================================================================================================================
Install  2 Packages

Total download size: 3.4 M
Installed size: 22 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): nodejs-bash-language-server-4.6.1-2.fc37.noarch.rpm                                                                                   1.1 MB/s | 1.0 MB     00:00    
(2/2): ShellCheck-0.8.0-3.fc37.x86_64.rpm                                                                                                    2.3 MB/s | 2.4 MB     00:01    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                        1.5 MB/s | 3.4 MB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/lib/node_modules from install of nodejs-bash-language-server-4.6.1-2.fc37.noarch conflicts with file from package nodejs-1:18.14.2-5.fc37.x86_64

Additional information

No response

RaulPPelaez avatar Mar 09 '23 07:03 RaulPPelaez

Any more information about why it conflicts? Which version of node do you have installed (node --version)?

skovhus avatar Mar 09 '23 10:03 skovhus

$ node --version
v18.14.2

I am not sure what the problem is, so I cannot give you much more info -.- There was a package called npm in the fedora repos. At some point recently it got change into nodejs-npm, which caused a conflict for me. Now, if you try to install npm, you get:

$ sudo dnf install npm
Last metadata expiration check: 2:11:51 ago on Thu 09 Mar 2023 09:26:51 AM CET.
Package nodejs-npm-1:9.5.0-1.18.14.2.5.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

I believe this change somehow caused the packages npm (now installed as nodejs-npm) and nodejs-bash-language-server to try and modify the same folder /usr/lib/node_modules in the system. Now, this might be a weird issue in my machine only, so If you cannot reproduce it you may just close this issue.

RaulPPelaez avatar Mar 09 '23 10:03 RaulPPelaez

Not just you.

  • Running Fedora 37 KDE
  • Installed node & npm with dnf install nodejs
  • Installed bash-language-server with dnf install -y nodejs-bash-language-server
  • Use system and update packages frequently for months. Everything works great
  • In the last week, dnf upgrade starts to error out with Error: Transaction test error: file /usr/lib/node_modules from install of nodejs-1:18.14.2-5.fc37.x86_64 conflicts with file from package nodejs-bash-language-server-4.6.1-2.fc37.noarch

ghost avatar Mar 09 '23 21:03 ghost

Please report those bugs in the upstream fedora bugzilla or the fedora maintainer will nto be aware of it!

The package works fine on Fedora 39. Fedora 37 is EOL so this can be closed.

cryptomilk avatar Aug 07 '23 09:08 cryptomilk