My wsl come an error when using apt-get installl
/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
Setting up libc6:amd64 (2.33-6) ...
/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
i have solution found from Youtube channel https://www.youtube.com/c/SonoosKB, thanks for that
you can watch the video link:
[Fixed]apt --fix-broken install libcrypt.so.1 cannot open shared object file error WSL Kali-Linux - YouTube
here what i do in my wsl:
root@mywsl:/mnt/c/Users/myuser# cd /tmp/root@mywsl:/tmp# apt -y download libcrypt1
Get:1 http://mirror.primelink.net.id/kali kali-rolling/main amd64 libcrypt1 amd64 1:4.4.27-1.1 [89.0 kB]
Fetched 89.0 kB in 1s (136 kB/s)
root@mywsl:/tmp# dpkg-deb -x libcrypt1_1%3a4.4.27-1.1_amd64.deb .
root@mywsl:/tmp# cp -av lib/x86_64-linux-gnu/* /lib/
apt/ gcc/ libsupp.a modprobe.d/ sasl2/ sysusers.d/ tmpfiles.d/
binfmt.d/ ifupdown/ locale/ modules-load.d/ ssl/ tasksel/ udev/
dpkg/ init/ lsb/ os-release sudo/ tc/ wsl/
environment.d/ kernel/ mime/ rsyslog/ systemd/ terminfo/ x86_64-linux-gnu/
root@mywsl:/tmp# cp -av lib/x86_64-linux-gnu/* /lib/x86_64-linux-gnu/
'lib/x86_64-linux-gnu/libcrypt.so.1' -> '/lib/x86_64-linux-gnu/libcrypt.so.1'
'lib/x86_64-linux-gnu/libcrypt.so.1.1.0' -> '/lib/x86_64-linux-gnu/libcrypt.so.1.1.0'
root@mywsl:/tmp# apt -y -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libc-bin
Recommended packages:
manpages
The following packages will be upgraded:
libc-bin
1 upgraded, 0 newly installed, 0 to remove and 96 not upgraded.
1 not fully installed or removed.
Need to get 0 B/846 kB of archives.
After this operation, 279 kB of additional disk space will be used.
Setting up libc6:amd64 (2.33-6) ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
(Reading database ... 17111 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.33-6_amd64.deb ...
Unpacking libc-bin (2.33-6) over (2.28-10) ...
Setting up libc-bin (2.33-6) ...
root@mywsl:/tmp#