Problem while upgrading my kali linux 2020.1 to 2020.3
by Deep2 from LinuxQuestions.org on (#57E7X)
I am new to kali and I tried to upgrade my kali linux 2020.1 to 2020.3.
All was going right but while setting up and installation it get stopped and shows:
PHP Code: Current default time zone: 'America/New_York'
Local time is now: Thu Aug 27 21:03:58 EDT 2020.
Universal Time is now: Fri Aug 28 01:03:58 UTC 2020.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Setting up libopts25:amd64 (1:5.18.16-4) ...
Setting up ntp (1:4.2.8p14+dfsg-2) ...
Setting up mount (2.36-2) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.171-2) ...
Setting up libcryptsetup12:amd64 (2:2.3.3-1kali1) ...
Setting up systemd (246-2) ...
Installing new version of config file /etc/systemd/journald.conf ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/networkd.conf ...
Installing new version of config file /etc/systemd/resolved.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/user.conf ...
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service → /lib/systemd/system/systemd-pstore.service.
systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-244.so: cannot open shared object file: No such file or directory
dpkg: error processing package systemd (--configure):
installed systemd package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of systemd-sysv:
systemd-sysv depends on systemd; however:
Package systemd is not configured yet.
dpkg: error processing package systemd-sysv (--configure):
dependency problems - leaving unconfigured
Setting up dmsetup (2:1.02.171-2) ...
update-initramfs: deferring update (trigger activated)
Errors were encountered while processing:
systemd
systemd-sysv
E: Sub-process /usr/bin/dpkg returned an error code (1)
On opening the systemd-sysv-install file its showing :
Quote:
Please help how to resolve this issue.


All was going right but while setting up and installation it get stopped and shows:
PHP Code: Current default time zone: 'America/New_York'
Local time is now: Thu Aug 27 21:03:58 EDT 2020.
Universal Time is now: Fri Aug 28 01:03:58 UTC 2020.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Setting up libopts25:amd64 (1:5.18.16-4) ...
Setting up ntp (1:4.2.8p14+dfsg-2) ...
Setting up mount (2.36-2) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.171-2) ...
Setting up libcryptsetup12:amd64 (2:2.3.3-1kali1) ...
Setting up systemd (246-2) ...
Installing new version of config file /etc/systemd/journald.conf ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/networkd.conf ...
Installing new version of config file /etc/systemd/resolved.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/user.conf ...
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service → /lib/systemd/system/systemd-pstore.service.
systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-244.so: cannot open shared object file: No such file or directory
dpkg: error processing package systemd (--configure):
installed systemd package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of systemd-sysv:
systemd-sysv depends on systemd; however:
Package systemd is not configured yet.
dpkg: error processing package systemd-sysv (--configure):
dependency problems - leaving unconfigured
Setting up dmsetup (2:1.02.171-2) ...
update-initramfs: deferring update (trigger activated)
Errors were encountered while processing:
systemd
systemd-sysv
E: Sub-process /usr/bin/dpkg returned an error code (1)
On opening the systemd-sysv-install file its showing :
Quote:
#!/bin/sh # This script is called by "systemctl enable/disable" when the given unit is a # SysV init.d script. It needs to call the distribution's mechanism for # enabling/disabling those, such as chkconfig, update-rc.d, or similar. This # can optionally take a --root argument for enabling a SysV init script # in a chroot or similar. set -eu usage() { echo "Usage: $0 [--root=path] enable|disable|is-enabled <sysv script name>" >&2 exit 1 } ROOT= # parse options eval set -- "$(getopt -o r: --long root: -- "$@")" while true; do case "$1" in -r|--root) ROOT="$2" shift 2 ;; --) shift ; break ;; *) usage ;; esac done NAME="${2:-}" run() { if [ -n "$ROOT" ] && [ "$ROOT" != "/" ]; then _SKIP_SYSTEMD_NATIVE=1 chroot "$ROOT" /usr/sbin/update-rc.d "$@" else _SKIP_SYSTEMD_NATIVE=1 /usr/sbin/update-rc.d "$@" fi } [ -n "$NAME" ] || usage case "$1" in enable) # call the command to enable SysV init script $NAME here.. run "$NAME" defaults run "$NAME" enable ;; disable) run "$NAME" defaults run "$NAME" disable ;; is-enabled) # exit with 0 if $NAME is enabled, non-zero if it is disabled ls "$ROOT"/etc/rc[S5].d/S??"$NAME" >/dev/null 2>&1 ;; *) usage ;; esac |