Conflicting requests installing groovy

Why do I get an error when try to install groovy on Fedora 31:

sudo dnf install groovy

Last metadata expiration check: 0:17:13 ago on Thu 12 Dec 2019 12:50:18 PM CET.
Error:
Problem: package groovy-2.4.8-10.fc31.noarch requires groovy-groovysh = 2.4.8-10.fc31, but none of the providers can be installed

  • package groovy-groovysh-2.4.8-10.fc31.noarch requires mvn(jline:jline), but none of the providers can be installed
  • conflicting requests
  • package jline-2.14.6-4.module_f31+6165+9b01e00c.noarch is filtered out by modular filtering
  • package jline-2.14.6-4.module_f31+6519+12cd0b27.noarch is filtered out by modular filtering
  • package jline-2.14.6-4.module_f31+6793+1c93c38e.noarch is filtered out by modular filtering
  • package jline-2.14.6-5.fc31.noarch is filtered out by modular filtering
    (try to add ‘–skip-broken’ to skip uninstallable packages)

Please be sure you have enable modular and update-modular enable:

dnf repolist                                                            
repo id                               repo name
fedora-modular                        Fedora Modular 31 - x86_64
updates-modular                       Fedora Modular 31 - x86_64 - Updates

Enabling a DNF Repository

To enable a particular repository or repositories, type the following at a shell prompt as root :

dnf config-manager --set-enabled repository

after that:

sudo dnf install  groovy

Last metadata expiration check: 0:00:50 ago on Thu Dec 12 15:31:11 2019.
Dependencies resolved.
================================================================================
 Package         Arch   Version                           Repository       Size
================================================================================
Installing:
 groovy          noarch 2.4.8-10.fc31                     fedora          2.1 M
Installing dependencies:
 ant             noarch 1.10.5-3.module_f28+4207+d722d224 fedora-modular  192 k
 ant-antlr       noarch 1.10.5-3.module_f28+4207+d722d224 fedora-modular   44 k
 ant-junit       noarch 1.10.5-3.module_f28+4207+d722d224 fedora-modular  181 k
 ant-lib         noarch 1.10.5-3.module_f28+4207+d722d224 fedora-modular  2.0 M
 antlr-tool      noarch 2.7.7-56.module_f28+3872+5b76729e fedora-modular  364 k
 bsf             noarch 2.4.0-30.module_f28+3872+5b76729e fedora-modular  108 k
 hamcrest-core   noarch 1.3-23.module_f28+3872+5b76729e   fedora-modular   58 k
 junit           noarch 1:4.12-9.module_f28+3872+5b76729e fedora-modular  299 k
 jzlib           noarch 1.1.3-8.module_f28+3872+5b76729e  fedora-modular   83 k
 apache-commons-cli
                 noarch 1.4-4.module_f29+6921+ca3ed728    updates-modular  70 k
 apache-commons-codec
                 noarch 1.11-3.module_f29+6921+ca3ed728   updates-modular 281 k
 apache-commons-logging
                 noarch 1.2-13.module_f29+6921+ca3ed728   updates-modular  78 k
 base64coder     noarch 20101219-23.module_f31+6793+1c93c38e
                                                          updates-modular  16 k
 beust-jcommander
                 noarch 1.71-6.module_f31+6793+1c93c38e   updates-modular  83 k
 glassfish-el-api
                 noarch 3.0.1-0.12.b08.module_f31+6793+1c93c38e
                                                          updates-modular 102 k
 glassfish-jsp-api
                 noarch 2.3.2-0.11.b01.module_f31+6793+1c93c38e
                                                          updates-modular  72 k
 glassfish-servlet-api
                 noarch 3.1.0-16.module_f31+6793+1c93c38e updates-modular  86 k
 hawtjni-runtime noarch 1.16-2.module_f29+6921+ca3ed728   updates-modular  38 k
 jansi           noarch 1.17.1-1.module_f29+6921+ca3ed728 updates-modular  75 k
 jansi-native    x86_64 1.7-7.module_f29+6921+ca3ed728    updates-modular  71 k
 jline           noarch 2.14.6-4.module_f31+6793+1c93c38e updates-modular 151 k
 objectweb-asm   noarch 7.0-2.module_f31+6793+1c93c38e    updates-modular 366 k
 snakeyaml       noarch 1.17-7.module_f31+6793+1c93c38e   updates-modular 242 k
 testng          noarch 6.14.3-7.module_f31+6793+1c93c38e updates-modular 820 k
 xpp3            noarch 1.1.4-20.c.module_f31+6793+1c93c38e
                                                          updates-modular 289 k
 xpp3-minimal    noarch 1.1.4-20.c.module_f31+6793+1c93c38e
                                                          updates-modular  34 k
 apache-ivy      noarch 2.4.0-18.fc31                     fedora          1.1 M
 extra166y       noarch 1.7.0-12.fc31                     fedora          549 k
 gpars           noarch 1.2.1-14.fc31                     fedora          565 k
 groovy-ant      noarch 2.4.8-10.fc31                     fedora          112 k
 groovy-bsf      noarch 2.4.8-10.fc31                     fedora           24 k
 groovy-console  noarch 2.4.8-10.fc31                     fedora          1.0 M
 groovy-docgenerator
                 noarch 2.4.8-10.fc31                     fedora          185 k
 groovy-groovydoc
                 noarch 2.4.8-10.fc31                     fedora          187 k
 groovy-groovysh noarch 2.4.8-10.fc31                     fedora          709 k
 groovy-jmx      noarch 2.4.8-10.fc31                     fedora          222 k
 groovy-json     noarch 2.4.8-10.fc31                     fedora          219 k
 groovy-jsr223   noarch 2.4.8-10.fc31                     fedora           37 k
 groovy-lib      noarch 2.4.8-10.fc31                     fedora          8.1 M
 groovy-nio      noarch 2.4.8-10.fc31                     fedora           27 k
 groovy-servlet  noarch 2.4.8-10.fc31                     fedora           42 k
 groovy-sql      noarch 2.4.8-10.fc31                     fedora          110 k
 groovy-swing    noarch 2.4.8-10.fc31                     fedora          591 k
 groovy-templates
                 noarch 2.4.8-10.fc31                     fedora          169 k
 groovy-test     noarch 2.4.8-10.fc31                     fedora          138 k
 groovy-testng   noarch 2.4.8-10.fc31                     fedora           18 k
 groovy-xml      noarch 2.4.8-10.fc31                     fedora          356 k
 jcsp            noarch 1.1-0.12.rc5.fc31                 fedora          594 k
 multiverse      noarch 0.7.0-11.fc31                     fedora          227 k
 netty-tcnative  x86_64 1.1.30-14.fc31                    fedora          124 k
 netty3          noarch 3.10.6-7.fc31                     fedora          1.2 M
 osgi-core       noarch 7.0.0-2.fc31                      fedora          165 k
 qdox            noarch 2.0-6.M9.fc31                     fedora          299 k
 xstream         noarch 1.4.11.1-3.fc31                   fedora          525 k

Transaction Summary
================================================================================
Install  55 Packages

Total download size: 26 M
Installed size: 37 M
Is this ok [y/N]: 

Thank you for the fast answer but it doesn’t fix my issue:

sudo dnf config-manager --set-enabled fedora-modular
sudo dnf config-manager --set-enabled updates-modular
sudo dnf install groovy
Fedora Modular 31 - x86_64 26 kB/s | 23 kB 00:00
Fedora Modular 31 - x86_64 - Updates 35 kB/s | 22 kB 00:00
Error:
Problem: package groovy-2.4.8-10.fc31.noarch requires groovy-groovysh = 2.4.8-10.fc31, but none of the providers can be installed

  • package groovy-groovysh-2.4.8-10.fc31.noarch requires mvn(jline:jline), but none of the providers can be installed
  • conflicting requests
  • package jline-2.14.6-4.module_f31+6165+9b01e00c.noarch is filtered out by modular filtering
  • package jline-2.14.6-4.module_f31+6519+12cd0b27.noarch is filtered out by modular filtering
  • package jline-2.14.6-4.module_f31+6793+1c93c38e.noarch is filtered out by modular filtering
  • package jline-2.14.6-5.fc31.noarch is filtered out by modular filtering
    (try to add ‘–skip-broken’ to skip uninstallable packages)

Jline is a modularity provided by fedora-modular., maybe you have to enable some modular or you’re blocking something:

Could you do what DNF sugest:

sudo dnf install groovy --skip-broken --allowerasing

This is all modules about java

dnf module list | grep -i 'java'

also, list all enable

dnf module list --enabled

see is anything is disabled

dnf module list --disabled
dnf module list --profile

To be more specific:

dnf --disablerepo="*" --enablerepo=fedora-modular list available
dnf --disablerepo="*" --enablerepo=fedora-modular list available | grep jline 

Reference

dnf module list --help

Regards.,.

I tried to install this package on a fresh Fedora 31 installation, and I didn’t encounter any conflict or unresolved dependency.

I think that there is some mess. You upgraded your system from F30 to F31, right?
Indeed in a fresh F30 installation we have:

dnf info jline
...
Name         : jline
Version      : 2.14.6
Release      : 2.module_1889+fac7270b
Repository   : fedora-modular
...

While in F31 we have:

dnf info jline
...
Name         : jline
Version      : 2.14.6
Release      : 5.fc31
Repository   : fedora
...

So in F30 such package was in the modular repository, while in F31 it is in the regular one. In your case, dnf is still trying to grab the package from the modular repository :thinking:?

Did you try to issue these commands prior to install groovy?
sudo dnf clean all
sudo dnf update --refresh

@alciregi are you sure? I’m on :fedora: 31 and This what i get, and also I don’t have any problem:

dnf info jline
Available Packages
Name         : jline
Version      : 2.14.6
Release      : 4.module_f31+6793+1c93c38e
Architecture : noarch
Size         : 151 k
Source       : jline-2.14.6-4.module_f31+6793+1c93c38e.src.rpm
Repository   : updates-modular
Summary      : JLine is a Java library for handling console input
URL          : https://github.com/jline/jline2
License      : BSD
Description  : JLine is a Java library for handling console input. It is similar
             : in functionality to BSD editline and GNU readline. People familiar
             : with the readline/editline capabilities for modern shells (such as
             : bash and tcsh) will find most of the command editing features of
             : JLine to be familiar.

I will also would like to share with you:

Regards.,

:thinking: :thinking: @hhlp you are right.
On my laptop the result is as yours, on a freshly installed VM, it differs.

1 Like

However here: https://apps.fedoraproject.org/packages/jline the latest version is jline-2.14.6-5 while on our system it is 2.14.6-4 :thinking:
Indeed here: https://dl.fedoraproject.org/pub/fedora/linux/releases/31/Everything/x86_64/os/Packages/j/ you can find jline-2.14.6-5.fc31.noarch.rpm
:thinking: something like a bug? Or I’m not able to understand modularity?

And also https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/WKUK6YSLSELO2VK55EIAKPW4ZJIWSJGO/
This maybe explains why on a fresh install I see a different version available.

So
sudo dnf list | grep jline
jline.noarch 2.14.6-4.module_f31+6793+1c93c38e updates-modular

sudo dnf module disable maven eclipse
sudo dnf list | grep jline
jline.noarch 2.14.6-5.fc31 fedora