On 2020-01-06 12:32, Norman Gaywood wrote:
After updating a Fedora 30 system to 31, I can't install scala:
# dnf module list scala
Last metadata expiration check: 0:31:21 ago on Mon 06 Jan 2020 13:31:04 AEDT.
@modulefailsafe
Name Stream Profiles
Summary
scala 2.10 [e] default A
hybrid functional/object-oriented language for the JVM
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
# dnf install scala
Last metadata expiration check: 0:31:32 ago on Mon 06 Jan 2020 13:31:04 AEDT.
All matches were filtered out by modular filtering for argument: scala
Error: Unable to find a match: scala
If I try to install a package that depends on scala:
# dnf install ant-scala
Last metadata expiration check: 0:32:13 ago on Mon 06 Jan 2020 13:31:04 AEDT.
Error:
Problem: package ant-scala-2.10.6-16.fc31.noarch requires scala = 2.10.6-16.fc31, but
none of the providers can be installed
- conflicting requests
- package scala-2.10.6-16.fc31.noarch is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages)
How can I find out why scalar is being "filtered out by modular filtering"?
This is an updated fc30->fc31 system. A clean install of fc31 will install scala OK.
It can be accomplished in the follow manner..... (errors included for clarity)
I upgraded my F30Xfce VM after enable of the scala module.
[root@f30x ~]# dnf module list scala
Last metadata expiration check: 0:01:23 ago on Mon 06 Jan 2020 02:23:56 PM CST.
@modulefailsafe
Name Stream Profiles Summary
scala 2.10 [e] default A hybrid functional/object-oriented language for the JVM
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@f30x ~]# dnf install ant-scala
Last metadata expiration check: 0:01:30 ago on Mon 06 Jan 2020 02:23:56 PM CST.
Error:
Problem: package ant-scala-2.10.6-16.fc31.noarch requires scala = 2.10.6-16.fc31, but
none of the providers can be installed
- conflicting requests
- package scala-2.10.6-16.fc31.noarch is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages)
[root@f30x ~]# dnf module disable scala <--------DISABLE the module
Last metadata expiration check: 0:01:47 ago on Mon 06 Jan 2020 02:23:56 PM CST.
Dependencies resolved.
==================================================================================
Package Architecture Version Repository Size
==================================================================================
Disabling modules:
scala
Transaction Summary
==================================================================================
Is this ok [y/N]: y
Complete!
[root@f30x ~]# dnf install ant-scala
Last metadata expiration check: 0:02:00 ago on Mon 06 Jan 2020 02:23:56 PM CST.
Dependencies resolved.
==================================================================================
Package Arch Version Repository Size
==================================================================================
Installing:
ant-scala noarch 2.10.6-16.fc31 fedora 9.7 k
Installing dependencies:
ant noarch 1.10.5-3.module_f28+4207+d722d224
fedora-modular 192 k
ant-lib noarch 1.10.5-3.module_f28+4207+d722d224
fedora-modular 2.0 M
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
java-1.8.0-openjdk x86_64 1:1.8.0.232.b09-0.fc31 updates 281 k
java-1.8.0-openjdk-headless
x86_64 1:1.8.0.232.b09-0.fc31 updates 32 M
copy-jdk-configs noarch 3.7-4.fc31 fedora 24 k
giflib x86_64 5.2.1-3.fc31 fedora 48 k
javapackages-filesystem
noarch 5.3.0-6.fc31 fedora 11 k
javapackages-tools noarch 5.3.0-6.fc31 fedora 32 k
jline noarch 2.14.6-5.fc31 fedora 151 k
lksctp-tools x86_64 1.0.16-12.fc31 fedora 94 k
lua x86_64 5.3.5-6.fc31 fedora 181 k
lua-posix x86_64 33.3.1-14.fc31 fedora 174 k
scala noarch 2.10.6-16.fc31 fedora 22 M
ttmkfdir x86_64 3.0.9-57.fc31 fedora 56 k
tzdata-java noarch 2019c-1.fc31 fedora 157 k
xorg-x11-fonts-Type1
noarch 7.5-23.fc31 fedora 500 k
Installing weak dependencies:
java-1.8.0-openjdk-devel
x86_64 1:1.8.0.232.b09-0.fc31 updates 9.3 M
Enabling module streams:
ant 1.10
maven 3.5
Transaction Summary
==================================================================================
Install 21 Packages
Total download size: 67 M
Installed size: 190 M
Is this ok [y/N]: n
Operation aborted.
--
The key to getting good answers is to ask good questions.