rst2man:配置:错误:需要 rst2man

rst2man:配置:错误:需要 rst2man

我正在尝试从远程安装最新版本的 BlueZ (https://git.kernel.org/pub/scm/bluetooth/bluez.git) 使用以下步骤:-

./bootstrap
./configure --disable-dependency-tracking
make

但是,配置过程失败,并出现以下情况:-

checking systemd user unit dir... /usr/lib/systemd/user

checking for rst2man... no
checking for rst2man.py... no
configure: error: rst2man is required
make: *** No targets specified and no makefile found. Stop.

在网上快速搜索后,我发现为了满足这个要求,我必须安装 python-docutils,但这总是失败,出现以下情况

$ sudo apt -y install python-docutils

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-docutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-docutils' has no installation candidate

我按照此链接但还是没运气,我总是收到上述错误消息。知道如何安装 python-docutils 或 rst2man 吗?

我正在使用 Ubuntu 22.04.1 LTS(Linux 5.15.0-48-generic)。

答案1

为我

sudo apt -y install python3-docutils

似乎可以在 Debian GNU/Linux 11 上运行(靶心)。

相关内容