I recently upgraded from 15.10 to 16.04, and it completely broke my apache/wordpress/owncloud installation. While fixing wordpress, I removed owncloud. Now, if I try to install owncloud, I get the following errors:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
owncloud-server : Depends: php5 (>= 5.4.0) but it is not installable
Depends: php5-pgsql but it is not installable
Depends: php5-json but it is not installable
Depends: php5-ldap but it is not installable
Depends: php5-cli but it is not installable
Depends: php5-cgi but it is not installable
E: Unable to correct problems, you have held broken packages.
I am installing the package from the owncloud repository for Ubuntu 16.04 here: http://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/
I have read the article about the 16.04 upgrade breaking owncloud here: Ubuntu 16.04 upgrade: authorization issue
However, I have not been able to find a workaround. I would imagine I just need some way to trick owncloud to use PHP7, but I can't figure out how to do that. Does anyone have an idea of what to do?
sudo apt-get remove php7-*
) and then try again?