Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] Distribution upgrade to Buster fails
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Distribution upgrade to Buster fails
8th Nov, 2019, 08:01 AM
Post: #22
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Distribution upgrade to Buster fails
So, the update did not finished without error, that f.... nginx breaks installation

The maintenance script checks if server can be (re-)started sucessfully, but if it does not start, installation breaks with an error.

HOW STUPID IS THAT !

Terminal

root@xbian:/var/lib/dpkg/info# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
php7.0-common php7.0-xml
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Create a snapshot of '/run/xbian-storage/root/@' in '/run/xbian-storage/root/@btrfs-auto-snap_apt-run-2019-11-07-2143'
Delete subvolume (no-commit): '/run/xbian-storage/root/@last_good_known'
Create a snapshot of '/run/xbian-storage/root/@btrfs-auto-snap_apt-run-2019-11-07-2143' in '/run/xbian-storage/root/@last_good_known'
@btrfs-auto-snap_apt-run-2019-11-07-2143, 1 created snapshots, 0 sent snapshots, 0 destroyed snapshots, 0 created filesystems, 0 warnings.
Setting up nginx-full (1.14.2-2+deb10u1) ...
[FAIL] Starting nginx: nginx failed!
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-full (--configure):
installed nginx-full package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full (<< 1.14.2-2+deb10u1.1~) | nginx-light (<< 1.14.2-2+deb10u1.1~) | nginx-extras (<< 1.14.2-2+deb10u1.1~); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-full (>= 1.14.2-2+deb10u1) | nginx-light (>= 1.14.2-2+deb10u1) | nginx-extras (>= 1.14.2-2+deb10u1); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.

dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)


I modified that stupid maintenance script /var/lib/dpkg/info/nginx-full.postinst (see below, look for '''MODIFIED!!!) and now nginx stops complaining error Tongue

Code:
#!/bin/sh
set -e

case "$1" in
  abort-upgrade|abort-remove|abort-deconfigure|configure)
    ;;
  triggered)
    if [ -x /etc/init.d/nginx ]; then
      if [ -s /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then
        echo "Triggering nginx reload ..."
        invoke-rc.d nginx reload || true
      fi
    fi
    exit 0
    ;;
  *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 1
    ;;
esac

if [ -x /etc/init.d/nginx ]; then
  if [ -f /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then
    invoke-rc.d nginx upgrade || invoke-rc.d nginx restart
    #exit $? !!!MODIFIED!!!
  else
    invoke-rc.d nginx start || : #exit $? !!!MODIFIED!!!
  fi
fi



exit 0

Finally, we have to run sudo apt-get install --reinstall xbian-update before we can reboot system and everything is fine Smile


Btw: The package list has some differences, but I don't believe that this is a problem

Code:
@@ -47,6 +47,7 @@
f2fs-tools
findutils
firmware-atheros
+firmware-brcm80211
firmware-misc-nonfree
firmware-ralink
firmware-realtek
@@ -98,7 +99,6 @@
libafpclient0:armhf
libao-common
libao4
-libapache2-mod-php7.3
libapparmor1:armhf
libapr1:armhf
libaprutil1:armhf
@@ -106,7 +106,6 @@
libaprutil1-ldap:armhf
libapt-inst2.0:armhf
libapt-pkg5.0:armhf
-libargon2-1:armhf
libasound2:armhf
libasound2-data
libass5:armhf
@@ -191,7 +190,6 @@
libhogweed4:armhf
libice6:armhf
libicu57:armhf
-libicu64:armhf
libidn11:armhf
libidn2-0:armhf
libimobiledevice6:armhf
@@ -318,7 +316,6 @@
libsmartcols1:armhf
libsmbclient:armhf
libsndfile1:armhf
-libsodium23:armhf
libspeex1:armhf
libsqlite0
libsqlite3-0:armhf
@@ -419,20 +416,9 @@
php-common
php-curl
php-xml
-php7.2-common
-php7.2-curl
-php7.2-xml
-php7.3
-php7.3-cli
-php7.3-common
-php7.3-curl
-php7.3-fpm
-php7.3-json
-php7.3-mbstring
-php7.3-mysql
-php7.3-opcache
-php7.3-readline
-php7.3-xml
+php7.0-common
+php7.0-curl
+php7.0-xml
pinentry-curses
plymouth
policykit-1
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Distribution upgrade to Buster fails - jakenl - 3rd Nov, 2019, 04:55 AM
Distribution upgrade to Buster fails - jakenl - 3rd Nov, 2019, 09:20 AM
Distribution upgrade to Buster fails - jakenl - 5th Nov, 2019, 04:54 AM
RE: Distribution upgrade to Buster fails - Nachteule - 6th Nov, 2019, 02:56 AM
RE: Distribution upgrade to Buster fails - Nachteule - 6th Nov, 2019, 03:05 AM
RE: Distribution upgrade to Buster fails - jakenl - 6th Nov, 2019, 09:14 AM
RE: Distribution upgrade to Buster fails - Skywatch - 6th Nov, 2019, 10:05 PM
RE: Distribution upgrade to Buster fails - Nachteule - 6th Nov, 2019, 11:37 PM
RE: Distribution upgrade to Buster fails - Skywatch - 7th Nov, 2019, 12:06 AM
RE: Distribution upgrade to Buster fails - Nachteule - 7th Nov, 2019, 01:45 AM
RE: Distribution upgrade to Buster fails - Skywatch - 7th Nov, 2019, 03:04 AM
RE: Distribution upgrade to Buster fails - Nachteule - 7th Nov, 2019, 05:14 AM
RE: Distribution upgrade to Buster fails - Skywatch - 7th Nov, 2019, 06:32 AM
RE: Distribution upgrade to Buster fails - Nachteule - 7th Nov, 2019, 07:34 AM
RE: Distribution upgrade to Buster fails - jakenl - 7th Nov, 2019, 09:21 AM
RE: Distribution upgrade to Buster fails - Nachteule - 7th Nov, 2019, 10:05 AM
RE: Distribution upgrade to Buster fails - Skywatch - 7th Nov, 2019, 07:26 PM
RE: Distribution upgrade to Buster fails - Nachteule - 7th Nov, 2019, 07:46 PM
RE: Distribution upgrade to Buster fails - Nachteule - 7th Nov, 2019, 10:55 PM
RE: Distribution upgrade to Buster fails - Skywatch - 10th Nov, 2019, 05:45 AM
RE: Distribution upgrade to Buster fails - Nachteule - 10th Nov, 2019, 06:33 AM
RE: Distribution upgrade to Buster fails - Skywatch - 11th Nov, 2019, 06:07 AM
RE: Distribution upgrade to Buster fails - jakenl - 8th Nov, 2019, 05:41 AM
RE: Distribution upgrade to Buster fails - Nachteule - 8th Nov, 2019, 05:52 AM
RE: Distribution upgrade to Buster fails - Nachteule - 8th Nov, 2019 08:01 AM
Distribution upgrade to Buster fails - jakenl - 8th Nov, 2019, 08:37 AM
RE: Distribution upgrade to Buster fails - Nachteule - 8th Nov, 2019, 08:42 AM
Distribution upgrade to Buster fails - jakenl - 10th Nov, 2019, 12:23 AM
RE: Distribution upgrade to Buster fails - Nachteule - 10th Nov, 2019, 02:32 AM
RE: Distribution upgrade to Buster fails - Nachteule - 11th Nov, 2019, 08:07 AM
RE: Distribution upgrade to Buster fails - jakenl - 11th Nov, 2019, 04:53 PM
RE: Distribution upgrade to Buster fails - Exnor - 12th Nov, 2019, 05:24 AM
RE: Distribution upgrade to Buster fails - Nachteule - 12th Nov, 2019, 06:13 AM
RE: Distribution upgrade to Buster fails - Exnor - 13th Nov, 2019, 03:32 AM
RE: Distribution upgrade to Buster fails - rafhtl - 21st Nov, 2019, 07:33 PM
RE: Distribution upgrade to Buster fails - Nachteule - 22nd Nov, 2019, 12:18 AM
RE: Distribution upgrade to Buster fails - rafhtl - 22nd Nov, 2019, 01:43 AM
RE: Distribution upgrade to Buster fails - Nachteule - 22nd Nov, 2019, 02:22 AM
RE: Distribution upgrade to Buster fails - rafhtl - 22nd Nov, 2019, 02:26 AM
RE: Distribution upgrade to Buster fails - Nachteule - 22nd Nov, 2019, 02:40 AM
RE: Distribution upgrade to Buster fails - rafhtl - 22nd Nov, 2019, 03:14 AM
RE: Distribution upgrade to Buster fails - Nachteule - 22nd Nov, 2019, 03:21 AM
RE: Distribution upgrade to Buster fails - rafhtl - 22nd Nov, 2019, 03:32 AM
RE: Distribution upgrade to Buster fails - Nachteule - 22nd Nov, 2019, 06:48 AM
RE: Distribution upgrade to Buster fails - rafhtl - 22nd Nov, 2019, 07:06 AM
RE: Distribution upgrade to Buster fails - Nachteule - 22nd Nov, 2019, 07:29 AM
RE: Distribution upgrade to Buster fails - rafhtl - 22nd Nov, 2019, 06:00 PM
RE: Distribution upgrade to Buster fails - Nachteule - 23rd Nov, 2019, 12:40 AM
RE: Distribution upgrade to Buster fails - rafhtl - 23rd Nov, 2019, 04:57 AM
RE: Distribution upgrade to Buster fails - Nachteule - 23rd Nov, 2019, 06:27 AM
RE: Distribution upgrade to Buster fails - rafhtl - 23rd Nov, 2019, 06:51 AM
RE: Distribution upgrade to Buster fails - Nachteule - 23rd Nov, 2019, 06:53 AM
RE: Distribution upgrade to Buster fails - rafhtl - 23rd Nov, 2019, 07:01 AM
RE: Distribution upgrade to Buster fails - Nachteule - 23rd Nov, 2019, 07:04 AM
RE: Distribution upgrade to Buster fails - rafhtl - 23rd Nov, 2019, 07:12 AM
RE: Distribution upgrade to Buster fails - Nachteule - 23rd Nov, 2019, 07:27 AM
RE: Distribution upgrade to Buster fails - rafhtl - 23rd Nov, 2019, 07:29 AM
RE: Distribution upgrade to Buster fails - Nachteule - 23rd Nov, 2019, 07:38 AM
RE: Distribution upgrade to Buster fails - rafhtl - 23rd Nov, 2019, 07:40 AM
RE: Distribution upgrade to Buster fails - Nachteule - 23rd Nov, 2019, 07:50 AM
RE: Distribution upgrade to Buster fails - rafhtl - 23rd Nov, 2019, 07:56 AM
RE: Distribution upgrade to Buster fails - Nachteule - 23rd Nov, 2019, 08:04 AM
RE: Distribution upgrade to Buster fails - Exnor - 3rd Jul, 2020, 03:54 AM
RE: Distribution upgrade to Buster fails - Nachteule - 3rd Jul, 2020, 03:59 AM
RE: Distribution upgrade to Buster fails - Exnor - 3rd Jul, 2020, 04:41 AM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [SOLVED] Distribution upgrade Stretch to Buster fails Roy Terhaar 15 29,726 8th Nov, 2019 12:49 AM
Last Post: Nachteule

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 22nd May, 2025, 08:41 PM Powered By MyBB, © 2002-2025 MyBB Group.