无法在 Kali Linux 中安装包 python-httplib2

无法在 Kali Linux 中安装包 python-httplib2

我需要安装标题中提到的软件包,但是当我运行时:

sudo apt-get install -y python-httplib2

我得到:

“软件包‘python-httplib2’没有安装候选”

我被告知要跑:

"sudo apt-get install python" 
"sudo apt-get install python2" 
"sudo apt-get update"

但它也不起作用。

答案1

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包并安装
链接:
https://packages.debian.org/search?suite=default§ion=all&arch=any&searchon=names&keywords=python-httplib2

下载链接:
http://ftp.br.debian.org/debian/pool/main/p/python-httplib2/python-httplib2_0.11.3-2_all.deb

答案2

您正在使用 Kali Linux 2020.1,它基于代号为 bullseye 的 Debian 11,其默认 Python 版本为 Python 3.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 吗?在 Kali Linux 2020.1 中,python-httplib2 已升级为 python3-httplib2。

相关内容