amuehlem / MISP-RPM

RPM packages for MISP
32 stars 14 forks source link

Upgrade to v2.4.145 Failing with Dependency Errors #54

Closed JoePJisc closed 3 years ago

JoePJisc commented 3 years ago

Hi,

I'm currently unable to upgrade to the v2.4.145 to address the advised security vulnerability, I'm getting the following output from yum update

Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-pecl-rdkafka
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-pdo
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: MariaDB-server > 10.3
           Installed: MariaDB-server-10.1.48-1.el7.centos.x86_64 (@mariadb)
               MariaDB-server = 10.1.48-1.el7.centos
           Available: MariaDB-server-10.1.46-1.el7.centos.x86_64 (mariadb)
               MariaDB-server = 10.1.46-1.el7.centos
           Available: MariaDB-server-10.1.47-1.el7.centos.x86_64 (mariadb)
               MariaDB-server = 10.1.47-1.el7.centos
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-pecl-zip
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-xml
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-pecl-gnupg
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-mbstring
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-brotli
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-intl
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-pecl-ssdeep
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-cli
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-pecl-redis5
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-mysqlnd
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-opcache
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-gd
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-json
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php-bcmath
Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: php74-php
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Having re-run these commands from the install docs:

yum install https://certrepo.switch.ch/certrepo/misp/misp-release-1.1-1.el7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

I was able to reduce this to:

Error: Package: misp-2.4.145-2.el7.x86_64 (misp)
           Requires: MariaDB-server > 10.3
           Installed: MariaDB-server-10.1.48-1.el7.centos.x86_64 (@mariadb)
               MariaDB-server = 10.1.48-1.el7.centos
           Available: MariaDB-server-10.1.46-1.el7.centos.x86_64 (mariadb)
               MariaDB-server = 10.1.46-1.el7.centos
           Available: MariaDB-server-10.1.47-1.el7.centos.x86_64 (mariadb)
               MariaDB-server = 10.1.47-1.el7.centos
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Any suggestions on resolving the 10.3 MariaDB dependency would be welcomed

amuehlem commented 3 years ago

Hi JoeP-oss

Have you updated the yum cache?

yum clean all

This will remove all older (cached) versions and re-download all repositories.

I've also added some upgrade notes, regarding the MySQL Upgrade https://github.com/amuehlem/MISP-RPM/blob/master/UPGRADE.md

JoePJisc commented 3 years ago

Thanks @amuehlem that was the step I'd missed!