Bir paket kurarken veya sistemi tamamen güncellerken karşınıza çıkabilecek bir hata var ki çok can sıkıyor, ben bu hatayı ilk gördüğümde Windows üzerine kurulu olan Linux işletim sistemimi normalde sıfırlar geçerdim. Her zaman böyle bir imkanımın olmadığını bildiğim içinde çözümü buraya bırakıyorum.
Bazı sistemlerde bu hatayı çözmek için sistemi yeniden başlatmanız yeterli, lakin bunu da yaptınız ama çözülmüyorsa aşağıdaki logu ve çözüm yöntemini deneyebilirsiniz.
Log started: 2021-01-27 22:08:37
Setting up libc-bin (2.28-10) ...
Log ended: 2021-01-27 22:08:37
Log started: 2021-01-27 22:13:19
Selecting previously unselected package htop.
dpkg: warning: files list file for package 'libc-bin' missing; assuming package has no files currently installed
(Reading database ... 22199 files and directories currently installed.)
Preparing to unpack .../htop_2.2.0-1+b1_amd64.deb ...
Unpacking htop (2.2.0-1+b1) ...
Setting up htop (2.2.0-1+b1) ...
Log ended: 2021-01-27 22:13:19
Log started: 2021-01-27 22:14:14
dpkg: warning: files list file for package 'libc-bin' missing; assuming package has no files currently installed
(Reading database ... 22210 files and directories currently installed.)
Preparing to unpack .../sudo_1.8.27-1+deb10u3_amd64.deb ...
Unpacking sudo (1.8.27-1+deb10u3) over (1.8.27-1+deb10u2) ...
Setting up sudo (1.8.27-1+deb10u3) ...
invoke-rc.d: could not determine current runlevel
Processing triggers for systemd (241-7~deb10u5) ...
Log ended: 2021-01-27 22:14:15
Log started: 2021-01-27 22:14:17
dpkg: warning: files list file for package 'libc-bin' missing; assuming package has no files currently installed
(Reading database ... 22210 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.28-10_amd64.deb ...
Unpacking libc-bin (2.28-10) over (2.28-10) ...
Setting up libc-bin (2.28-10) ...
Aborted (core dumped)
ldconfig: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
ldconfig: Path `/lib/x86_64-linux-gnu' given more than once
ldconfig: Path `/usr/lib/x86_64-linux-gnu' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
libfakeroot-0.so -> libfakeroot-tcp.so
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (--configure):
installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
libc-bin
Log ended: 2021-01-27 22:14:17
Log started: 2021-01-27 22:15:36
Setting up libc-bin (2.28-10) ...
Aborted (core dumped)
ldconfig: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
ldconfig: Path `/lib/x86_64-linux-gnu' given more than once
ldconfig: Path `/usr/lib/x86_64-linux-gnu' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
libfakeroot-0.so -> libfakeroot-tcp.so
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (--configure):
installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
libc-bin
Log ended: 2021-01-27 22:15:36
Log started: 2021-01-27 22:16:42
Setting up libc-bin (2.28-10) ...
Log ended: 2021-01-27 22:16:42
WSL üzerinde çözüm için aşağıdaki adımları izlemeniz yeterlidir.
sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt install libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/
Windows 10 20H2 sürümü üzerinde denenmiştir.