试图将kali升级到debian,并在将破折号0.5.8-2.5升级到0.5.8-2.6时出错。结果未找到。通过以下方式还原系统:
rm /bin/sh
ln -s /usr/bin/dash /bin/sh
当我尝试重新安装破折号时,由于Cuz / bin / sh出现错误的符号链接,试图重新安装破折号并出现相同的错误:
apt install dash --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 273 not upgraded.
1 not fully installed or removed.
Need to get 0 B/113 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 426445 files and directories currently installed.)
Preparing to unpack .../dash_0.5.8-2.6_amd64.deb ...
Unpacking dash (0.5.8-2.6) over (0.5.8-2.6) ...
Setting up dash (0.5.8-2.6) ...
Removing 'diversion of /bin/sh to /bin/sh.distrib by bash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by dash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
dpkg: error: error executing hook 'if { test "$DPKG_HOOK_ACTION" = add-architecture || test "$DPKG_HOOK_ACTION" = remove-architecture; } && test -x /usr/share/pkg-config-dpkghook; then /usr/share/pkg-config-dpkghook update; fi', exit code 32512
E: Sub-process /usr/bin/dpkg returned an error code (2)
E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null'
E: Sub-process returned an error code
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.0 (stretch)
Release: 9.0
Codename: stretch
没有从Kali到Debian的支持升级路径。如果要使用Debian而不是Kali,则需要在您的Kali设置上使用Debian安装程序(下载安装程序映像)安装Debian 。您必须备份要保留的所有数据。
在这种情况下,您会遇到一个bugdash
;这也表明您正在尝试安装Debian不稳定版,如果您对系统不太熟悉,则不建议这样做。您应该安装Debian稳定版。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句