Problems installing phpVirtualBox-5.2

Good morning friends, I have a problem installing the phpVirtualBox-5.2, I would appreciate the help.

[root@nethserver ~]#  echo '{"action":"install","packages":["@nethserver-virtualbox-5.2-phpvirtualbox"]}' | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-packages/update | jq
{
  "state": "running",
  "steps": -1,
  "event": "Initialization"
}
{
  "state": "running",
  "steps": -1,
  "event": "Resolving RPM dependencies"
}
{
  "state": "running",
  "steps": -1,
  "event": "Downloading Packages"
}
{
  "state": "running",
  "steps": -1,
  "event": "Check Package Signatures"
}
{
  "state": "running",
  "steps": -1,
  "event": "Running Test Transaction"
}
{
  "status": "failed",
  "message": "[YumRPMCheckError] [u'ERROR with transaction check vs depsolve:', 'php-common(x86-64) = 5.4.16-48.el7 is needed by php-ldap-5.4.16-48.el7.x86_64', 'php-common(x86-64) = 5.4.16-48.el7 is needed by php-soap-5.4.16-48.el7.x86_64', 'php-common(x86-64) = 5.4.16-48.el7 is needed by php-gd-5.4.16-48.el7.x86_64']",
  "steps": -1,
  "event": null
}
{
  "id": "1612958717",
  "type": "EventFailed",
  "message": "See /var/log/messages"
}

You may try to install from command line to maybe see more error output:

yum clean all
yum --enablerepo=nethforge install nethserver-virtualbox-5.2-phpvirtualbox

Please also check /var/log/messages for errors.

this is what appears to me:

    Error: Package: php-ldap-5.4.16-48.el7.x86_64 (ce-base)
               Requires: php-common(x86-64) = 5.4.16-48.el7
               Installed: php-common-5.6.40-22.el7.remi.x86_64 (@remi-php56)
                   php-common(x86-64) = 5.6.40-22.el7.remi
               Available: php-common-5.4.16-48.el7.x86_64 (ce-base)
                   php-common(x86-64) = 5.4.16-48.el7
    Error: Package: php-soap-5.4.16-48.el7.x86_64 (ce-base)
               Requires: php-common(x86-64) = 5.4.16-48.el7
               Installed: php-common-5.6.40-22.el7.remi.x86_64 (@remi-php56)
                   php-common(x86-64) = 5.6.40-22.el7.remi
               Available: php-common-5.4.16-48.el7.x86_64 (ce-base)
                   php-common(x86-64) = 5.4.16-48.el7
    Error: Package: php-gd-5.4.16-48.el7.x86_64 (ce-base)
               Requires: php-common(x86-64) = 5.4.16-48.el7
               Installed: php-common-5.6.40-22.el7.remi.x86_64 (@remi-php56)
                   php-common(x86-64) = 5.6.40-22.el7.remi
               Available: php-common-5.4.16-48.el7.x86_64 (ce-base)
                   php-common(x86-64) = 5.4.16-48.el7
     You could try using --skip-broken to work around the problem

Do you know why you have php-common-5.6.40-22 from remi repo installed?

Maybe this helps:

yum --enablerepo=nethforge --disablerepo=remi-php56 install nethserver-virtualbox-5.2-phpvirtualbox

Just to check what’s installed from remi repo:

yum list installed | grep remi

never ever upgrade a version of software like php, please just use PHP-SCL solution

1 Like

Yes, I installed it because php was giving me some problems, and what you tell me is on the internet and it gets the same error, how can I return to php5.4 remi repo

Yes, I see that it was my fault, how can I return to php5.4 remi repo ?

[root@nethserver ~]# yum list installed | grep remi
libicu65.x86_64                      65.1-1.el7.remi         @remi-safe         
libzip5.x86_64                       1.7.3-1.el7.remi        @remi-safe         
php.x86_64                           5.6.40-22.el7.remi      @remi-php56        
php-cli.x86_64                       5.6.40-22.el7.remi      @remi-php56        
php-common.x86_64                    5.6.40-22.el7.remi      @remi-php56        
php-intl.x86_64                      5.6.40-22.el7.remi      @remi-php56        
php-mbstring.x86_64                  5.6.40-22.el7.remi      @remi-php56        
php-mysqlnd.x86_64                   5.6.40-22.el7.remi      @remi-php56        
php-pdo.x86_64                       5.6.40-22.el7.remi      @remi-php56        
php-pecl-jsonc.x86_64                1.3.10-2.el7.remi.5.6   @remi-php56        
php-pecl-zip.x86_64                  1.19.0-1.el7.remi.5.6   @remi-php56        
php-xml.x86_64                       5.6.40-22.el7.remi      @remi-php56        
remi-release.noarch                  7.8-1.el7.remi          installed

yum remove rpm1 rpm2 rpm3

but the command above can remove some important other rpm, take care what you remove before to press Y

else you can do, no dependencies removal

rpm -e --nodeps rpm1 rpm2 rpm3

at the end, think to reinstall the good rpm of ce-base

you can keep @remi-safe

1 Like

What I did exactly was the following:

root@server: ~ # wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
root@server: ~ # rpm -Uhv remi-release-7.rpm
warning: remi-release-7.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:remi-release-7.2-1.el7.remi      ################################# [100%]
root@server: ~ # vim /etc/yum.repos.d/remi.repo
(...)
[remi-php56]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - $basearch
mirrorlist=http://rpms.remirepo.net/enterprise/7/php56/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
(...)
root@server: ~ # yum update
root@server: ~ # yum --enablerepo=remi-php56 install php-cli