Yunohost Upgrade to Buster 4.0 failure

:uk:/:us: Message template (english)

My YunoHost server

Hardware: VPS Old laptop or computer
YunoHost version: 3.8.5.7 (stable).
I have access to my server : SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Here is a printout of the error using YunoPaste:

ended_at: 2020-08-03 19:09:57.900158
error: ‘Migration 0015_migrate_to_buster did not complete, aborting. Error: Something
went wrong during the main upgrade, the system appears to still be on Debian Stretch’
operation: tools_migrations_migrate_forward
started_at: 2020-08-03 19:09:50.440673
success: false
yunohost_version: 3.8.5.7

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

2020-08-03 14:09:50,445: INFO - Running migration 0015_migrate_to_buster…
2020-08-03 14:09:50,451: INFO - Fetching available upgrades for system packages…
2020-08-03 14:09:51,059: DEBUG - Hit:1 http://forge.yunohost.org/debian stretch InRelease
2020-08-03 14:09:51,059: DEBUG - Reading package lists…
2020-08-03 14:09:51,072: DEBUG - Done
2020-08-03 14:09:51,073: INFO - Nothing to do. Everything is already up-to-date.
2020-08-03 14:09:51,086: INFO - Starting migration to Buster
2020-08-03 14:09:51,169: INFO - Patching the sources.lists…
2020-08-03 14:09:51,177: INFO - Fetching available upgrades for system packages…
2020-08-03 14:09:51,585: DEBUG - Get:1 http://forge.yunohost.org/debian buster InRelease [18.2 kB]
2020-08-03 14:09:51,987: DEBUG - Get:2 http://forge.yunohost.org/debian buster/stable amd64 Packages [4425 B]
2020-08-03 14:09:51,987: DEBUG - Fetched 22.6 kB in 0s (30.7 kB/s)
2020-08-03 14:09:51,987: DEBUG - Reading package lists…
2020-08-03 14:09:52,002: DEBUG - Done
2020-08-03 14:09:52,310: INFO - Starting upgrade of system packages that needs to be upgrade independently…
2020-08-03 14:09:52,352: WARNING - Could not identify which version of unscd to install
2020-08-03 14:09:52,366: DEBUG - Running: LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none apt install --quiet -o=Dpkg::Use-Pty=0 --fix-broken --assume-yes libpam-modules -o Dpkg::Options::="–force-overwrite"
2020-08-03 14:09:52,472: INFO - + Reading package lists…
2020-08-03 14:09:52,473: WARNING -
2020-08-03 14:09:52,473: INFO - + Building dependency tree…
2020-08-03 14:09:52,473: WARNING - WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2020-08-03 14:09:52,473: INFO - + Reading state information…
2020-08-03 14:09:52,474: WARNING -
2020-08-03 14:09:52,474: INFO - + libpam-modules is already the newest version (1.1.8-3.6).
2020-08-03 14:09:52,474: INFO - + 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
2020-08-03 14:09:52,575: INFO - Starting main upgrade…
2020-08-03 14:09:52,807: INFO - Upgrading packages…
2020-08-03 14:09:52,813: INFO - Now upgrading ‘regular’ (non-yunohost-related) packages…
2020-08-03 14:09:53,450: 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-03 14:09:53,557: INFO - + Reading package lists…
2020-08-03 14:09:53,559: INFO - + Building dependency tree…
2020-08-03 14:09:53,559: INFO - + Reading state information…
2020-08-03 14:09:53,560: INFO - + Calculating upgrade…
2020-08-03 14:09:53,560: INFO - + The following packages have been kept back:
2020-08-03 14:09:53,561: INFO - + moulinette ssowat yunohost yunohost-admin
2020-08-03 14:09:53,561: INFO - + The following packages will be upgraded:
2020-08-03 14:09:53,562: INFO - + metronome
2020-08-03 14:09:53,863: INFO - + 1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
2020-08-03 14:09:53,864: INFO - + Need to get 395 kB of archives.
2020-08-03 14:09:53,864: INFO - + After this operation, 11.3 kB of additional disk space will be used.
2020-08-03 14:09:53,864: INFO - + Get:1 http://forge.yunohost.org/debian buster/stable amd64 metronome amd64 3.14.1+ynh10-1 [395 kB]
2020-08-03 14:09:54,666: INFO - + Fetched 395 kB in 0s (440 kB/s)
2020-08-03 14:09:54,968: DEBUG - (Reading database … 50800 files and directories currently installed.)
2020-08-03 14:09:54,968: INFO - + Preparing to unpack …/metronome_3.14.1+ynh10-1_amd64.deb …
2020-08-03 14:09:55,169: INFO - + Unpacking metronome (3.14.1+ynh10-1) over (3.14.1+ynh9-1) …
2020-08-03 14:09:55,870: INFO - + Setting up metronome (3.14.1+ynh10-1) …
2020-08-03 14:09:56,872: INFO - + Processing triggers for systemd (232-25+deb9u12) …
2020-08-03 14:09:56,973: INFO - + Processing triggers for man-db (2.7.6.1-2) …
2020-08-03 14:09:57,887: SUCCESS - System upgraded
2020-08-03 14:09:57,889: DEBUG - Full log of this operation: ‘Upgrade system packages
2020-08-03 14:09:57,899: ERROR - Migration 0015_migrate_to_buster did not complete, aborting. Error: Something went wrong during the main upgrade, the system appears to still be on Debian Stretch
Traceback (most recent call last):
File “/usr/lib/moulinette/yunohost/tools.py”, line 895, in tools_migrations_migrate
migration.run()
File “/usr/lib/moulinette/yunohost/data_migrations/0015_migrate_to_buster.py”, line 82, in run
raise YunohostError(“migration_0015_still_on_stretch_after_main_upgrade”)
YunohostError: Something went wrong during the main upgrade, the system appears to still be on Debian Stretch

--------------------------------------------------

What’s puzzling is that the only thing in your sources.list seems to be the yunohost repositories… But on regular systems you would see something like the official debian repo…

Sooo, idk, let’s look at the output of :

cat /etc/apt/sources.list /etc/apt.sources.list.d/*

?

root@shinevar:~# cat /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 9.9 Stretch - Unofficial amd64 CD Binary-1 20190811-19:37]/ buster main non-free
#deb cdrom:[Debian GNU/Linux 9.9 Stretch - Unofficial amd64 CD Binary-1 20190811-19:37]/ buster main non-free
#deb http://ftp.debian.org/debian buster main contrib
#deb-src http://ftp.debian.org/debian buster main contrib

YunoHost repository

deb http://forge.yunohost.org/debian/ buster stable
#deb http://security.debian.org/debian-security buster/updates main contrib non-free
#deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

buster-updates, previously known as ‘volatile’

#deb http://ftp.debian.org/debian buster-updates main contrib non-free
#deb [arch=ppc64el,i386,amd64] http://mirror.zol.co.zw/mariadb/repo/10.4/debian buster main
#deb-src [arch=ppc64el,i386,amd64] http://mirror.zol.co.zw/mariadb/repo/10.4/debian buster main
#deb-src http://ftp.debian.org/debian buster-updates main contrib non-free

I did have them commented out. I have uncommented them and will try again.

Aleks,

Ran apt update and apt upgrade; rebooted server. Logged into Yunohost admin and tried system update. It then identified some migrations to be run. Tried to run them got the following errors:

2020-08-04 19:33:03,230: INFO - Running migration 0015_migrate_to_buster…
2020-08-04 19:33:03,243: ERROR - Migration 0015_migrate_to_buster did not complete, aborting. Error: The current Debian distribution is not Stretch!
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/0015_migrate_to_buster.py”, line 28, in run
self.check_assertions()
File “/usr/lib/moulinette/yunohost/data_migrations/0015_migrate_to_buster.py”, line 116, in check_assertions
raise YunohostError(“migration_0015_not_stretch”)
YunohostError: The current Debian distribution is not Stretch!

Yes now that you uncommented your lines in the sources.list files and ran some apt manually, you did the migration yourself basically … so now you gotta skip migration number 15 (c.f. the button in the webadmin) - then other migrations should run

Hi Aleks,

So I skipped 15 and ran migrations again. 17 worked, but 16 and 18 gave the following errors:

accueil Yunohost

Something wrong happened while trying to paste data on paste.yunohost.org : HTTPSConnectionPool(host=‘paste.yunohost.org’, port=443): Max retries exceeded with url: /documents (Caused by NewConnectionError(’: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’,))

Something wrong happened while trying to paste data on paste.yunohost.org : HTTPSConnectionPool(host=‘paste.yunohost.org’, port=443): Max retries exceeded with url: /documents (Caused by NewConnectionError(’: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’,))

Could not complete the operation ‘Run migrations’. Please provide the full log of this operation by clicking here to get help

Migration 0018_xtable_to_nftable did not complete, aborting. Error: Command ‘iptables-legacy-restore < /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv4’ returned non-zero exit status 127

Running migration 0018_xtable_to_nftable…

Could not complete the operation ‘Run migrations’. Please provide the full log of this operation by clicking here to get help

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/my_webapp.conf’

Running migration 0016_php70_to_php73_pools…

Home Tools Logs 20200806-004946-tools_migrations_migrate_forward

Run migrations

Path

/var/log/yunohost/categories/operation/20200806-004946-tools_migrations_migrate_forward.log

Start

August 5, 2020, 7:49 PM

End

August 5, 2020, 7:49 PM

Error

Migration 0018_xtable_to_nftable did not complete, aborting. Error: Command ‘iptables-legacy-restore < /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv4’ returned non-zero exit status 127

This operation failed! Really sorry about that :frowning: You can try to ask for help. Please provide the full log of the operation to the people helping you. You can do so by clicking on the ‘Share with Yunopaste’ green button. When sharing the logs, YunoHost will automatically attempt to anonymize private data like domain names and IPs.

Logs

2020-08-05 19:49:46,568: INFO - Running migration 0016_php70_to_php73_pools… 2020-08-05 19:49:46,569: 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/my_webapp.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/my_webapp.conf’ 2020-08-05 19:49:46,587: INFO - Running migration 0018_xtable_to_nftable… 2020-08-05 19:49:46,622: ERROR - Migration 0018_xtable_to_nftable did not complete, aborting. Error: Command ‘iptables-legacy-restore < /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv4’ 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 75, in run self.rollback() File “/usr/lib/moulinette/yunohost/data_migrations/0018_xtable_to_nftable.py”, line 90, in rollback subprocess.check_call(“iptables-legacy-restore < %s” % self.backup_rules_ipv4, shell=True) File “/usr/lib/python2.7/subprocess.py”, line 186, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command ‘iptables-legacy-restore < /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv4’ returned non-zero exit status 127

Documentation Need help? Donate

Powered by YunoHost 4.0.3 (stable).

1 Like

i’m in the same trouble : Stretch to Buster migration : xtable to nftables fail

Aleks,

Tried skipping the mitigations and run the system update. But it failed. The first below is the mitigation failure. The rest are the logs on the update failure. Any suggestions?

Ralph Shinevar

Migration 0018_xtable_to_nftable did not complete, aborting. Error: Command ‘iptables-legacy-restore < /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv4’ returned non-zero exit status 127

Running migration 0018_xtable_to_nftable…

Could not complete the operation ‘Run migrations’. Please provide the full log of this operation by clicking here to get help

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/my_webapp.conf’

Running migration 0016_php70_to_php73_pools…

2020-08-16 22:03:46,230: INFO - Now upgrading ‘regular’ (non-yunohost-related) packages…
2020-08-16 22:03:46,458: 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-16 22:03:46,568: INFO - + Reading package lists…
2020-08-16 22:03:46,669: INFO - + Building dependency tree…
2020-08-16 22:03:46,669: INFO - + Reading state information…
2020-08-16 22:03:46,970: INFO - + Calculating upgrade…
2020-08-16 22:03:46,971: WARNING - E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
2020-08-16 22:03:46,971: INFO - + Some packages could not be installed. This may mean that you have
2020-08-16 22:03:46,971: INFO - + requested an impossible situation or if you are using the unstable
2020-08-16 22:03:46,971: INFO - + distribution that some required packages have not yet been created
2020-08-16 22:03:46,971: INFO - + or been moved out of Incoming.
2020-08-16 22:03:46,972: INFO - + The following information may help to resolve the situation:
2020-08-16 22:03:46,972: INFO - +
2020-08-16 22:03:46,972: INFO - + The following packages have unmet dependencies:
2020-08-16 22:03:46,972: INFO - + debhelper : Depends: dh-autoreconf (>= 17~) but it is not going to be installed
2020-08-16 22:03:46,973: INFO - + moulinette : Depends: python-argcomplete but it is not going to be installed
2020-08-16 22:03:46,973: INFO - + Depends: python-bottle (>= 0.12) but it is not going to be installed
2020-08-16 22:03:46,973: INFO - + Depends: python-gevent-websocket but it is not going to be installed
2020-08-16 22:03:46,973: INFO - + Depends: python-ldap but it is not going to be installed
2020-08-16 22:03:46,974: INFO - + Depends: python-tz but it is not going to be installed
2020-08-16 22:03:46,974: INFO - + Depends: python-yaml but it is not going to be installed
2020-08-16 22:03:46,974: INFO - + ssowat : Depends: nginx-extras (>= 1.6.2) but it is not going to be installed
2020-08-16 22:03:46,974: INFO - + yunohost : Depends: python-requests but it is not going to be installed
2020-08-16 22:03:46,975: INFO - + Depends: python-openssl but it is not going to be installed
2020-08-16 22:03:46,975: INFO - + Depends: python-jinja2 but it is not going to be installed
2020-08-16 22:03:46,976: INFO - + Depends: python-packaging but it is not going to be installed
2020-08-16 22:03:46,977: INFO - + Depends: python-publicsuffix but it is not going to be installed
2020-08-16 22:03:46,977: INFO - + Depends: dnsutils but it is not going to be installed
2020-08-16 22:03:46,977: INFO - + Depends: bind9utils but it is not going to be installed
2020-08-16 22:03:46,977: INFO - + Depends: libnss-ldapd but it is not going to be installed
2020-08-16 22:03:46,978: INFO - + Depends: unscd but it is not going to be installed
2020-08-16 22:03:46,978: INFO - + Depends: libpam-ldapd but it is not going to be installed
2020-08-16 22:03:46,978: INFO - + Depends: avahi-daemon but it is not going to be installed
2020-08-16 22:03:46,979: INFO - + Depends: libnss-mdns but it is not going to be installed
2020-08-16 22:03:46,979: INFO - + Depends: mailutils but it is not going to be installed
2020-08-16 22:03:47,273: WARNING - Could not upgrade packages: 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, gir1.2-packagekitglib-1.0, git, git-man, gnupg, gnupg-agent, gpgv, iproute2, iptables, isc-dhcp-client, ldap-utils, libaprutil1, libaprutil1-dbd-sqlite3, libaprutil1-ldap, libapt-pkg5.0, libblkid1, libbsd0, libc-bin, libc-dev-bin, libc6, libc6-dev, libcups2, libcupsimage2, libcurl3-gnutls, libdbd-mysql-perl, libdbi-perl, libdevmapper1.02.1, libexpat1, libexpat1-dev, libfcgi-perl, libfdisk1, libfuse2, libgirepository-1.0-1, libglib2.0-0, libglib2.0-bin, 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, libpackagekit-glib2-18, libpam-modules, libpam-modules-bin, libpam-systemd, libpopt0, libpython-all-dev, libpython-dev, libpython-stdlib, libpython2.7, libpython2.7-dev, libpython2.7-minimal, libpython2.7-stdlib, libpython3-stdlib, libsmartcols1, libsocket6-perl, 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, mount, nano, netcat-openbsd, nginx-common, nginx-extras, opendkim-tools, openssh-client, openssh-server, openssh-sftp-server, openssl, packagekit, packagekit-tools, perl, perl-base, php-curl, php-fpm, php-gd, php-intl, php-ldap, php-mbstring, php-mysql, php-xml, php-zip, 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-dbus, python3-gi, python3-minimal, python3-pycurl, python3-systemd, python3-tk, redis-server, redis-tools, rspamd, rsyslog, slapd, sudo-ldap, systemd, systemd-sysv, udev, util-linux, util-linux-locales, wget, whois

Wokay … let’s look at the output of : apt policy unscd

Hello Aleks,

Here is the output:

apt policy unscd
unscd:
Installed: 0.53-1+yunohost
Candidate: 0.53-1+yunohost
Version table:
*** 0.53-1+yunohost 100
100 /var/lib/dpkg/status
0.53-1+b1 500
500 http://ftp.debian.org/debian buster/main amd64 Packages

Merf not sure why the migration didn’t pick it up automatically but anyway you can run:

apt install unscd=0.53-1+b1 --allow-downgrades

Then

apt install libpam-modules -o Dpkg::Options::="–force-overwrite"

Then

yunohost tools upgrade --system

Hello Aleks,

Ran those three commands and got errors in each one. Here is the output of them:

apt install unscd=0.53-1+b1 --allow-downgrades
Err:1 http://ftp.debian.org/debian buster/main amd64 libc6 amd64 2.28-10
Temporary failure resolving ‘ftp.debian.org
Err:2 http://ftp.debian.org/debian buster/main amd64 libc-bin amd64 2.28-10
Temporary failure resolving ‘ftp.debian.org
Err:3 http://ftp.debian.org/debian buster/main amd64 locales all 2.28-10
Temporary failure resolving ‘ftp.debian.org
Err:4 http://ftp.debian.org/debian buster/main amd64 libc-dev-bin amd64 2.28-10
Temporary failure resolving ‘ftp.debian.org
Err:5 http://ftp.debian.org/debian buster/main amd64 libc6-dev amd64 2.28-10
Temporary failure resolving ‘ftp.debian.org
Err:6 http://ftp.debian.org/debian buster/main amd64 unscd amd64 0.53-1+b1
Temporary failure resolving ‘ftp.debian.org
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/libc6_2.28-10_amd64.deb Temporary failure resolving ‘ftp.debian.org
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/libc-bin_2.28-10_amd64.deb Temporary failure resolving ‘ftp.debian.org
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/locales_2.28-10_all.deb Temporary failure resolving ‘ftp.debian.org
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/libc-dev-bin_2.28-10_amd64.deb Temporary failure resolving ‘ftp.debian.org
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/libc6-dev_2.28-10_amd64.deb Temporary failure resolving ‘ftp.debian.org
E: Failed to fetch http://ftp.debian.org/debian/pool/main/u/unscd/unscd_0.53-1+b1_amd64.deb Temporary failure resolving ‘ftp.debian.org
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

/etc/apt# apt install libpam-modules -o Dpkg::Options::="-force-overwrite"
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.

yunohost tools upgrade --system
Info: Upgrading packages…
Info: Now upgrading ‘regular’ (non-yunohost-related) packages…
Info: + Reading package lists…
Info: + Building dependency tree…
Info: + Reading state information…
Info: + Calculating upgrade…
Warning: E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Info: + Some packages could not be installed. This may mean that you have
Info: + requested an impossible situation or if you are using the unstable
Info: + distribution that some required packages have not yet been created
Info: + or been moved out of Incoming.
Info: + The following information may help to resolve the situation:
Info: +
Info: + The following packages have unmet dependencies:
Info: + debhelper : Depends: dh-autoreconf (>= 17~) but it is not going to be installed
Info: + moulinette : Depends: python-argcomplete but it is not going to be installed
Info: + Depends: python-bottle (>= 0.12) but it is not going to be installed
Info: + Depends: python-gevent-websocket but it is not going to be installed
Info: + Depends: python-ldap but it is not going to be installed
Info: + Depends: python-tz but it is not going to be installed
Info: + Depends: python-yaml but it is not going to be installed
Info: + ssowat : Depends: nginx-extras (>= 1.6.2) but it is not going to be installed
Info: + yunohost : Depends: python-requests but it is not going to be installed
Info: + Depends: python-openssl but it is not going to be installed
Info: + Depends: python-jinja2 but it is not going to be installed
Info: + Depends: python-packaging but it is not going to be installed
Info: + Depends: python-publicsuffix but it is not going to be installed
Info: + Depends: dnsutils but it is not going to be installed
Info: + Depends: bind9utils but it is not going to be installed
Info: + Depends: libnss-ldapd but it is not going to be installed
Info: + Depends: unscd but it is not going to be installed
Info: + Depends: libpam-ldapd but it is not going to be installed
Info: + Depends: avahi-daemon but it is not going to be installed
Info: + Depends: libnss-mdns but it is not going to be installed
Info: + Depends: mailutils but it is not going to be installed
Warning: Could not upgrade packages: 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, gir1.2-packagekitglib-1.0, git, git-man, gnupg, gnupg-agent, gpgv, iproute2, iptables, isc-dhcp-client, ldap-utils, libaprutil1, libaprutil1-dbd-sqlite3, libaprutil1-ldap, libapt-pkg5.0, libblkid1, libbsd0, libc-bin, libc-dev-bin, libc6, libc6-dev, libcups2, libcupsimage2, libcurl3-gnutls, libdbd-mysql-perl, libdbi-perl, libdevmapper1.02.1, libexpat1, libexpat1-dev, libfcgi-perl, libfdisk1, libfuse2, libgirepository-1.0-1, libglib2.0-0, libglib2.0-bin, 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, libpackagekit-glib2-18, libpam-modules, libpam-modules-bin, libpam-systemd, libpopt0, libpython-all-dev, libpython-dev, libpython-stdlib, libpython2.7, libpython2.7-dev, libpython2.7-minimal, libpython2.7-stdlib, libpython3-stdlib, libsmartcols1, libsocket6-perl, 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, mount, nano, netcat-openbsd, nginx-common, nginx-extras, opendkim-tools, openssh-client, openssh-server, openssh-sftp-server, openssl, packagekit, packagekit-tools, perl, perl-base, php-curl, php-fpm, php-gd, php-intl, php-ldap, php-mbstring, php-mysql, php-xml, php-zip, 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-dbus, python3-gi, python3-minimal, python3-pycurl, python3-systemd, python3-tk, redis-server, redis-tools, rspamd, rsyslog, slapd, sudo-ldap, systemd, systemd-sysv, udev, util-linux, util-linux-locales, wget, whois
Info: The operation ‘Upgrade system packages’ could not be completed. Please share the full log of this operation using the command ‘yunohost log display 20200818-011256-tools_upgrade --share’ to get help
Error: Could not upgrade all the packages

Zblerg … can you retry that command … the errors looked like temporary network/DNS resolution issue :confused:

Hi Aleks,

Tried the command again I got the same errors. Not sure what is going on.

Mokay, what if you run “ping -c 1 ftp.debian.org

Aleks,

You are right, I get a “temporary failure in name resolution”. Whose DNS is messing with me? Is it Charter, my ISP? Or is debian having issues?

Weeeell let’s look at :

dig +short A ftp.debian.org
dig +short AAAA ftp.debian.org

and :

cat /etc/resolv.conf
cat /etc/resolv.dnsmasq.conf

Hokay Aleks,

The two dig commands produced nothing.

Here is the output of the two cat commands:

cat /etc/resolv.conf

Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

DO NOT EDIT THIS FILE BY HAND – YOUR CHANGES WILL BE OVERWRITTEN

nameserver 127.0.0.1

cat /etc/resolv.dnsmasq.conf
nameserver 2a00:5881:8100:1000::3
nameserver 80.67.169.40
nameserver 194.150.168.168
nameserver 2001:67c:28a4::
nameserver 195.160.173.53
nameserver 2001:1608:10:25::1c04:b12f
nameserver 84.200.70.40
nameserver 185.233.100.100
nameserver 2001:910:800::12
nameserver 185.233.100.101
nameserver 2a01:3a0:53:53::
nameserver 2a0c:e300::101
nameserver 2001:1608:10:25::9249:d69b
nameserver 2001:913::8
nameserver 89.234.141.66
nameserver 80.67.169.12
nameserver 80.67.190.200
nameserver 85.214.20.141
nameserver 2001:910:800::40
nameserver 91.239.100.100
nameserver 2a0c:e300::100
nameserver 2a00:5884:8218::1
nameserver 89.233.43.71
nameserver 80.67.188.188
nameserver 84.200.69.80

What about

dig +short A yunohost.org
dig +short AAAA yunohost.org

Hello Aleks,

These digs did not produce anything as well. I tried to restart the dnsmasq in Yunohost admin but to know avail. What is next?