Failed upgrade to Buster from Strecth

Let’s check if Nextcloud is marked as installed

dietpi-software list | grep 114



root@MyServer:~# dietpi-software list | grep 114
ID 114 | =2 | Nextcloud: File sync, sharing and collaboration platform | +MariaDB +PHP +Redis +webserver | https://dietpi.com/docs/software/cloud/#nextcloud

found it. Feature has been removed on DietPi 7.9 already https://github.com/MichaIng/DietPi/commit/a375157cead059a424430e79f2d66159a63336b2

Joulinar, many thanks for answer!
Should i do something with stretch packages? Now everything works except deluge. Or “If it is not broke, don’t fix it” the best strategy?

Also fail2ban is not on this list. Although it is in the list of services.

fail2ban service is excluded by design. It is only shown, but not controlled.

Should i do something with stretch packages?

Can you share following again

dpkg -l | grep -E 'debian9|bpo9'
ii  libargon2-1:amd64                                           0~20190702-0.1+0~20190710.3+debian9~1.gbp2fb167           amd64        memory-hard hashing function - runtime library
ii  libenchant1c2a:amd64                                        1.6.1-1+0~20210212.1+debian9~1.gbp73138d                  amd64        Wrapper library for various spell checker engines (runtime libs)
ii  libgd3:amd64                                                2.2.5-5.2+0~20190808.4+debian9~1.gbp6d9343                amd64        GD Graphics Library
ii  libicu65:amd64                                              65.1-1+0~20200223.8+debian9~1.gbp519cf3                   amd64        International Components for Unicode
ii  libidn2-0:amd64                                             2.2.0-2+0~20200302.4+debian9~1.gbpf85c2e                  amd64        Internationalized domain names (IDNA2008/TR46) library
ii  libpcre2-8-0:amd64                                          10.39-2+0~20211122.14+debian9~1.gbp0d570b                 amd64        New Perl Compatible Regular Expression Library- 8 bit runtime files
ii  libpcre3:amd64                                              2:8.44-2+0~20210301.9+debian9~1.gbpa278ad                 amd64        Perl 5 Compatible Regular Expression Library - runtime files
ii  libxml2:amd64                                               2.9.12+dfsg-0+0~20210621.9+debian9~1.gbp43e861            amd64        GNOME XML library
ii  libzstd1:amd64                                              1.4.8+dfsg-2+0~20210302.3+debian9~1.gbp8effd2             amd64        fast lossless compression algorithm
ii  monodoc-browser                                             4.2-2xamarin12+debian9b1                                  all          MonoDoc GTK+ based viewer
rc  php7.3-apcu                                                 5.1.21+4.0.11-7+0~20220117.31+debian9~1.gbp9a887a         amd64        APC User Cache for PHP
rc  php7.3-igbinary                                             3.2.6+2.0.8-6+0~20220117.32+debian9~1.gbp1d540e           amd64        igbinary PHP serializer
rc  php7.3-redis                                                5.3.5+4.3.0-5+0~20220117.40+debian9~1.gbpf8a972           amd64        PHP extension for interfacing with Redis

did you followed all steps on this post? https://dietpi.com/forum/t/failed-upgrade-to-buster-from-strecth/6435/13

Yep, I did.
And on the second step get this:

# apt-mark auto libpcre3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libsodium23 libxml2 libxml2-dev libzip4 php php-common php7.3-redis php7.3-sqlite3 php7.3-intl php7.3-igbinary php7.3-apcu php-igbinary php-redis
libpcre3 was already set to automatically installed.
libpcre3-dev can not be marked as it is not installed.
libpcre32-3 can not be marked as it is not installed.
libpcrecpp0v5 can not be marked as it is not installed.
libsodium23 was already set to automatically installed.
libxml2 was already set to automatically installed.
libxml2-dev can not be marked as it is not installed.
libzip4 was already set to automatically installed.
php can not be marked as it is not installed.
php-common was already set to automatically installed.
php7.3-redis can not be marked as it is not installed.
php7.3-sqlite3 can not be marked as it is not installed.
php7.3-intl can not be marked as it is not installed.
php7.3-igbinary can not be marked as it is not installed.
php7.3-apcu can not be marked as it is not installed.
php-igbinary can not be marked as it is not installed.
php-redis can not be marked as it is not installed.

After that autopurge do nothing.

MichaIng
can you have a look again pls.

Show again the output of:

dpkg -l | grep debian9

Basically the same issue like here (regarding packages from Ondrej’s PHP repo): https://github.com/MichaIng/DietPi/issues/4983
They may need to be downgraded individually, downgraded because Ondrej ships newer upstream versions for older Debian versions, which is all a bit nasty when one wants to upgrade to a newer Debian version.

MichaIng
should be this list https://dietpi.com/forum/t/failed-upgrade-to-buster-from-strecth/6435/26

We need to know what is left of it after the auto-removal, done after this was printed.

Sorry for delay!



ii  libargon2-1:amd64                                           0~20190702-0.1+0~20190710.3+debian9~1.gbp2fb167           amd64        memory-hard hashing function - runtime library
ii  libenchant1c2a:amd64                                        1.6.1-1+0~20210212.1+debian9~1.gbp73138d                  amd64        Wrapper library for various spell checker engines (runtime libs)
ii  libgd3:amd64                                                2.2.5-5.2+0~20190808.4+debian9~1.gbp6d9343                amd64        GD Graphics Library
ii  libicu65:amd64                                              65.1-1+0~20200223.8+debian9~1.gbp519cf3                   amd64        International Components for Unicode
ii  libidn2-0:amd64                                             2.2.0-2+0~20200302.4+debian9~1.gbpf85c2e                  amd64        Internationalized domain names (IDNA2008/TR46) library
ii  libpcre2-8-0:amd64                                          10.39-2+0~20211122.14+debian9~1.gbp0d570b                 amd64        New Perl Compatible Regular Expression Library- 8 bit runtime files
ii  libpcre3:amd64                                              2:8.44-2+0~20210301.9+debian9~1.gbpa278ad                 amd64        Perl 5 Compatible Regular Expression Library - runtime files
ii  libxml2:amd64                                               2.9.12+dfsg-0+0~20210621.9+debian9~1.gbp43e861            amd64        GNOME XML library
ii  libzstd1:amd64                                              1.4.8+dfsg-2+0~20210302.3+debian9~1.gbp8effd2             amd64        fast lossless compression algorithm
ii  monodoc-browser                                             4.2-2xamarin12+debian9b1                                  all          MonoDoc GTK+ based viewer
rc  php7.3-apcu                                                 5.1.21+4.0.11-7+0~20220117.31+debian9~1.gbp9a887a         amd64        APC User Cache for PHP
rc  php7.3-igbinary                                             3.2.6+2.0.8-6+0~20220117.32+debian9~1.gbp1d540e           amd64        igbinary PHP serializer
rc  php7.3-redis                                                5.3.5+4.3.0-5+0~20220117.40+debian9~1.gbpf8a972           amd64        PHP extension for interfacing with Redis



:~# apt policy php7.3-apcu
php7.3-apcu:
  Installed: (none)
  Candidate: (none)
  Version table:
     5.1.21+4.0.11-7+0~20220117.31+debian9~1.gbp9a887a -1
        100 /var/lib/dpkg/status

The autoremoval was missing. Please run:

apt-mark auto libargon2-1 libenchant1c2a libgd3 libicu65 libidn2-0 libpcre2-8-0 libpcre3 libxml2 libzstd1
apt autopurge php7.3-apcu php7.3-igbinary php7.3-igbinary

And then paste again:

dpkg -l | grep debian9
:~# apt-mark auto libargon2-1 libenchant1c2a libgd3 libicu65 libidn2-0 libpcre2-8-0 libpcre3 libxml2 libzstd1

libargon2-1 was already set to automatically installed.
libenchant1c2a was already set to automatically installed.
libgd3 was already set to automatically installed.
libicu65 was already set to automatically installed.
libidn2-0 was already set to automatically installed.
libpcre2-8-0 was already set to automatically installed.
libpcre3 was already set to automatically installed.
libxml2 was already set to automatically installed.
libzstd1 was already set to automatically installed.

There were two php7.3-igbinary in your autopurge command, so I assumed there must have been a php7.3-redis.

:~# dpkg -l | grep debian9
ii  libargon2-1:amd64                                           0~20190702-0.1+0~20190710.3+debian9~1.gbp2fb167           amd64        memory-hard hashing function - runtime library
ii  libenchant1c2a:amd64                                        1.6.1-1+0~20210212.1+debian9~1.gbp73138d                  amd64        Wrapper library for various spell checker engines (runtime libs)
ii  libgd3:amd64                                                2.2.5-5.2+0~20190808.4+debian9~1.gbp6d9343                amd64        GD Graphics Library
ii  libicu65:amd64                                              65.1-1+0~20200223.8+debian9~1.gbp519cf3                   amd64        International Components for Unicode
ii  libidn2-0:amd64                                             2.2.0-2+0~20200302.4+debian9~1.gbpf85c2e                  amd64        Internationalized domain names (IDNA2008/TR46) library
ii  libpcre2-8-0:amd64                                          10.39-2+0~20211122.14+debian9~1.gbp0d570b                 amd64        New Perl Compatible Regular Expression Library- 8 bit runtime files
ii  libpcre3:amd64                                              2:8.44-2+0~20210301.9+debian9~1.gbpa278ad                 amd64        Perl 5 Compatible Regular Expression Library - runtime files
ii  libxml2:amd64                                               2.9.12+dfsg-0+0~20210621.9+debian9~1.gbp43e861            amd64        GNOME XML library
ii  libzstd1:amd64                                              1.4.8+dfsg-2+0~20210302.3+debian9~1.gbp8effd2             amd64        fast lossless compression algorithm
ii  monodoc-browser                                             4.2-2xamarin12+debian9b1                                  all          MonoDoc GTK+ based viewer

Ah yes, correct.

Hmm, apt autopurge does not remove further packages? I wonder because libicu65 does not exist in any Debian repository, so nothing can depend on it :thinking:.

Apt autopurge removed three PHP packages and that’s it.
Maybe I need to remove manually all the old packages?

What would be removed when you run this?

apt purge libicu65

Do not confirm unless you are sure those are unused packages only.

:~# apt purge libicu65

...blah-blah...

The following additional packages will be installed:
  libjs-xmlextras mono-xsp4 mono-xsp4-base monodoc-http
Recommended packages:
  javascript-common lynx | www-browser
The following packages will be REMOVED:
  adwaita-icon-theme* apache2-bin* bind9-host* caja* chromium* dnsutils* firefox-esr*
  gnome-icon-theme* gstreamer1.0-plugins-good* gtk-update-icon-cache* gtk2-engines*
  gtk2-engines-murrine* gtk2-engines-pixbuf* gvfs* gvfs-backends* gvfs-daemons*
  libapache2-mod-php7.3* libarchive13* libavcodec58* libavformat58*
  libayatana-appindicator3-1* libayatana-ido3-0.4-0* libayatana-indicator3-7* libbind9-161*
  libbluray2* libcaja-extension1* libcanberra-gtk3-0* libchromaprint-tools* libchromaprint1*
  libcroco3* libdbusmenu-gtk3-4* libdns1104* libgail-3-0* libgdata22* libgdk-pixbuf2.0-0*
  libglade2-0* libglade2.0-cil* libgphoto2-6* libgtk-3-0* libgtk2.0-0* libgtk2.0-cil*
  libicu65* libirs161* libisc1100* libisccc161* libisccfg163* liblwres161*
  libmarco-private1* libmate-desktop-2-17* libmate-panel-applet-4-1* libmate-slab0*
  libmate-window-settings1* libmatekbd4* libmateweather1* libnotify4* librest-0.7-0*
  librsvg2-2* librsvg2-common* libsoup-gnome2.4-1* libsoup2.4-1* libvte-2.91-0*
  libwebkit2gtk-4.0-37* libwnck-3-0* libxklavier16* libxml2* libxslt1.1* marco*
  mate-control-center* mate-desktop* mate-desktop-environment*
  mate-desktop-environment-core* mate-desktop-environment-extras* mate-icon-theme*
  mate-notification-daemon* mate-panel* mate-polkit* mate-session-manager*
  mate-settings-daemon* mate-terminal* mate-themes* monodoc-browser* php-apcu* php7.3-cli*
  php7.3-fpm* php7.3-xml* python-lxml* python3-lxml* shared-mime-info* zenity*
The following NEW packages will be installed:
  libjs-xmlextras mono-xsp4 mono-xsp4-base monodoc-http
0 upgraded, 4 newly installed, 89 to remove and 0 not upgraded.
Need to get 274 kB of archives.
After this operation, 782 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

Looks scary. Especially the removal of mate packages.

Sorry for the late reply.

There seem to be a lot more packages installed from 3rd party repositories, or probably just one which many others depend on. Can you show:

dpkg -l libxml2
apt show libxml2