Nextcloud installation fails

,

I have a - now - brandnew installation of yunohost and I’m trying to install Nextcloud - but it fails and I cannot determine why it fails - here’s the log output - (user/domain replaced with dummyinfo)

Executing script '/var/cache/yunohost/from_file/nextcloud_ynh-8f98d512b17c12b3f6225414c8dd5546ea482307/scripts/install'...
+ set -eu
+ domain=domain
+ path=/nextcloud
+ admin=user
+ user_home=0
+ source ./_common.sh
++ APPNAME=nextcloud
+++ grep VERSION= upgrade.d/upgrade.last.sh
+++ cut -d= -f2
++ LAST_VERSION=12.0.2
++ DEPS_PKG_NAME=nextcloud-deps
+++ cd ../
+++ pwd
++ PKGDIR=/var/cache/yunohost/from_file/nextcloud_ynh-8f98d512b17c12b3f6225414c8dd5546ea482307
++ final_path=domain
+ app=nextcloud
+ dbname=nextcloud
+ dbuser=nextcloud
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ '[' / '!=' / ']'
+ '[' d == / ']'
+ sudo yunohost app checkurl domain/nextcloud -a nextcloud
Warning: 'yunohost app checkurl' is deprecated and will be removed in the future
+ ynh_user_exists user
+ sudo yunohost user list --output-as json
+ grep -q '"username": "user"'
+ ynh_app_setting_set nextcloud admin_user user
+ sudo yunohost app setting nextcloud admin_user -v user --quiet
+ DESTDIR=/var/www/nextcloud
+ [[ -d /var/www/nextcloud ]]
+ DATADIR=/home/yunohost.app/nextcloud/data
+ ynh_package_install_from_equivs ../conf/nextcloud-deps.control
+ controlfile=../conf/nextcloud-deps.control
+ ynh_package_is_installed equivs
+ dpkg-query -W -f '${Status}' equivs
+ grep -c 'ok installed'
+ ynh_package_install equivs
+ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install equivs
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install equivs
Warning: E: Unable to correct problems, you have held broken packages.
++ grep '^Package: ' ../conf/nextcloud-deps.control
++ cut '-d ' -f 2
+ pkgname=nextcloud-deps
++ grep '^Version: ' ../conf/nextcloud-deps.control
++ cut '-d ' -f 2
+ pkgversion=11.0-1
+ [[ -z nextcloud-deps ]]
+ [[ -z 11.0-1 ]]
+ ynh_package_update
+ ynh_apt update
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq update
++ mktemp -d
+ TMPDIR=/tmp/tmp.f8kkt2AHx0
+ cp ../conf/nextcloud-deps.control /tmp/tmp.f8kkt2AHx0/control
+ cd /tmp/tmp.f8kkt2AHx0
+ equivs-build ./control
Warning: /usr/share/yunohost/helpers.d/package: line 105: equivs-build: command not found
+ [[ -n /tmp/tmp.f8kkt2AHx0 ]]
+ rm -rf /tmp/tmp.f8kkt2AHx0
+ ynh_package_is_installed nextcloud-deps
+ dpkg-query -W -f '${Status}' nextcloud-deps
+ grep -c 'ok installed'
+ ynh_die 'Unable to install dependencies'
Warning: Unable to install dependencies
+ echo 'Unable to install dependencies'
+ exit 1
Executing script '/var/cache/yunohost/from_file/nextcloud_ynh-8f98d512b17c12b3f6225414c8dd5546ea482307/scripts/remove'...
+ source ./_common.sh
++ APPNAME=nextcloud
+++ grep VERSION= upgrade.d/upgrade.last.sh
+++ cut -d= -f2
++ LAST_VERSION=12.0.2
++ DEPS_PKG_NAME=nextcloud-deps
+++ cd ../
+++ pwd
++ PKGDIR=/var/cache/yunohost/from_file/nextcloud_ynh-8f98d512b17c12b3f6225414c8dd5546ea482307
++ final_path=nextcloud
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=nextcloud
+ dbname=nextcloud
+ dbuser=nextcloud
+ sudo rm -f /etc/cron.d/nextcloud
+ ynh_mysql_drop_db nextcloud
+ ynh_mysql_execute_as_root 'DROP DATABASE nextcloud;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root NjAOlmhhIz ''
+ mysql -u root --password=NjAOlmhhIz -B ''
+ ynh_mysql_drop_user nextcloud
+ ynh_mysql_execute_as_root 'DROP USER '\''nextcloud'\''@'\''localhost'\'';'
Warning: ERROR 1008 (HY000) at line 1: Can't drop database 'nextcloud'; database doesn't exist
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root NjAOlmhhIz ''
+ mysql -u root --password=NjAOlmhhIz -B ''
Warning: ERROR 1396 (HY000) at line 1: Operation DROP USER failed for 'nextcloud'@'localhost'
++ ynh_app_setting_get nextcloud domain
++ sudo yunohost app setting nextcloud domain --output-as plain --quiet
+ domain=domain
+ [[ /var/www =~ /var/www/nextcloud ]]
+ test -n nextcloud
+ sudo rm -r /var/www/nextcloud
Warning: rm: cannot remove ‘/var/www/nextcloud’: No such file or directory
+ sudo rm -f /etc/php5/fpm/pool.d/nextcloud.conf
+ [[ -n domain ]]
+ sudo rm -f /etc/nginx/conf.d/domain.d/nextcloud.conf
+ sudo service php5-fpm reload
+ sudo service nginx reload
+ ynh_package_autoremove nextcloud-deps
+ ynh_apt autoremove nextcloud-deps
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq autoremove nextcloud-deps
Warning: E: Unable to locate package nextcloud-deps
++ ls /home
+ for i in '$(ls /home)'
+ [[ ! user == yunohost.* ]]
+ sudo setfacl -x g:nextcloud:rwx
+ for i in '$(ls /home)'
+ [[ ! admin == yunohost.* ]]
+ sudo setfacl -x g:nextcloud:rwx
+ for i in '$(ls /home)'
+ [[ ! dietpi == yunohost.* ]]
+ sudo setfacl -x g:nextcloud:rwx
+ for i in '$(ls /home)'
+ [[ ! vmail == yunohost.* ]]
+ sudo setfacl -x g:nextcloud:rwx
+ for i in '$(ls /home)'
+ [[ ! yunohost.app == yunohost.* ]]
+ for i in '$(ls /home)'
+ [[ ! yunohost.backup == yunohost.* ]]
+ for i in '$(ls /home)'
+ [[ ! yunohost.conf == yunohost.* ]]
+ id nextcloud
+ ynh_remove_logrotate
+ '[' -e /etc/logrotate.d/nextcloud ']'
Success! The SSOwat configuration has been generated
Error: Installation failed

EDIT: It seems that I can’t install any application. They always complain about missing dependencies… If I search (apt search xx) the deps it doesn’t show anything, even after apt-get update and similar.

Bonjour @julie ,

Là comme ça, s’il y a des problèmes de dépendances, il est possible de faire un

sudo apt-get install -f

Source : https://doc.ubuntu-fr.org/apt-get#reparer_une_installation

ppr

The problem seems to lie in here:

Warning: /usr/share/yunohost/helpers.d/package: line 105: equivs-build: command not found

Can you please execute apt-get install equivs and retry the installation?

There’s probably something else

apt-get is probably stuck by something, sudo apt-get install -f should help

hey - thanks for your answers.
Ok - there are definitely some dependency problems.
If I try to resolve them with apt-get install -f it just states, that one package wasn’t upgraded.
The package is dpkg and the dependency is a newer version of tar
The errormessage is:
The following packages have unmet dependencies:
dpkg : Depends: tar (>= 1.28-1) but 1.27.1-2+deb8u1 is to be installed
E: Unable to correct problems, you have held broken packages.

I’m running dietpi on an odroid XU4 - should I contact the maintainer of the underlying system? It seems, that it’s an issue of dietpi, not yunohost.

EDIT: So to rectify this issue I had to manually install a newer tar version with apt-get install tar=versionnumber, upgrade the installed dpkg-version - and it seems, that the issue is solved now.