无法找到包 python-gnomedesktop:在 ns3 中安装 PyViz

Unable to locate package python-gnomedesktop: Installing PyViz in ns3

我正在按照命令 here 安装 PyViz。

我收到错误:

~$ sudo apt-get install python-gnome2-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-gnome2-desktop 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
However the following packages replace it:
  python-wnck:i386 python-rsvg:i386 python-gnomekeyring:i386 python-wnck python-rsvg python-gnomekeyring

E: Package 'python-gnome2-desktop' has no installation candidate

我试图搜索问题的解决方案,但都给出了相同的错误。

我有 Ubuntu 15.04.

就是python-gnome2:

python-gnome2

您可以通过 apt-cache 搜索查看:

$apt-cache search python-gnome2
    python-gnome2 - Python bindings for the GNOME desktop environment
    python-gnome2-desktop-dev - Python bindings for the GNOME desktop environment
    python-gnome2-dev - Python bindings for the GNOME desktop environment - development files
    python-gnome2-doc - Python bindings for the GNOME desktop environment

您实际上需要安装python-gnome2-desktop-devpython-gnomedesktop将与开发包一起安装。

python-gnomedesktop (>= 2.32.0+dfsg-1)
Python bindings for the GNOME desktop library