# Can't install nextcloud on a preinstalled debian due to dependencies of packages

**URL:** https://forum.yunohost.org/t/cant-install-nextcloud-on-a-preinstalled-debian-due-to-dependencies-of-packages/10787
**Category:** Support apps
**Tags:** nextcloud, english
**Created:** [April 4, 2020, 3:28pm UTC](https://forum.yunohost.org/t/cant-install-nextcloud-on-a-preinstalled-debian-due-to-dependencies-of-packages/10787 "2020-04-04T15:28:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lnoferin](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lnoferin/32/2043_2.png) [@lnoferin](https://forum.yunohost.org/u/lnoferin)
#### Post date: [April 4, 2020, 3:28pm UTC](https://forum.yunohost.org/t/cant-install-nextcloud-on-a-preinstalled-debian-due-to-dependencies-of-packages/10787/1 "2020-04-04T15:28:23Z")

</div>

I am trying to install nextcloud on a yunohost fresh installed on a running debian. The error in the installation is related to missing dependencies

```
- 2020-04-04 17:20:54,922: DEBUG - The following packages will be REMOVED:
- 2020-04-04 17:20:54,922: WARNING - E: Packages need to be removed but remove is disabled.
- 2020-04-04 17:20:54,922: DEBUG - nextcloud-ynh-deps
- 2020-04-04 17:20:54,923: WARNING - Unable to install dependencies
- 2020-04-04 17:20:54,923: DEBUG - 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
- 2020-04-04 17:20:54,923: DEBUG - + ynh_die '--message=Unable to install dependencies'

```

You can see the full log at [https://paste.yunohost.org/raw/isogawodic](https://paste.yunohost.org/raw/isogawodic)

---

<div class="post-metadata">

### Author: ![lnoferin](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lnoferin/32/2043_2.png) [@lnoferin](https://forum.yunohost.org/u/lnoferin)
#### Post date: [April 4, 2020, 5:44pm UTC](https://forum.yunohost.org/t/cant-install-nextcloud-on-a-preinstalled-debian-due-to-dependencies-of-packages/10787/2 "2020-04-04T17:44:33Z")

</div>

> [@lnoferin](#):
>
> - 2020-04-04 17:20:54,922: DEBUG - The following packages will be REMOVED: - 2020-04-04 17:20:54,922: WARNING - E: Packages need to be removed but remove is disabled. - 2020-04-04 17:20:54,922: DEBUG - nextcloud-ynh-deps - 2020-04-04 17:20:54,923: WARNING - Unable to install dependencies - 2020-04-04 17:20:54,923: DEBUG - 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. - 2020-04-04 17:20:54,923: DEBUG - + ynh\_die ‘–message=Unable to install dependencies’

Thanks to a chat session with Alaiks I found the problem was the presence of the apache2 packages installed before: removing these the installation went fine.

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [April 5, 2020, 1:35am UTC](https://forum.yunohost.org/t/cant-install-nextcloud-on-a-preinstalled-debian-due-to-dependencies-of-packages/10787/3 "2020-04-05T01:35:04Z")

</div>

To elaborate a bit more : it was more about apt unwilling to install php7.3-apcu because of some weird -30000 score shown in “apt policy php7.3-apcu” … Forcing the install of the dependency using “apt install” solved the issue, though it warned about a weird bug. Not sure exactly what happened…

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [April 20, 2020, 1:35am UTC](https://forum.yunohost.org/t/cant-install-nextcloud-on-a-preinstalled-debian-due-to-dependencies-of-packages/10787/4 "2020-04-20T01:35:05Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
