Since Stretch upgrade, Lutim fails to install

Hello,

Lutim was blocking Stretch upgrade. So I removed it and want to install it again. But installation fails.

Choose a path for Lutim (default: /lutim): 
Uploading images is it public? [0 | 1] (default: 0): 
Force the encryption of images? [0 | 1] (default: 1): 
Warning: 2018-07-22 22:48:47 URL:https://framagit.org/luc/lutim/repository/0.10.4/archive.tar.gz [3232719] -> "app.tar.gz" [1]
Warning: E: Packages need to be removed but remove is disabled.
Warning: Unable to install dependencies
Warning: !!
Warning:   lutim's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning: 
Warning: /etc/nginx/conf.d/pi-et-ro.net.d/lutim.conf wasn't deleted because it doesn't exist.
Warning: /etc/cron.d/lutim wasn't deleted because it doesn't exist.
Success! The SSOwat configuration has been generated
Error: Installation failed

It seems the package asks to remove ynh-lutim-deps but it is not installed. I removed it to permit Stretch upgrade. Libmagick dependencies seem to steel be installed. Some of these depend on other ynh-deps-* packages. Can I safely remove them ?
Can all php5 packages be safely removed ?
If I remove ynh-deps-mailman, it removes mailman. :-(.
What must preserve for Nexcloud, OpenSondage, Searx…

Thanks for help.

Could you please retry an install with --debug argument.
So that we’re going to have a full log and see what happens.

Hello,

thanks for your answer.

Here is error concerning install fail.

33859 DEBUG Preparing to unpack .../lutim-ynh-deps_0.10.4~ynh2_all.deb ...
34272 DEBUG Unpacking lutim-ynh-deps (0.10.4~ynh2) ...
34542 DEBUG dpkg: lutim-ynh-deps: dependency problems, but configuring anyway as you requested:
34542 DEBUG  lutim-ynh-deps depends on carton; however:
34542 DEBUG   Package carton is not installed.
34542 DEBUG  lutim-ynh-deps depends on perlmagick; however:
34542 DEBUG   Package perlmagick is not installed.
34542 DEBUG  lutim-ynh-deps depends on libpq-dev; however:
34542 DEBUG   Package libpq-dev is not installed.
34543 DEBUG 
34543 DEBUG Setting up lutim-ynh-deps (0.10.4~ynh2) ...
34797 DEBUG + ynh_package_install -f
34797 DEBUG + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
34797 DEBUG + DEBIAN_FRONTEND=noninteractive
34797 DEBUG + sudo apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
35298 DEBUG Reading package lists...
35440 DEBUG Building dependency tree...
35441 DEBUG Reading state information...
35502 DEBUG Correcting dependencies... Done
35612 DEBUG The following packages will be REMOVED:
35613 DEBUG   lutim-ynh-deps
35635 DEBUG 0 upgraded, 0 newly installed, 1 to remove and 43 not upgraded.
35635 WARNING E: Packages need to be removed but remove is disabled.
35648 DEBUG + ynh_die 'Unable to install dependencies'
35648 DEBUG + echo 'Unable to install dependencies'
35648 DEBUG + exit 1
35648 DEBUG + ynh_exit_properly

Hello again,

if I install perlmagick I have to upgrade imagick wich has depencies with php5-imagick wich has a dependencie with nextcloud-ynh-deps.
This package does not exist anymore but if I remove it, as for other ynh-deps packages, many other packages are removed. As for mailman-ynh-deps wich removes mailman.

Which package does not exist but can’t be removed ???
Do you mean the package nextcloud-ynh-deps ? If nextcloud is installed as an app on your YunoHost, nextcloud-ynh-deps can’t be removed.

Did you try to upgrade your system ? Since I can see that there’s 43 packages to upgrade.

Ok.
In aptitude, the right column shows none for all *-yhn-deps so I thought packages are not available anymore. It should show current version in repository.

I upgraded what could be upgraded. carton is installed but it is not possible for perlmagick. Current version in Stretch breaks nextcloud-yhn-deps dependencies.

22887 DEBUG The following packages have unmet dependencies:
22928 DEBUG  lutim-ynh-deps : Depends: perlmagick
22928 DEBUG                   Depends: libpq-dev but it is not installed
22946 WARNING E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
22947 WARNING E: Unable to correct dependencies
22962 DEBUG + ynh_die 'Unable to install dependencies'
22962 DEBUG + echo 'Unable to install dependencies'

apt install perlmagick
Reading package lists… Done
Building dependency tree
Reading state information… Done
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:
 imagemagick-6-common : Breaks: imagemagick-common (< 8:6.9.2.10+dfsg-1~)
 imagemagick-6.q16 : Depends: libmagickcore-6.q16-2 (>= 8:6.8.8.2) but it is not going to be installed
                     Depends: libmagickwand-6.q16-2 (>= 8:6.8.8.2) but it is not going to be installed
                     Recommends: libmagickcore-6.q16-2-extra
 nextcloud-ynh-deps : Depends: php5-imagick but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

What if you try to install libimage-magick-perl instead ?

apt install libimage-magick-perl 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 libimage-magick-perl : Depends: imagemagick-6-common (= 8:6.9.7.4+dfsg-11+deb9u5) but it is not going to be installed
                        Depends: libimage-magick-q16-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


apt install libimage-magick-perl imagemagick-6-common libimage-magick-q16-perl 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 imagemagick-6-common : Breaks: imagemagick-common (< 8:6.9.2.10+dfsg-1~)
                        Breaks: libmagickcore-6.q16-2 (< 8:6.9.6.2+dfsg-3~) but 8:6.8.9.9-5+deb8u13 is to be installed
E: Unable to correct problems, you have held broken packages.

I don’t understand why those packages can’t be installed, they’re all available on stretch. And I do not reproduce that error myself.

And you have also a nextcloud instance ?
I think it’s because of php5-magick. nexcloud-ynh-deps depends on it.

Now yes.
And with a nextcloud instance already installed, then lutim, I do not reproduce this error.
If you have doubt about nextcloud, you can try to upgrade it. It should upgrade as well its dependencies.

In the admin page of Yunohost, I have no packages to be upgraded.

yunohost app upgrade nextcloud --debug
133  DEBUG loading actions map namespace 'yunohost'
147  DEBUG extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
147  DEBUG initializing base actions map parser for cli
148  DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
176  DEBUG unable to load locale 'en' from '/usr/share/moulinette/locale'
176  DEBUG unable to load locale 'en' from '/usr/lib/moulinette/yunohost/locales'
189  DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
193  DEBUG lock has been acquired
214  DEBUG loading python module yunohost.app took 0.021s
215  INFO processing action [29145.1]: yunohost.app.upgrade with args={'url': None, 'app': ['nextcloud'], 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7f288284b450>, 'file': None}
382  INFO Upgrading apps nextcloud
383  INFO Upgrading app nextcloud...
401  SUCCESS nextcloud is already up to date
401  DEBUG action [29145.1] executed in 0.186s
401  DEBUG lock has been released
402  ERROR No app to upgrade

It seems up to date.

apt show nextcloud-ynh-deps Package: nextcloud-ynh-deps
Version: 13.0.2~ynh1
Status: hold ok installed
Priority: optional
Section: misc
Maintainer: root <root@tui.chezmoi.dmz>
Installed-Size: 26.6 kB
Depends: php5-gd, php5-json, php5-intl, php5-mcrypt, php5-curl, php5-apcu, php5-redis, php5-ldap, php5-imagick, imagemagick, acl, tar, smbclient
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Fake package for nextcloud (YunoHost app) dependencies
 This meta-package is only responsible of installing its dependencies.

The upgrade process will upgrade the package and especially the dependencies, so you will not depend of php5 but php7.
That’s why I told you that it can be interesting to upgrade your nextcloud. Even if you’re already up to date.

But it does not upgrade.

sources.list only has this
cat /etc/apt/sources.list.d/yunohost.list
deb http://forge.yunohost.org/debian/ stretch stable

On this repository I can’t find any package relative to nextcloud-yhn-deps. Where is it supposed to be ?

sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh

Why yunohost app upgrade nextcloud is not enough ?

Because there’s no upgrade from the repository if you’re already up to date.
But, since you probably have made an update when you were still on jessie, the dependencies didn’t change.
Now that you’re on stretch, the upgrade script should adapt the dependencies of nextcloud.

By pointing the repository, you’ll force an upgrade without using the apps list

ok. But I think upgrade should be possible from the repositories. There is no way to know it is not up to date. And what about other apps ? Are they up to date ?

Anyway. Upgrade broke nextcloud. :frowning:

I’ll look at this tomorrow and tell you if it works again.

It’s up to date, if YunoHost doesn’t want to upgrade it and doesn’t propose you to do so, that’s because it’s up to date.
If I asked you to upgrade from the repository, it’s just to force an upgrade, just to run the upgrade script. Even if you’re already up to date.

If you don’t have any specific plugins on your nextcloud, you can also remove it and reinstall it.
You won’t lose your files.
But do not do that if you’re using nextcloud as a caldav server for your calendar.

So, upgrade of NextCloud failed and removed it. Installing NextCloud wasn’t possible because of dependencies related to rouncube-yhn-deps and php5-imagick.
So I tried to upgrade Roundcube.
Upgrade failed and removed Roundcube. Installing it again was impossible.
As nextcloud-ynh-deps and roundcube-yhn-deps have been removed, I solved manually dependencies problems and tried again to install NextCloud. It failed because
55462 DEBUG + sudo systemctl reload php7.0-fpm
55494 WARNING php7.0-fpm.service is not active, cannot reload.

I started php7.0-fpm daemon and retried NextCloud installation. And it worked :slight_smile:
I could then install RoundCube and Lutim.:sweat:

Filters in Roundcube are not lost. :slight_smile:
Nextcloud has lost Apps, Groups (I’ll manage them in ldap now) and calendar.

So everything is quite in order now. Thanks for your help. Upgrade to Stretch was not as smooth as I thought. :slight_smile:

Keep on the good work…