windows子系統apt出錯libapt-private.so.0.0找不到

apt: error while loading shared libraries: libapt-private.so.0.0: cannot open shared object file: No such file or directoryubuntu

windows10 WSL 執行apt命令出現如下錯誤

apt: error while loading shared libraries: libapt-private.so.0.0: cannot open shared object file: No such file or directory

解決

#查看apt 版本
dpkg -l apt
# 下載對應版本
wget https://launchpad.net/ubuntu/+source/apt/1.6.11/+build/16829590/+files/apt_1.6.11_amd64.deb 
# 安裝
dpkg -i apt_1.6.11_amd64.deb
# 再次執行 apt 相關命令後報錯不在出現

https://segmentfault.com/img/bVbAYdT/view

相關文章
相關標籤/搜索