Owncloud 9.1.4 upgrade with deprecated dependencies

upgrade
9.1.x

#1

Hello,

today's yum update follows with this stuff:

Resolving Dependencies
--> Running transaction check
---> Package owncloud.noarch 0:9.1.4-2.1 will be updated
---> Package owncloud.noarch 0:9.1.4-3.el7 will be an update
...
---> Package php-common.x86_64 0:5.4.16-42.el7 will be installed
...
--> Processing Conflict: php56w-common-5.6.30-1.w7.x86_64 conflicts php-common < 5.6
--> Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.4.16-42.el7.x86_64

Meanwhile I have php 5.6:

[maximd@WWW ~]$ php -v
PHP 5.6.30 (cli) (built: Jan 19 2017 22:31:39)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

I use Centos 7.3.1611 with kernel 3.10.0-514.10.2.el7.x86_64, repository is:

[ce_stable]
name=ownCloud Server Version stable (CentOS_7)
type=rpm-md
baseurl=http://download.owncloud.org/download/repositories/stable/CentOS_7
gpgcheck=1
gpgkey=http://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key
enabled=1

How to fix the issue?

Thank you.


#2

Hi,

it might help if you're posting the distribution and the exact link to the repository you're using.

If there is an issue with the package dependency itself and you're using the official repositories its also the best to report this directly to the bugtracker [1] as the maintainer of the packages are rarely reading this forums.

[1]


#3

Thanks, I've updated an initial post with details requested.


#4

Ok, you're using CentOS7 and the official repositories. Then you should report this to the bugtracker as mentioned above.


#5

Yes, that's it: https://github.com/owncloud/core/issues/27414


#6

Hi,
I think you're not only using CentOS7 and the official repositories as php56w-common comes from the webtatic repository.


#7

Hi, @olivieroc

yes, I also use webtatic repo:

[webtatic]
name=Webtatic Repository EL7 - $basearch
#baseurl=https://repo.webtatic.com/yum/el7/$basearch/
mirrorlist=https://mirror.webtatic.com/yum/el7/$basearch/mirrorlist
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7

But the problem is that fresh update of OC comes together with old php-common-5.4.16-42.el7.x86_64.


#8

If you not use repositories / packages from your official distro repositories you most likely need to use the owncloud-files packages only.

AFAIK the ownCloud repositories are only supporting dependencies for the native distro repositories and not for such 3rdparty repositories like webstatic.

So just switch to the owncloud-files and remove the owncloud and owncloud-deps-php5 packages if you want to keep that 3rdparty repository.

I think you can also close your issue in [1] (or at least mention that you're using non-standard repositories) as the packager most likely won't support such 3rdparty repositories.

[1]


#9

Ok, I've disabled the webtatic repo and reinstalled the owncloud to the fresh version. Of course, I've got php 5.4 instead of 5.6. Well, owncloud now works fine but I receive following message in the admin panel:

You are currently running PHP 5.4.16. We encourage you to upgrade your PHP version to take advantage of performance and security updates provided by the PHP Group as soon as your distribution supports it.
Please double check the installation guides ↗, and check for any errors or warnings in the log.

Is that good to depend on old php 5.4 in the fresh release of OC (9.1.4-3) instead of working php 5.6 in the 9.1.4-2.1?


#10

See the explanation above:

If your distro (yes, such "Enterprise" called Distros are known to ship outdated software) is shipping only PHP 5.4. by default oC will only use this.

You still can use PHP 5.6 as explained above: