我在Windows上使用WSL。我不能使用
apt
或
apt-get
以下是我尝试使用apt或apt-get时收到的错误消息。
~$ apt
apt: error while loading shared libraries: libapt-private.so.0.0: cannot open shared object file: No such file or directory
有没有办法让它再次工作?我不想仅仅因为这个问题而重新安装WSL。
发布于 2020-02-19 17:40:41
好的,首先找出你的发行版是什么。在我的例子中:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
然后相应地visit并下载".deb“文件到您的PC:
下一次运行命令sudo dpkg -i <XYZ>.deb
。在我的例子中:
sudo dpkg -i apt_1.6.1_amd64.deb
然后你只需要做:
apt --fix-broken install
希望这能有所帮助;)
https://stackoverflow.com/questions/59560633
复制相似问题