Kali를 Debian으로 업그레이드할 수 없습니다.

Kali를 Debian으로 업그레이드할 수 없습니다.

kali를 데비안으로 업그레이드하려고 하는데 dash 0.5.8-2.5를 0.5.8-2.6으로 업그레이드하는 동안 오류가 발생합니다. 결과적으로 sh는 발견되지 않았습니다. 다음을 통해 시스템을 복원하십시오.

rm /bin/sh        
ln -s /usr/bin/dash /bin/sh

대시를 다시 설치하려고 할 때 /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

답변1

Kali에서 Debian으로의 업그레이드 경로는 지원되지 않습니다. Kali 대신 Debian을 사용하려면 Debian 설치 프로그램(다운로드)을 사용하여 Debian을 설치해야 합니다.설치 프로그램 이미지), Kali 설정에서. 보관하려는 모든 데이터를 미리 백업해야 합니다.

이 특별한 경우에 당신은 직면하게 될 것입니다오류dash;이는 불안정한 데비안 버전을 설치하려고 한다는 뜻이기도 합니다. 설치하지 않는 경우에는 권장되지 않습니다.매우시스템에 익숙해지세요. Debian stable을 설치해야 합니다.

관련 정보