![我在安装替代品时犯了一个拼写错误。我该如何清除它?](https://linux22.com/image/108022/%E6%88%91%E5%9C%A8%E5%AE%89%E8%A3%85%E6%9B%BF%E4%BB%A3%E5%93%81%E6%97%B6%E7%8A%AF%E4%BA%86%E4%B8%80%E4%B8%AA%E6%8B%BC%E5%86%99%E9%94%99%E8%AF%AF%E3%80%82%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E6%B8%85%E9%99%A4%E5%AE%83%EF%BC%9F.png)
我不小心输入alternatives --install /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip
了alternatives --install /usr/[...]
.
现在我无法将其设置为其他任何内容,否则会出现错误:
failed to read link /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip: no such file or directory
the primary link for pip must be /user/lib/python2.7/site-packages/pip
当我尝试时,我收到基本上相同的消息alternatives --remove pip /user/lib/python2.7/site-packages/pip
我怎样才能解决这个问题?
答案1
update alternatives --remove pip /opt/anaconda/bin/pip
这将删除错误的链接,然后您可以添加正确的链接。