我正在尝试在全新安装的Ubuntu 16.04上安装Owncloud服务器并一直关注these instructions from Digital Ocean并且它已经完美无缺地直到命令
$ sudo apt-get install owncloud
所以我尝试了
$ sudo apt-get install owncloud-files
安装了哪些内容,但根据数字海洋说明,它没有按照预期安装
要明确的是,我已经完成了安装owncloud的所有步骤。
$ sudo curl https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/Release.key | sudo apt-key add -
[sudo] password for user:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4502 100 4502 0 0 3847 0 0:00:01 0:00:01 --:--:-- 3847
OK
$ echo 'deb https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/ /' | sudo tee /etc/apt/sources.list.d/owncloud.list
deb https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/ /
$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:6 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Ign:7 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 InRelease
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:10 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 Release
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [60.3 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [644 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [57.6 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [49.6 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [80.0 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [611 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [305 kB]
Ign:19 https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04 InRelease
Get:20 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [213 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [540 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [516 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [173 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [240 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,888 B]
Get:26 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Get:27 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4,584 B]
Hit:28 https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04 Release
Fetched 3,809 kB in 1s (1,932 kB/s)
Reading package lists... Done
$ sudo apt-get install owncloud
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package owncloud is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
owncloud-files
E: Package 'owncloud' has no installation candidate
这就是我按照这些步骤发生的一切,它仍然说没有“拥有云”'安装候选人。
答案 0 :(得分:0)
这里的问题是ownCloud最近删除了owncloud
元数据包(在同时托管多个应用程序的环境中可能会有害)。与owncloud-files
包的区别在于described in the docs:
owncloud-files(推荐):此软件包仅安装ownCloud。它不安装Apache,数据库或任何PHP依赖项。
owncloud:此软件包安装ownCloud,包含所有依赖项。
所以,基本上,你在你的系统上下载并安装了ownCloud(你会看到它存在于你的/var/www/owncloud
目录下)。但现在它已经错过了它的依赖关系。您需要手动安装它们;您可以在https://doc.owncloud.org/server/10.0/admin_manual/installation/source_installation.html#install-the-required-packages中看到一个列表:
sudo apt install -y apache2 mariadb-server libapache2-mod-php7.0 \
php7.0-gd php7.0-json php7.0-mysql php7.0-curl \
php7.0-intl php7.0-mcrypt php-imagick \
php7.0-zip php7.0-xml php7.0-mbstring
安装完成后,系统会提示您在DigitalOcean教程中缺少的apache向导。从那里,您将能够自定义服务器安装。如果您需要有关如何完成此过程的更多信息,请参阅:configuring the apache server和completing the installation