我需要安装标题中提到的包,但是当我运行时:
sudo apt-get install -y python-httplib2我得到:
“包'python-httplib2‘没有安装候选程序”
我被告知要逃跑:
"sudo apt-get install python"
"sudo apt-get install python2"
"sudo apt-get update"但也不起作用。
发布于 2020-08-01 13:41:55
debian包搜索只显示以下内容
Package python-httplib2
jessie (oldoldstable) (python): comprehensive HTTP client library written for Python
0.9+dfsg-2+deb8u1 [security]: all
stretch (oldstable) (python): comprehensive HTTP client library written for Python
0.9.2+dfsg-1: all
buster (stable) (python): comprehensive HTTP client library written for Python
0.11.3-2: all
sid (unstable) (libs): A comprehensive HTTP client library written in python
0.2.0-2 [debports]: m68k sh4您正在使用的旧发行版lenny是不可用的。
尝试手动下载一个稳定的deb包并安装它。
链接:
下载连结:
http://ftp.br.debian.org/debian/pool/main/p/python-httplib2/python-httplib2_0.11.3-2_all.deb
发布于 2020-08-01 14:02:21
您使用的是KaliLinux2020.1,它基于Debian 11,代号为“斗牛眼”,它的默认Python版本为Python3.8。打开终端并键入:
sudo apt update
sudo apt install python2 ca-certificates python3-httplib2
cd ~
wget http://mirrors.kernel.org/ubuntu/pool/universe/p/python-httplib2/python-httplib2_0.14.0-1ubuntu1_all.deb
sudo apt install ./python-httplib2_0.14.0-1ubuntu1_all.deb 您真的需要安装python-httplib2吗?python-httplib2已经在Kali 2020.1中升级到python3-httplib2。
https://unix.stackexchange.com/questions/602324
复制相似问题