The operation 'Run migrations' could not be completed

Info: Running migration 0015_migrate_to_buster…

Error: Migration 0015_migrate_to_buster did not complete, aborting. Error: The current Debian distribution is not Stretch!

Info: The operation ‘Run migrations’ could not be completed. Please share the full log of this operation using the command ‘yunohost log display 20200805-083615-tools_migrations_migrate_forward --share’ to get help

Error: Run these migrations: ‘0015_migrate_to_buster’, before migration 0016_php70_to_php73_pools.

Error: Run these migrations: ‘0015_migrate_to_buster’, before migration 0017_postgresql_9p6_to_11.

Error: Run these migrations: ‘0015_migrate_to_buster’, before migration 0018_xtable_to_nftable.

root:~# cat /etc/os-release

PRETTY_NAME=“Debian GNU/Linux 10 (buster)”

NAME=“Debian GNU/Linux”

VERSION_ID=“10”

VERSION=“10 (buster)”

VERSION_CODENAME=buster

ID=debian

HOME_URL=“https://www.debian.org/

SUPPORT_URL=“https://www.debian.org/support

BUG_REPORT_URL=“https://bugs.debian.org/

Yes, you manually finished the migration by running some apt commands yourself I suspect, so now you gotta tell yunohost to skip migration number 15. You can do so from the webadmin in Tools > Migrations.

Okay, now it says:

ended_at: 2020-08-05 10:37:17.950358
error: ‘Migration 0018_xtable_to_nftable did not complete, aborting. Error: Command
‘‘ip6tables-legacy-save > /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv6’’
returned non-zero exit status 127’
operation: tools_migrations_migrate_forward
started_at: 2020-08-05 10:37:17.921166
success: false
yunohost_version: 4.0.3

============

2020-08-05 12:37:17,911: INFO - Running migration 0016_php70_to_php73_pools…
2020-08-05 12:37:17,912: ERROR - Migration 0016_php70_to_php73_pools did not complete, aborting. Error: [Errno 2] No such file or directory: ‘/etc/php/7.3/fpm/pool.d/wordpress__3.conf’
Traceback (most recent call last):
File “/usr/lib/moulinette/yunohost/tools.py”, line 899, in tools_migrations_migrate
migration.run()
File “/usr/lib/moulinette/yunohost/data_migrations/0016_php70_to_php73_pools.py”, line 43, in run
copy2(src, dest)
File “/usr/lib/python2.7/shutil.py”, line 130, in copy2
copyfile(src, dst)
File “/usr/lib/python2.7/shutil.py”, line 83, in copyfile
with open(dst, ‘wb’) as fdst:
IOError: [Errno 2] No such file or directory: ‘/etc/php/7.3/fpm/pool.d/wordpress__3.conf’
2020-08-05 12:37:17,928: INFO - Running migration 0018_xtable_to_nftable…
2020-08-05 12:37:17,949: ERROR - Migration 0018_xtable_to_nftable did not complete, aborting. Error: Command ‘ip6tables-legacy-save > /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv6’ returned non-zero exit status 127
Traceback (most recent call last):
File “/usr/lib/moulinette/yunohost/tools.py”, line 899, in tools_migrations_migrate
migration.run()
File “/usr/lib/moulinette/yunohost/data_migrations/0018_xtable_to_nftable.py”, line 44, in run
subprocess.check_call(“ip6tables-legacy-save > %s” % self.backup_rules_ipv6, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 186, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command ‘ip6tables-legacy-save > /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv6’ returned non-zero exit status 127

Also this, when i try to update System package

2020-08-05 13:25:00,054: INFO - Now upgrading ‘regular’ (non-yunohost-related) packages…
2020-08-05 13:25:00,407: DEBUG - Running apt command :
DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none apt-get --fix-broken --show-upgraded --assume-yes --quiet -o=Dpkg::Use-Pty=0 -o Dpkg::Options::="–force-confold" -o Dpkg::Options::="–force-confmiss" -o Dpkg::Options::="–force-confdef" dist-upgrade
2020-08-05 13:25:00,526: INFO - + Reading package lists…
2020-08-05 13:25:00,831: INFO - + Building dependency tree…
2020-08-05 13:25:00,833: INFO - + Reading state information…
2020-08-05 13:25:01,435: INFO - + Calculating upgrade…
2020-08-05 13:25:01,436: INFO - + Some packages could not be installed. This may mean that you have
2020-08-05 13:25:01,437: INFO - + requested an impossible situation or if you are using the unstable
2020-08-05 13:25:01,438: INFO - + distribution that some required packages have not yet been created
2020-08-05 13:25:01,438: INFO - + or been moved out of Incoming.
2020-08-05 13:25:01,439: INFO - + The following information may help to resolve the situation:
2020-08-05 13:25:01,439: INFO - +
2020-08-05 13:25:01,440: INFO - + The following packages have unmet dependencies:
2020-08-05 13:25:01,742: INFO - + moulinette : Depends: python-argcomplete but it is not going to be installed
2020-08-05 13:25:01,743: INFO - + Depends: python-bottle (>= 0.12) but it is not going to be installed
2020-08-05 13:25:01,743: INFO - + Depends: python-gevent-websocket but it is not going to be installed
2020-08-05 13:25:01,743: INFO - + Depends: python-ldap but it is not going to be installed
2020-08-05 13:25:01,744: INFO - + Depends: python-tz but it is not going to be installed
2020-08-05 13:25:01,744: INFO - + Depends: python-yaml but it is not going to be installed
2020-08-05 13:25:01,744: INFO - + ssowat : Depends: nginx-extras (>= 1.6.2) but it is not going to be installed
2020-08-05 13:25:01,744: INFO - + yunohost : Depends: python-requests but it is not going to be installed
2020-08-05 13:25:01,745: INFO - + Depends: python-openssl but it is not going to be installed
2020-08-05 13:25:01,745: INFO - + Depends: python-jinja2 but it is not going to be installed
2020-08-05 13:25:01,745: INFO - + Depends: python-packaging but it is not going to be installed
2020-08-05 13:25:01,746: INFO - + Depends: python-publicsuffix but it is not going to be installed
2020-08-05 13:25:01,747: INFO - + Depends: dnsutils but it is not going to be installed
2020-08-05 13:25:01,747: INFO - + Depends: bind9utils but it is not going to be installed
2020-08-05 13:25:01,748: INFO - + Depends: libnss-ldapd but it is not going to be installed
2020-08-05 13:25:01,748: INFO - + Depends: unscd but it is not going to be installed
2020-08-05 13:25:01,748: INFO - + Depends: libpam-ldapd but it is not going to be installed
2020-08-05 13:25:01,748: INFO - + Depends: avahi-daemon but it is not going to be installed
2020-08-05 13:25:01,749: INFO - + Depends: libnss-mdns but it is not going to be installed
2020-08-05 13:25:01,749: INFO - + Depends: mailutils but it is not going to be installed
2020-08-05 13:25:01,749: INFO - + Depends: equivs but it is not going to be installed
2020-08-05 13:25:01,749: INFO - + Recommends: php-curl
2020-08-05 13:25:01,850: WARNING - E: Unable to correct problems, you have held broken packages.
2020-08-05 13:25:02,400: WARNING - Could not upgrade packages: acpid, apache2-bin, apt, apt-transport-https, apt-utils, avahi-daemon, bind9-host, bind9utils, binutils, build-essential, busybox, ca-certificates, coreutils, curl, dash, dirmngr, dmsetup, dnsutils, dovecot-antispam, dovecot-core, dovecot-imapd, dovecot-ldap, dovecot-lmtpd, dovecot-managesieved, dovecot-sieve, dpkg, e2fslibs, e2fsprogs, g++, gcc, ghostscript, gir1.2-glib-2.0, git, git-man, gnupg, gnupg-agent, gnupg1, gpgv, imagemagick-6.q16, iproute2, iptables, isc-dhcp-client, ldap-utils, libalgorithm-diff-xs-perl, libapache2-mod-php7.4, libaprutil1, libaprutil1-dbd-sqlite3, libaprutil1-ldap, libapt-pkg5.0, libargon2-1, libblkid1, libbsd0, libc-bin, libc-client2007e, libc-dev-bin, libc6, libc6-dev, libcups2, libcupsimage2, libcurl3-gnutls, libdbd-mysql-perl, libdbi-perl, libdevmapper1.02.1, libdjvulibre21, libexpat1, libexpat1-dev, libfcgi-perl, libfdisk1, libfile-fcntllock-perl, libfuse2, libgirepository-1.0-1, libglib2.0-0, libgnutls30, libgs9, libgs9-common, libgssapi-krb5-2, libgssapi-perl, libhtml-parser-perl, libio-socket-ssl-perl, libip4tc0, libip6tc0, libiptc0, libk5crypto3, libkrb5-3, libkrb5support0, libldap-2.4-2, liblocale-gettext-perl, libmailutils5, libmount1, libnet-dns-perl, libnet-ssleay-perl, libnetaddr-ip-perl, libnginx-mod-http-auth-pam, libnginx-mod-http-cache-purge, libnginx-mod-http-dav-ext, libnginx-mod-http-echo, libnginx-mod-http-fancyindex, libnginx-mod-http-geoip, libnginx-mod-http-headers-more-filter, libnginx-mod-http-image-filter, libnginx-mod-http-lua, libnginx-mod-http-ndk, libnginx-mod-http-perl, libnginx-mod-http-subs-filter, libnginx-mod-http-uploadprogress, libnginx-mod-http-upstream-fair, libnginx-mod-http-xslt-filter, libnginx-mod-mail, libnginx-mod-nchan, libnginx-mod-stream, libnss-myhostname, libp11-kit0, libpam-modules, libpam-modules-bin, libpam-systemd, libpango-1.0-0, libpangocairo-1.0-0, libpangoft2-1.0-0, libpopt0, libpython-all-dev, libpython-dev, libpython-stdlib, libpython2.7, libpython2.7-dev, libpython2.7-minimal, libpython2.7-stdlib, libpython3-stdlib, libsmartcols1, libsocket6-perl, libsodium23, libsqlite3-0, libssl1.1, libsystemd0, libterm-readkey-perl, libtext-charwidth-perl, libtext-iconv-perl, libudev1, libuuid1, libxml2, libxtables12, locales, login, logrotate, mailutils, mailutils-common, make, man-db, mariadb-server, mount, nano, netcat-openbsd, nginx-common, nginx-extras, opendkim-tools, openssh-client, openssh-server, openssh-sftp-server, openssl, perl, perl-base, php-curl, php-fpm, php-imagick, php7.0-cli, php7.0-common, php7.0-curl, php7.0-fpm, php7.0-gd, php7.0-intl, php7.0-json, php7.0-ldap, php7.0-mbstring, php7.0-mysql, php7.0-opcache, php7.0-readline, php7.0-xml, php7.4-cgi, php7.4-cli, php7.4-common, php7.4-curl, php7.4-gd, php7.4-imap, php7.4-intl, php7.4-json, php7.4-mbstring, php7.4-mysql, php7.4-opcache, php7.4-pspell, php7.4-readline, php7.4-sqlite3, php7.4-tidy, php7.4-xml, php7.4-xmlrpc, postfix, postfix-ldap, postfix-pcre, postfix-sqlite, procps, python, python-all, python-all-dev, python-apt, python-cryptography, python-dev, python-minimal, python-openssl, python2.7, python2.7-dev, python2.7-minimal, python3, python3-apt, python3-minimal, python3-systemd, python3-tk, redis-server, redis-tools, rename, rspamd, rsyslog, slapd, ssh, sudo-ldap, systemd, systemd-sysv, udev, unattended-upgrades, util-linux, util-linux-locales, wget, whois

Uuuh wokay so looks like there’s some unfinished migration business …

As always, not clear why apt refuses to do the whole thing … And you did not explain the previous steps you did before reaching that state …

But my guess is that it’s about that openssl downgrade thingy so let’s look at the version of openssl with apt show openssl | grep Version

Uhhh…
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Version: 1.1.1d-0+deb10u3

apt-get install --only-upgrade openssl

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:

yunohost : Depends: unscd but it is not going to be installed

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Maybe its my /etc/apt/sources.list ?

root:~# sudo apt-get update && sudo apt-get upgrade

Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://asi-fs-n.contabo.net/debian buster InRelease
Hit:3 http://asi-fs-n.contabo.net/debian buster-updates InRelease
Hit:4 http://forge.yunohost.org/debian buster InRelease
Hit:5 https://packages.sury.org/php buster InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following package was automatically installed and is no longer required:
gnupg-l10n
Use ‘sudo apt autoremove’ to remove it.
The following packages have been kept back:
acpid apache2-bin apt apt-transport-https apt-utils avahi-daemon bind9-host bind9utils binutils build-essential busybox ca-certificates coreutils curl dash dirmngr dmsetup
dnsutils dovecot-antispam dovecot-core dovecot-imapd dovecot-ldap dovecot-lmtpd dovecot-managesieved dovecot-sieve dpkg e2fslibs e2fsprogs g++ gcc ghostscript
gir1.2-glib-2.0 git git-man gnupg gnupg-agent gnupg1 gpgv imagemagick-6.q16 iproute2 iptables isc-dhcp-client ldap-utils libalgorithm-diff-xs-perl libapache2-mod-php7.4
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapt-pkg5.0 libargon2-1 libblkid1 libbsd0 libc-bin libc-client2007e libc-dev-bin libc6 libc6-dev libcups2
libcupsimage2 libcurl3-gnutls libdbd-mysql-perl libdbi-perl libdevmapper1.02.1 libdjvulibre21 libexpat1 libexpat1-dev libfcgi-perl libfdisk1 libfile-fcntllock-perl libfuse2
libgirepository-1.0-1 libglib2.0-0 libgnutls30 libgs9 libgs9-common libgssapi-krb5-2 libgssapi-perl libhtml-parser-perl libio-socket-ssl-perl libip4tc0 libip6tc0 libiptc0
libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 liblocale-gettext-perl libmailutils5 libmount1 libnet-dns-perl libnet-ssleay-perl libnetaddr-ip-perl
libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-fancyindex libnginx-mod-http-geoip
libnginx-mod-http-headers-more-filter libnginx-mod-http-image-filter libnginx-mod-http-lua libnginx-mod-http-ndk libnginx-mod-http-perl libnginx-mod-http-subs-filter
libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnss-myhostname
libp11-kit0 libpam-modules libpam-modules-bin libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpopt0 libpython-all-dev libpython-dev libpython-stdlib
libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib libsmartcols1 libsocket6-perl libsodium23 libsqlite3-0 libssl1.1 libsystemd0
libterm-readkey-perl libtext-charwidth-perl libtext-iconv-perl libudev1 libuuid1 libxml2 libxtables12 locales login logrotate mailutils mailutils-common make man-db
mariadb-server mount nano netcat-openbsd nginx-common nginx-extras opendkim-tools openssh-client openssh-server openssh-sftp-server openssl perl perl-base php-curl php-fpm
php-imagick php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-gd php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-readline
php7.0-xml php7.4-cgi php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-imap php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-pspell
php7.4-readline php7.4-sqlite3 php7.4-tidy php7.4-xml php7.4-xmlrpc postfix postfix-ldap postfix-pcre postfix-sqlite procps python python-all python-all-dev python-apt
python-cryptography python-dev python-minimal python-openssl python2.7 python2.7-dev python2.7-minimal python3 python3-apt python3-minimal python3-systemd python3-tk
redis-server redis-tools rename rspamd rsyslog slapd ssh sudo-ldap systemd systemd-sysv udev unattended-upgrades util-linux util-linux-locales wget whois
0 upgraded, 0 newly installed, 0 to remove and 230 not upgraded.

People love to run apt(-get) upgrade and in the perfect world that would be the logical command to run, but usually the command you’re looking for is dist-upgrade or (less confusing from a semantic point of view), full-upgrade

But anyway that won’t give much more clue (apt(-get) is a pain to debug when there are dependencies issues)

We can try to gather more clue by trying to upgrade a bunch of specific package (which strangely happens with the install command but hmgn…)

So let’s run for example :

apt install moulinette yunohost nginx-extras php-fpm python

Reading package lists… Done

Building dependency tree

Reading state information… Done

moulinette is already the newest version (4.0.3).

moulinette set to manually installed.

yunohost is already the newest version (4.0.3).

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:

yunohost : Depends: unscd but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

Mokay let’s try 'apt dist-upgrade' then … maybe that’ll give the clues we need

Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Error!
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:
moulinette : Depends: python-argcomplete but it is not going to be installed
Depends: python-bottle (>= 0.12) but it is not going to be installed
Depends: python-gevent-websocket but it is not going to be installed
Depends: python-ldap but it is not going to be installed
Depends: python-tz but it is not going to be installed
Depends: python-yaml but it is not going to be installed
ssowat : Depends: nginx-extras (>= 1.6.2) but it is not going to be installed
yunohost : Depends: python-requests but it is not going to be installed
Depends: python-openssl but it is not going to be installed
Depends: python-jinja2 but it is not going to be installed
Depends: python-packaging but it is not going to be installed
Depends: python-publicsuffix but it is not going to be installed
Depends: dnsutils but it is not going to be installed
Depends: bind9utils but it is not going to be installed
Depends: libnss-ldapd but it is not going to be installed
Depends: unscd but it is not going to be installed
Depends: libpam-ldapd but it is not going to be installed
Depends: avahi-daemon but it is not going to be installed
Depends: libnss-mdns but it is not going to be installed
Depends: mailutils but it is not going to be installed
Depends: equivs but it is not going to be installed
Recommends: php-curl
E: Unable to correct problems, you have held broken packages.

Please help?

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