Owncloud 没有安装候选,我该如何修复?

Owncloud 没有安装候选,我该如何修复?

我正在尝试在全新安装的 Ubuntu 16.04 上安装 Owncloud 服务器,并一直在关注这些说明来自 Digital Ocean一切都进行得很顺利,直到命令

$ 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

所以我尝试跑步

$ sudo apt-get install owncloud-files

安装了一些东西,但没有按照 Digital Ocean 的说明进行安装。我在 google 上搜索后发现此链接并按照 AB 所说的去做,只是我换成了我的 Ubuntu 版本,但什么变化都没有。

我接下来要去哪里?

编辑

为了清楚起见,我已经完成了安装 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

这就是我按照步骤操作时发生的一切,它仍然说没有“owncloud”安装候选项。

答案1

我建议您改用 Nextcloud。它是完全开源的,速度更快,更安全。并且具有更多功能。现在,大多数 Owncloud 社区都已迁移到 Nextcloud。有关 Digital Ocean 和 Ubuntu 上的 Nextcloud 的说明可在此处找到:https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-16-04

答案2

正如他们在安装说明中所描述的那样,您必须添加一个存储库才能安装您的软件包。因此,您可以在终端中通过复制并粘贴来执行此命令:

sudo curl https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/Release.key | sudo apt-key add - && echo 'deb https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/ /' | sudo tee /etc/apt/sources.list.d/owncloud.list && sudo apt-get update

执行完此操作后,您尝试再次安装sudo apt-get install owncloud

相关内容