apt dist-upgrade version 8 to 9 failed.

Help with issues regarding installation of Debian

apt dist-upgrade version 8 to 9 failed.

Postby CrustyDOD » 2019-10-08 13:00

Hello,

Need a bit of help as I'm stuck currently.

I was upgrading one of the old server from version 8 to 9 and it seems that one of the items has a history with breaking the upgrade..

Here is where the "dist-upgrade" stopped.

Code: Select all
Setting up debhelper (10.2.5) ...
Setting up dh-strip-nondeterminism (0.034-1) ...
Setting up pkg-php-tools (1.35) ...
Processing triggers for ufw (0.35-4) ...
Processing triggers for python-support (1.0.15) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for spamassassin (3.4.2-1~deb9u1) ...
OK, restarting spamd due to trigger
Processing triggers for sa-compile (3.4.2-1~deb9u1) ...
Running sa-compile (may take a long time)
Processing triggers for systemd (232-25+deb9u12) ...
Processing triggers for libapache2-mod-php7.0 (7.0.33-0+deb9u5) ...
Processing triggers for dictionaries-common (1.27.2) ...
Processing triggers for rsyslog (8.24.0-1) ...
Processing triggers for dovecot-core (1:2.2.27-3+deb9u5) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.9.0-11-amd64
Processing triggers for rkhunter (1.4.2-6+deb9u1) ...
[ Rootkit Hunter version 1.4.2 ]
File updated: searched for 177 files, found 148
Errors were encountered while processing:
 roundcube-core
 roundcube-plugins
 roundcube
 fail2ban
N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)


I removed both of them but nothing has helped. Of course I had to restart the server to make everything ON again and currently it seems like everything is okay.

But since my plan is to upgrade to version 10, I would first like to resolve this and make sure that upgrading to 10 will not completely break everything.

Some more info about the current state:
Code: Select all
root@server:/etc# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


apt dist-upgrade returns this:
Code: Select all
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  docutils-common docutils-doc euca2ools g++-4.9 imagemagick-common iproute libalgorithm-c3-perl libarchive-extract-perl libb-hooks-endofscope-perl
  libbind9-90 libclamav7 libclass-c3-perl libclass-c3-xs-perl libcpan-changes-perl libcpan-meta-perl libdata-optlist-perl libdata-perl-perl
  libdata-section-perl libdevel-caller-perl libdevel-lexalias-perl libdns100 libev4 libexporter-tiny-perl libfile-slurp-perl
  libgetopt-long-descriptive-perl libilmbase6 libintl-perl libintl-xs-perl libisc95 libisccc90 libisccfg90 libjasper1 libjsoncpp0 liblinear1
  liblist-moreutils-perl libllvm3.5 liblog-message-perl liblog-message-simple-perl liblua5.1-0 liblwres90 libmodule-build-perl
  libmodule-implementation-perl libmodule-load-conditional-perl libmodule-pluggable-perl libmodule-signature-perl libmoox-handlesvia-perl
  libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl libopenexr6 libpackage-constants-perl libpackage-stash-perl
  libpackage-stash-xs-perl libpadwalker-perl libparams-util-perl libparams-validate-perl libpath-tiny-perl libperl4-corelibs-perl libpod-latex-perl
  libpod-markdown-perl libpod-readme-perl libpth20 libregexp-common-perl libsoftware-license-perl libstdc++-4.9-dev libsub-exporter-perl
  libsub-identify-perl libsub-install-perl libterm-ui-perl libtext-template-perl libtry-tiny-perl libtype-tiny-perl libtype-tiny-xs-perl
  libunicode-utf8-perl libvariable-magic-perl libwebp5 libwebpdemux1 libwebpdemux2 libwebpmux1 libwebpmux2 libxapian22 linux-image-3.16.0-9-amd64
  lockfile-progs php-http-request php-net-dime php-net-url php-net-url2 php-patchwork-utf8 python-cffi python-cheetah python-configobj python-crypto
  python-defusedxml python-distro-info python-docutils python-ecdsa python-json-pointer python-jsonpatch python-ndg-httpsclient python-oauth
  python-paramiko python-pil python-ply python-prettytable python-pycparser python-pygments python-pyinotify python-requestbuilder python-roman
  python-serial python-soappy python-software-properties python-wstools python-yaml python3-pyinotify python3-systemd ruby-passenger ttf-dejavu-core
  unattended-upgrades zlib1g-dev
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


How does at this stage one finish the upgrade to version 9?
CrustyDOD
 
Posts: 2
Joined: 2006-01-05 12:03

Re: apt dist-upgrade version 8 to 9 failed.

Postby eor2004 » 2019-10-09 17:32

These packages are giving you errors:

Errors were encountered while processing:
roundcube-core
roundcube-plugins
roundcube
fail2ban

in my experience if you remove them, then "apt dist-upgrade" again should work, then after upgrading you can install those packages again, hope this helps, good luck!
OS Debian Stretch 64-bit DE Gnome 3.22 CPU AMD Phenom II X4 925 @ 2.8GHZ RAM 8GB CORSAIR XMS2 PC2-6400U DDR2 (CM2X2048-6400C5C) GPU ATI Radeon HD 3200 Mobo Gigabyte GA-MA78GPM-DS2H HDD Hitachi 2TB (HUA723020ALA641) 7200RPM
User avatar
eor2004
 
Posts: 194
Joined: 2013-10-01 22:49
Location: Puerto Rico


Return to Installation

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable