Unable to upgrade system packages

When trying to update system packages it fails and says could not update and gives this to give to support.

args:
apps: null
system: true
ended_at: 2021-01-08 23:11:31.020137
error: Could not upgrade all the packages
operation: tools_upgrade
related_to: []
started_at: 2021-01-08 23:11:28.988750
success: false
yunohost_version: 3.8.4.9

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

2021-01-09 00:11:28,998: INFO - Now upgrading ‘regular’ (non-yunohost-related) packages…
2021-01-09 00:11:29,558: 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
2021-01-09 00:11:29,669: INFO - + Reading package lists…
2021-01-09 00:11:29,973: INFO - + Building dependency tree…
2021-01-09 00:11:29,973: INFO - + Reading state information…
2021-01-09 00:11:30,074: INFO - + Correcting dependencies… Done
2021-01-09 00:11:30,175: INFO - + Calculating upgrade…
2021-01-09 00:11:30,276: INFO - + The following packages were automatically installed and are no longer required:
2021-01-09 00:11:30,277: INFO - + libzip4 php-apcu php-igbinary php-imagick php-mbstring php-redis php-zip
2021-01-09 00:11:30,277: INFO - + php5.6-apcu php5.6-igbinary php5.6-imagick php5.6-redis php7.0-apcu
2021-01-09 00:11:30,278: INFO - + php7.0-igbinary php7.0-imagick php7.0-mbstring php7.0-redis php7.0-zip
2021-01-09 00:11:30,278: INFO - + php7.1-apcu php7.1-igbinary php7.1-imagick php7.1-redis php7.2-apcu
2021-01-09 00:11:30,279: INFO - + php7.2-igbinary php7.2-imagick php7.2-redis php7.3-apcu php7.3-igbinary
2021-01-09 00:11:30,279: INFO - + php7.3-imagick php7.3-redis php7.4-apcu php7.4-igbinary php7.4-imagick
2021-01-09 00:11:30,279: INFO - + php7.4-mbstring php7.4-redis php7.4-zip php8.0-apcu php8.0-igbinary
2021-01-09 00:11:30,280: INFO - + php8.0-imagick php8.0-redis
2021-01-09 00:11:30,282: INFO - + Use ‘apt autoremove’ to remove them.
2021-01-09 00:11:30,483: INFO - + The following NEW packages will be installed:
2021-01-09 00:11:30,486: WARNING - E: There were unauthenticated packages and -y was used without --allow-unauthenticated
2021-01-09 00:11:30,487: INFO - + linux-image-4.9.0-14-amd64 php5.6-apcu php5.6-igbinary php5.6-imagick
2021-01-09 00:11:30,488: INFO - + php5.6-redis php7.0-apcu php7.0-igbinary php7.0-imagick php7.0-redis
2021-01-09 00:11:30,489: INFO - + php7.1-apcu php7.1-igbinary php7.1-imagick php7.1-redis php7.2-apcu
2021-01-09 00:11:30,490: INFO - + php7.2-igbinary php7.2-imagick php7.2-redis php7.3-apcu php7.3-igbinary
2021-01-09 00:11:30,491: INFO - + php7.3-imagick php7.3-redis php7.4-apcu php7.4-igbinary php7.4-imagick
2021-01-09 00:11:30,492: INFO - + php7.4-redis php8.0-apcu php8.0-igbinary php8.0-imagick php8.0-redis yarn
2021-01-09 00:11:30,493: INFO - + The following packages have been kept back:
2021-01-09 00:11:30,494: INFO - + moulinette ssowat yunohost yunohost-admin
2021-01-09 00:11:30,495: INFO - + The following packages will be upgraded:
2021-01-09 00:11:30,495: INFO - + apt apt-transport-https apt-utils base-files bind9-host bind9utils curl dbus
2021-01-09 00:11:30,496: INFO - + dnsutils dovecot-core dovecot-imapd dovecot-ldap dovecot-lmtpd
2021-01-09 00:11:30,497: INFO - + dovecot-managesieved dovecot-sieve e2fslibs e2fsprogs ffmpeg imagemagick
2021-01-09 00:11:30,498: INFO - + imagemagick-6-common imagemagick-6.q16 ldap-utils libapt-inst2.0
2021-01-09 00:11:30,499: INFO - + libapt-pkg5.0 libavcodec57 libavdevice57 libavfilter6 libavformat57
2021-01-09 00:11:30,500: INFO - + libavresample3 libavutil55 libbind9-140 libcairo2 libcomerr2 libcups2
2021-01-09 00:11:30,500: INFO - + libcurl3 libcurl3-gnutls libdbi-perl libdbus-1-3 libdns-export162 libdns162
2021-01-09 00:11:30,501: INFO - + libflac8 libfreetype6 libgnutls30 libgssapi-krb5-2 libisc-export160
2021-01-09 00:11:30,502: INFO - + libisc160 libisccc140 libisccfg140 libjpeg62-turbo libk5crypto3 libkrb5-3
2021-01-09 00:11:30,502: INFO - + libkrb5support0 libldap-2.4-2 libldap-common libluajit-5.1-2
2021-01-09 00:11:30,503: INFO - + libluajit-5.1-common liblwres141 libmagickcore-6.q16-3 libmagickwand-6.q16-3
2021-01-09 00:11:30,503: INFO - + libmariadbclient18 libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge
2021-01-09 00:11:30,504: INFO - + libnginx-mod-http-dav-ext libnginx-mod-http-echo
2021-01-09 00:11:30,504: INFO - + libnginx-mod-http-fancyindex libnginx-mod-http-geoip
2021-01-09 00:11:30,505: INFO - + libnginx-mod-http-headers-more-filter libnginx-mod-http-image-filter
2021-01-09 00:11:30,505: INFO - + libnginx-mod-http-lua libnginx-mod-http-ndk libnginx-mod-http-perl
2021-01-09 00:11:30,506: INFO - + libnginx-mod-http-subs-filter libnginx-mod-http-uploadprogress
2021-01-09 00:11:30,506: INFO - + libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter
2021-01-09 00:11:30,507: INFO - + libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libonig4
2021-01-09 00:11:30,507: INFO - + libopenmpt0 libp11-kit0 libperl5.24 libpostproc54 libpq5 libpython2.7
2021-01-09 00:11:30,508: INFO - + libpython2.7-minimal libpython2.7-stdlib libpython3.5-minimal
2021-01-09 00:11:30,509: INFO - + libpython3.5-stdlib libsmbclient libsndfile1 libsqlite3-0 libss2
2021-01-09 00:11:30,509: INFO - + libssh-gcrypt-4 libssl1.0.2 libswresample2 libswscale4 libwbclient0 libx11-6
2021-01-09 00:11:30,510: INFO - + libx11-data libx11-xcb1 libzmq5 linux-image-amd64 linux-libc-dev
2021-01-09 00:11:30,510: INFO - + mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server
2021-01-09 00:11:30,511: INFO - + mariadb-server-10.1 mariadb-server-core-10.1 nginx-common nginx-extras perl
2021-01-09 00:11:30,511: INFO - + perl-base perl-modules-5.24 php-apcu php-common php-igbinary php-imagick
2021-01-09 00:11:30,511: INFO - + php-pear php-redis php-soap php7.0-cli php7.0-common php7.0-curl php7.0-fpm
2021-01-09 00:11:30,512: INFO - + php7.0-gd php7.0-imap php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring
2021-01-09 00:11:30,512: INFO - + php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-readline php7.0-soap
2021-01-09 00:11:30,512: INFO - + php7.0-xml php7.0-zip php7.4-cli php7.4-common php7.4-fpm php7.4-gd
2021-01-09 00:11:30,512: INFO - + php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql
2021-01-09 00:11:30,513: INFO - + php7.4-opcache php7.4-readline php7.4-soap php7.4-xml php7.4-zip postfix
2021-01-09 00:11:30,513: INFO - + postfix-ldap postfix-pcre postfix-sqlite postgresql-9.6
2021-01-09 00:11:30,513: INFO - + postgresql-client-9.6 postgresql-contrib-9.6 postsrsd python-apt
2021-01-09 00:11:30,514: INFO - + python-apt-common python-pip python-pip-whl python2.7 python2.7-minimal
2021-01-09 00:11:30,514: INFO - + python3.5 python3.5-minimal python3.5-venv qemu-utils samba-common
2021-01-09 00:11:30,515: INFO - + samba-libs slapd smbclient tzdata
2021-01-09 00:11:30,515: INFO - + 176 upgraded, 30 newly installed, 0 to remove and 4 not upgraded.
2021-01-09 00:11:30,515: INFO - + Need to get 154 MB of archives.
2021-01-09 00:11:30,516: INFO - + After this operation, 202 MB of additional disk space will be used.
2021-01-09 00:11:30,516: INFO - + WARNING: The following packages cannot be authenticated!
2021-01-09 00:11:30,516: INFO - + yarn
2021-01-09 00:11:31,018: WARNING - Could not upgrade packages: apt, apt-transport-https, apt-utils, base-files, bind9-host, bind9utils, curl, dbus, dnsutils, dovecot-core, dovecot-imapd, dovecot-ldap, dovecot-lmtpd, dovecot-managesieved, dovecot-sieve, e2fslibs, e2fsprogs, ffmpeg, imagemagick, imagemagick-6-common, imagemagick-6.q16, ldap-utils, libapt-inst2.0, libapt-pkg5.0, libavcodec57, libavdevice57, libavfilter6, libavformat57, libavresample3, libavutil55, libbind9-140, libcairo2, libcomerr2, libcups2, libcurl3, libcurl3-gnutls, libdbi-perl, libdbus-1-3, libdns-export162, libdns162, libflac8, libfreetype6, libgnutls30, libgssapi-krb5-2, libisc-export160, libisc160, libisccc140, libisccfg140, libjpeg62-turbo, libk5crypto3, libkrb5-3, libkrb5support0, libldap-2.4-2, libldap-common, libluajit-5.1-2, libluajit-5.1-common, liblwres141, libmagickcore-6.q16-3, libmagickwand-6.q16-3, libmariadbclient18, 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, libonig4, libopenmpt0, libp11-kit0, libperl5.24, libpostproc54, libpq5, libpython2.7, libpython2.7-minimal, libpython2.7-stdlib, libpython3.5-minimal, libpython3.5-stdlib, libsmbclient, libsndfile1, libsqlite3-0, libss2, libssh-gcrypt-4, libssl1.0.2, libswresample2, libswscale4, libwbclient0, libx11-6, libx11-data, libx11-xcb1, libzmq5, linux-image-amd64, linux-libc-dev, mariadb-client-10.1, mariadb-client-core-10.1, mariadb-common, mariadb-server, mariadb-server-10.1, mariadb-server-core-10.1, nginx-common, nginx-extras, perl, perl-base, perl-modules-5.24, php-apcu, php-common, php-igbinary, php-imagick, php-pear, php-redis, php-soap, php7.0-cli, php7.0-common, php7.0-curl, php7.0-fpm, php7.0-gd, php7.0-imap, php7.0-intl, php7.0-json, php7.0-ldap, php7.0-mbstring, php7.0-mcrypt, php7.0-mysql, php7.0-opcache, php7.0-readline, php7.0-soap, php7.0-xml, php7.0-zip, php7.4-cli, php7.4-common, php7.4-fpm, php7.4-gd, php7.4-intl, php7.4-json, php7.4-ldap, php7.4-mbstring, php7.4-mysql, php7.4-opcache, php7.4-readline, php7.4-soap, php7.4-xml, php7.4-zip, postfix, postfix-ldap, postfix-pcre, postfix-sqlite, postgresql-9.6, postgresql-client-9.6, postgresql-contrib-9.6, postsrsd, python-apt, python-apt-common, python-pip, python-pip-whl, python2.7, python2.7-minimal, python3.5, python3.5-minimal, python3.5-venv, qemu-utils, samba-common, samba-libs, slapd, smbclient, tzdata

Hmf let’s run :

grep -nr "yarn" /etc/apt/sources.list*

Hi i tried that and it came up with /etc/apt/sources.list.d/thelougnge.list:1:deb https://dl.yarnpkg.com/debian/ stable main
Tried to run the upgrade again and it didnt work

So let’s

rm /etc/apt/sources.list.d/thelounge.list

and that should do the trick (app needing yarn will reinstall it or maybe that’s a residue from a fail install)

Thank you so much, thats fixed it :slight_smile:

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