【Bug解决】Ubuntu安装pip3:无法定位软件包问题

转自https://zstar.blog.csdn.net/article/details/125257999

最近想要使用kali里面的python3,需要pip3,结果怎么也不对。提示无法定位软件包。

网上找到这一篇:参考一下。

这是因为之前我对apt进行了换源,更换了清华源,然而,目前这个源似乎在Ubuntu18.04无法使用,于是换成阿里源
使用gedit打开源文件

sudo gedit /etc/apt/sources.list
1
将文件里面的内容全部替换为

deb http://mirrors.aliyun.com/ubuntu bionic main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-updates main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-backports main multiverse restricted universe
————————————————
版权声明:本文为CSDN博主「zstar-_」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq1198768105/article/details/125257999

posted @ 2022-10-12 05:08  viphhs  阅读(159)  评论(0编辑  收藏  举报