Ubuntu 16.04 無法安裝自己的雲端伺服器

Ubuntu 16.04 無法安裝自己的雲端伺服器

我最近從 15.10 升級到 16.04,它完全破壞了我的 apache/wordpress/owncloud 安裝。在修復 WordPress 時,我刪除了 owncloud。現在,如果我嘗試安裝 owncloud,則會收到以下錯誤:

    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.

我正在從 Ubuntu 16.04 的 owncloud 儲存庫安裝軟體包: http://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/

我在這裡閱讀了有關 16.04 升級破壞 owncloud 的文章: Ubuntu 16.04升級:授權問題

但是,我一直無法找到解決方法。我想我只需要一些方法來欺騙 owncloud 使用 PHP7,但我不知道如何做到這一點。有人知道該怎麼做嗎?

答案1

您可以確保您正在安裝

sudo apt-get install owncloud owncloud-deps-php7.0 owncloud-files

也許只是install owncloud沒有install owncloud-deps-php7.0

當我遇到您在此處鏈接的問題時...我安裝了 15.10 存儲庫而不是 16.04 ..當我嘗試修復它時沒有 16.04 。如果以上方法不起作用。我會嘗試進入你的

/etc/apt/sources.list.d 

找到 owncloud 並將數字從 16.04 更改為 15.10 甚至 15.04,然後

sudo apt-get update 

然後嘗試安裝

sudo apt-get install owncloud-files

首先,如果這不起作用嘗試安裝

sudo apt-get install owncloud  

如果它會以這種方式安裝..安裝後我會返回並將您自己的cloud.list重新更新回16.04和另一個apt-get更新..然後查看是否有更新並嘗試更新

相關內容