ns-3
我正在尝试使用 Ubuntu 20.04(WSL)在 Windows 11 上安装,但是在运行时:
sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev ipython
我得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ipython 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: Unable to locate package python-pygraphviz
E: Unable to locate package python-kiwi
E: Unable to locate package python-pygoocanvas
E: Unable to locate package libgoocanvas-dev
E: Package 'ipython' has no installation candidate.
我已经尝试了所有其他说明,但都无济于事。我试过了sudo apt install -y python3-pip
,pip3 install ipython
等等。请帮帮我。
答案1
我在 Ubuntu 的 WSL 上安装 ipython 时也遇到了同样的错误。根据建议,更新软件包源列表解决了这个问题。只需执行
sudo apt update
然后重试。