我尝试按照其网站上 Debian 发行版部分下的文档进行操作,但得到了以下输出。 https://docs.gns3.com/docs/getting-started/installation/linux
sudo apt update
sudo apt install -y python3-pip python3-pyqt5 python3-pyqt5.qtsvg \
python3-pyqt5.qtwebsockets \
qemu qemu-kvm qemu-utils libvirt-clients libvirt-daemon-system virtinst \
wireshark xtightvncviewer apt-transport-https \
ca-certificates curl gnupg2 software-properties-common
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Get:4 http://ppa.launchpad.net/gns3/ppa/ubuntu trusty InRelease [15.4 kB]
Hit:5 https://dl.google.com/linux/chrome/deb stable InRelease
Err:4 http://ppa.launchpad.net/gns3/ppa/ubuntu trusty InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9A2FD067A2E3EF7B
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/gns3/ppa/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9A2FD067A2E3EF7B
E: The repository 'http://ppa.launchpad.net/gns3/ppa/ubuntu trusty InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'qemu-system-x86' instead of 'qemu-kvm'
Package qemu 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 'qemu' has no installation candidate
我也是 Linux 新手,所以不确定我哪里做错了。
谢谢!
答案1
您可以从 Python3 PyPI 安装 GNS3 并在Python 虚拟环境。
首先,安装所需的 Debian 软件包。
sudo apt install python3-pip python3-venv python3-pyqt5.qtsvg python3-pyqt5.qtwebsockets
然后创建Python虚拟环境
python3 -m venv gns3env
激活虚拟环境
source gns3env/bin/activate
从 PyPI 安装所需的软件包
pip install pyqt5
pip install gns3-server
pip install gns3-gui
您现在应该能够从 shell 提示符启动 gns3 gui。
(gns3env) $ gns3