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…
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.
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.
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.
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.
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.
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
I could then install RoundCube and Lutim.
Filters in Roundcube are not lost.
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.