Closed mauromalara closed 1 year ago
It seems that the Chromium package can not be installed in the RHEL8 system because there are no repositories that provides the necessary dependencies.
Problem: conflicting requests
- nothing provides libQt5Core.so.5()(64bit) needed by chromium-116.0.5845.96-1.el8.x86_64
- nothing provides libQt5Core.so.5(Qt_5)(64bit) needed by chromium-116.0.5845.96-1.el8.x86_64
- nothing provides libQt5Gui.so.5()(64bit) needed by chromium-116.0.5845.96-1.el8.x86_64
- nothing provides libQt5Gui.so.5(Qt_5)(64bit) needed by chromium-116.0.5845.96-1.el8.x86_64
...
The same behavior is reproduced in RHEL9:
To fix this error, some workarounds were tested without no success.
A possible approach has been found to solve this issue. The workaround consists in adding the official key of the CentOS 8 repositories; add the Baseos, Extras and Appstream repositories and update the repositories list.
[root@redhat8 vagrant]# yum update
CentOS Linux 8 - Extras 16 kB/s | 10 kB 00:00
CentOS Linux 8 - BaseOS 2.7 MB/s | 4.6 MB 00:01
CentOS Linux 8 - AppStream 3.0 MB/s | 8.4 MB 00:02
Dependencies resolved.
Nothing to do.
Complete!
[root@redhat8 vagrant]# yum install chromium
Last metadata expiration check: 0:00:24 ago on Thu 28 Sep 2023 08:23:32 AM UTC.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
chromium x86_64 116.0.5845.96-1.el8 epel 75 M
Installing dependencies:
adwaita-cursor-theme noarch 3.28.0-2.el8 appstream 647 k
adwaita-icon-theme noarch 3.28.0-2.el8 appstream 11 M
alsa-lib x86_64 1.2.5-4.el8 appstream 489 k
at-spi2-atk x86_64 2.26.2-1.el8 appstream 89 k
at-spi2-core x86_64 2.28.0-1.el8 appstream 169 k
atk x86_64 2.28.1-1.el8 appstream 272 k
avahi x86_64 0.7-20.el8 baseos 281 k
avahi-libs x86_64 0.7-20.el8 baseos 62 k
cairo x86_64 1.15.12-3.el8 appstream 721 k
cairo-gobject x86_64 1.15.12-3.el8 appstream 33 k
chromium-common x86_64 116.0.5845.96-1.el8 epel 14 M
colord-libs x86_64 1.4.2-1.el8 appstream 236 k
cups-libs x86_64 1:2.2.6-40.el8 baseos 433 k
dejavu-fonts-common noarch 2.35-7.el8 baseos 74 k
dejavu-sans-mono-fonts noarch 2.35-7.el8 baseos 447 k
flac-libs x86_64 1.3.2-9.el8 appstream 217 k
fontconfig x86_64 2.13.1-4.el8 baseos 274 k
fontpackages-filesystem noarch 1.44-22.el8 baseos 16 k
fribidi x86_64 1.0.4-8.el8 appstream 89 k
gdk-pixbuf2 x86_64 2.36.12-5.el8 baseos 467 k
gdk-pixbuf2-modules x86_64 2.36.12-5.el8 appstream 109 k
glib-networking x86_64 2.56.1-1.1.el8 baseos 155 k
glx-utils x86_64 8.4.0-5.20181118git1830dcb.el8 appstream 44 k
graphite2 x86_64 1.3.10-10.el8 appstream 122 k
gsettings-desktop-schemas
x86_64 3.32.0-6.el8 baseos 633 k
gsm x86_64 1.0.17-5.el8 appstream 37 k
gstreamer1 x86_64 1.16.1-2.el8 appstream 1.3 M
gtk-update-icon-cache x86_64 3.22.30-8.el8 appstream 32 k
gtk3 x86_64 3.22.30-8.el8 appstream 4.5 M
harfbuzz x86_64 1.7.5-3.el8 appstream 295 k
hicolor-icon-theme noarch 0.17-2.el8 appstream 49 k
jasper-libs x86_64 2.0.14-5.el8 appstream 167 k
jbigkit-libs x86_64 2.1-14.el8 appstream 55 k
lcms2 x86_64 2.9-2.el8 appstream 165 k
libICE x86_64 1.0.9-15.el8 appstream 74 k
libSM x86_64 1.2.3-1.el8 appstream 48 k
libX11 x86_64 1.6.8-5.el8 appstream 611 k
libX11-common noarch 1.6.8-5.el8 appstream 158 k
libX11-xcb x86_64 1.6.8-5.el8 appstream 14 k
libXau x86_64 1.0.9-3.el8 appstream 37 k
libXcomposite x86_64 0.4.4-14.el8 appstream 28 k
libXcursor x86_64 1.1.15-3.el8 appstream 36 k
libXdamage x86_64 1.1.4-14.el8 appstream 27 k
libXext x86_64 1.3.4-1.el8 appstream 45 k
libXfixes x86_64 5.0.3-7.el8 appstream 25 k
libXft x86_64 2.3.3-1.el8 appstream 67 k
libXi x86_64 1.7.10-1.el8 appstream 49 k
libXinerama x86_64 1.1.4-1.el8 appstream 16 k
libXrandr x86_64 1.5.2-1.el8 appstream 34 k
libXrender x86_64 0.9.10-7.el8 appstream 33 k
libXtst x86_64 1.2.3-7.el8 appstream 22 k
libXxf86vm x86_64 1.1.4-9.el8 appstream 19 k
libasyncns x86_64 0.8-14.el8 appstream 32 k
libatomic x86_64 8.5.0-4.el8_5 baseos 24 k
libbsd x86_64 0.11.7-2.el8 epel 120 k
libcanberra x86_64 0.30-18.el8 appstream 93 k
libcanberra-gtk3 x86_64 0.30-18.el8 appstream 39 k
libdatrie x86_64 0.2.9-7.el8 appstream 33 k
libdrm x86_64 2.4.106-2.el8 appstream 167 k
libepoxy x86_64 1.5.8-1.el8 appstream 225 k
libevdev x86_64 1.10.0-1.el8 appstream 44 k
libglvnd x86_64 1:1.3.2-1.el8 appstream 127 k
libglvnd-egl x86_64 1:1.3.2-1.el8 appstream 49 k
libglvnd-glx x86_64 1:1.3.2-1.el8 appstream 137 k
libgudev x86_64 232-4.el8 baseos 33 k
libgusb x86_64 0.3.0-1.el8 baseos 49 k
libicu x86_64 60.3-2.el8_1 baseos 8.8 M
libinput x86_64 1.16.3-2.el8 appstream 217 k
libjpeg-turbo x86_64 1.5.3-12.el8 appstream 157 k
libmd x86_64 1.1.0-1.el8 epel 45 k
libmodman x86_64 2.0.1-17.el8 baseos 36 k
libogg x86_64 2:1.3.2-10.el8 appstream 31 k
libpciaccess x86_64 0.14-1.el8 baseos 32 k
libproxy x86_64 0.4.15-5.2.el8 baseos 75 k
libsndfile x86_64 1.0.28-10.el8_4.1 appstream 193 k
libsoup x86_64 2.62.3-2.el8 baseos 424 k
libthai x86_64 0.1.27-2.el8 appstream 203 k
libtiff x86_64 4.0.9-20.el8 appstream 188 k
libtool-ltdl x86_64 2.4.6-25.el8 baseos 58 k
libvorbis x86_64 1:1.3.6-2.el8 appstream 196 k
libwacom x86_64 1.6-3.el8 appstream 42 k
libwacom-data noarch 1.6-3.el8 appstream 104 k
libwayland-client x86_64 1.19.0-1.el8 appstream 39 k
libwayland-cursor x86_64 1.19.0-1.el8 appstream 26 k
libwayland-egl x86_64 1.19.0-1.el8 appstream 19 k
libwayland-server x86_64 1.19.0-1.el8 appstream 47 k
libxcb x86_64 1.13.1-1.el8 appstream 229 k
libxkbcommon-x11 x86_64 0.9.1-1.el8 appstream 25 k
libxshmfence x86_64 1.3-2.el8 appstream 13 k
libxslt x86_64 1.1.32-6.el8 baseos 250 k
mesa-libEGL x86_64 21.1.5-1.el8 appstream 135 k
mesa-libGL x86_64 21.1.5-1.el8 appstream 184 k
mesa-libgbm x86_64 21.1.5-1.el8 appstream 57 k
mesa-libglapi x86_64 21.1.5-1.el8 appstream 66 k
minizip x86_64 2.8.9-2.el8 epel 124 k
minizip1.2 x86_64 1.2.11-24.el8 epel 32 k
mtdev x86_64 1.1.5-12.el8 appstream 24 k
nspr x86_64 4.32.0-1.el8_4 appstream 142 k
nss x86_64 3.67.0-7.el8_5 appstream 741 k
nss-mdns x86_64 0.14.1-9.el8 epel 49 k
nss-softokn x86_64 3.67.0-7.el8_5 appstream 487 k
nss-softokn-freebl x86_64 3.67.0-7.el8_5 appstream 395 k
nss-sysinit x86_64 3.67.0-7.el8_5 appstream 73 k
nss-util x86_64 3.67.0-7.el8_5 appstream 137 k
pango x86_64 1.42.4-8.el8 appstream 297 k
pipewire-libs x86_64 0.3.6-1.el8 appstream 712 k
pixman x86_64 0.38.4-1.el8 appstream 257 k
pulseaudio-libs x86_64 14.0-2.el8 appstream 681 k
qt5-qtbase x86_64 5.15.2-3.el8 appstream 3.6 M
qt5-qtbase-common noarch 5.15.2-3.el8 appstream 41 k
qt5-qtbase-gui x86_64 5.15.2-3.el8 appstream 6.1 M
rest x86_64 0.8.1-2.el8 appstream 70 k
rtkit x86_64 0.11-19.el8 appstream 61 k
sbc x86_64 1.3-9.el8 appstream 65 k
sound-theme-freedesktop noarch 0.8-9.el8 appstream 382 k
xcb-util x86_64 0.4.0-10.el8 appstream 22 k
xcb-util-image x86_64 0.4.0-9.el8 appstream 21 k
xcb-util-keysyms x86_64 0.4.0-7.el8 appstream 16 k
xcb-util-renderutil x86_64 0.3.9-10.el8 appstream 19 k
xcb-util-wm x86_64 0.4.1-12.el8 appstream 32 k
Installing weak dependencies:
abattis-cantarell-fonts noarch 0.0.25-6.el8 appstream 156 k
dconf x86_64 0.28.0-4.el8 appstream 108 k
pipewire x86_64 0.3.6-1.el8 appstream 108 k
Transaction Summary
================================================================================
Install 124 Packages
Total download size: 141 M
Installed size: 432 M
Is this ok [y/N]:
This could be done temporarily in the system: add the key and the repositories, and when the Chromium package is installed, removed the key and the repositories. This must be discussed with the CICD team before applying a solution.
After discussing the proposal with the team, in RHEL cases, the CentOS repository will be added and configured to install the dashboard dependencies.
This logic consists in:
To perform this, two functions have been added:
installCommon_addCentOSRepository
: adds the repositories passed by parameter.installCommon_configureCentOSRepositories
: imports the official CentOS key and calls the installCommon_addCentOSRepository
function.installCommon_removeCentOSrepositories
: removes the CentOS configuration.The installCommon_checkChromium
has been modified, and calls the installCommon_configureCentOSRepositories
function.
The dashboard_installReportDependencies
has been modified, and removes the CentOS configuration when the dependencies are installed.
As part of the 4.6.0 Beta 1 release, I've tested the installation of the central components.
While installing the Wazuh Dashboard I see 2 warning messages.
Steps to reproduce