Я получаю следующие ошибки при попытке установить ownCloud:
The following information may help to resolve the situation:
The following packages have unmet dependencies: owncloud : Depends:
owncloud-server (= 8.1.8-12.1) but it is not going to be installed
Recommends: mysql-server but it is not installable or
mariadb-server but it is not installable
Recommends: exim4 but it is not installable or
mail-transport-agent but it is not installable
Recommends: owncloud-config-apache (= 8.1.8-12.1) but it is not
going to be installed
E: Unable to correct problems, you haveheld broken packages.
Как это исправить?
Сделайте следующее в терминале:
sudo dpkg --configure -a
sudo apt-get autoremove --purge
sudo apt-get autoclean --purge
sudo apt-get -f install
sudo apt-get update
sudo apt-get ugrade
sudo apt-get dist-upgrade
Надо надеяться, теперь проблема зависимости будет разрешена
Теперь устанавливать тип owncloud в терминале
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud
Устанавливать owncloud тип файлов в терминале
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud-files
Примечание: Это будет только работать в Ubuntu 16.04
Для Ubuntu 15.10
Устанавливать тип owncloud в терминале
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_15.10/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_15.10/ /' >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud
Устанавливать owncloud тип файлов:
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_15.10/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_15.10/ /' >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud-files
Для Ubuntu 14.04
Устанавливать тип owncloud
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud
Устанавливать тип owncloud-файлов:
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud-files
В Ubuntu 12.04
Устанавливать тип owncloud
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_12.04/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_12.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud
Устанавливать тип owncloud-файлов
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_12.04/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_12.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud-files
Существует ветвление Owncloud, названного Nextcloud
, и это - версия, которая лучше поддерживается. Я рекомендую использовать Nextcloud
вместо этого.
В Ubuntu 16.04 можно установить Nextcloud как снимок (новый тип пакетов установки для Ubuntu 16.04 или более новый).
полная документация относительно того, как попробовать поспешный выпуск Nextcloud, может быть найдена в https://github.com/nextcloud/nextcloud-snap