根据海底文件手册,我尝试Owncloud在 Ubuntu 14.04 上安装
apt-get install update
apt-get install owncloud
我有依赖性问题,而且我很困苦。
Reading package lists... Building dependency tree... Reading state information... 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 : Depends: owncloud-server (= 8.1.1-1) but it is not going to be installed Depends: owncloud-config-apache (= 8.1.1-1) but it is not going to be installed Recommends: curl but it is not going to be installed E: Unable to correct problems, you have held broken packages.
我需要一些帮助来指导我!
答案1
运行命令
sudo apt-get -f install
然后尝试使用以下方式安装 owncloud
sudo apt-get install owncloud
或者
如果不起作用则添加存储库
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key
sudo apt-key add - < Release.key
sudo apt-get update
sudo apt-get install owncloud
或者
使用手动安装
sudo apt-get install apache2 php5 php5-mysql mysql-server
sudo apt-get install php5-gd php5-json php5-curl php5-intl php5-mcrypt php5-imagick
然后下载 owncloud 并将其解压到/var/www/html/
wget https://download.owncloud.org/community/owncloud-8.0.0.tar.bz2
tar -xvf owncloud-8.0.0.tar.bz2 -C /var/www/html/
更改所有权
chown www-data:www-data -R /var/www/html/owncloud/
还为 owncloud 创建数据库
答案2
感谢您的回答,但我在阅读之前就找到了解决方案。我使用 apt-get remove curl 卸载 curl。然后我通过 autoremove apt-get 重新安装 curl,之后一切正常,使用 apt-get install owncloud。
解决了
非常感谢你的支持