windows子系统apt出错libapt-private.so.0.0找不到

sawyerlan

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

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

阅读 1.9k
3 声望
1 粉丝
0 条评论
你知道吗?

3 声望
1 粉丝
文章目录
宣传栏