Ubuntu 16.04中GNS3已安装却找不到启动入口,重装提示已更新该怎么办?
Hey there, let's work through this issue step by step—I've dealt with similar desktop app shortcut problems on Ubuntu before, so here's what you can try:
Step 1: Verify if GNS3 actually runs via terminal
First, let's confirm the installation is functional beyond just the package manager saying it's installed. Open a terminal and run:
gns3
- If GNS3 launches successfully, the problem is only with the app menu/desktop shortcut—skip to Step 2.
- If you get errors like "command not found" or missing dependencies, move to Step 3 to fix the installation itself.
Step 2: Restore or create the missing app menu shortcut
If GNS3 runs from the terminal but doesn't appear in your app list, we need to fix the .desktop entry file:
Check if the shortcut file exists:
Run this command to look for it in common locations:ls /usr/share/applications/gns3.desktop ~/.local/share/applications/gns3.desktop- If the file exists, it might be untrusted or have incorrect permissions. Fix that with:
Then refresh the app list and log out/in to apply changes:sudo chmod +x /usr/share/applications/gns3.desktopupdate-desktop-database /usr/share/applications/
- If the file exists, it might be untrusted or have incorrect permissions. Fix that with:
If the
.desktopfile doesn't exist, create it manually:
Open a text editor with sudo privileges:sudo nano /usr/share/applications/gns3.desktopPaste this content into the file:
[Desktop Entry] Name=GNS3 Comment=Graphical Network Simulator 3 Exec=gns3 Icon=/usr/share/pixmaps/gns3.png Terminal=false Type=Application Categories=Network;Education;Development;Save the file (press
Ctrl+O, hitEnter, thenCtrl+X), then make it executable:sudo chmod +x /usr/share/applications/gns3.desktopFinally, refresh the app list:
update-desktop-database /usr/share/applications/Check your app menu again—GNS3 should now appear.
Step 3: Fix broken installation if GNS3 won't launch from terminal
If running gns3 throws errors, let's do a clean reinstall:
Fully remove the existing GNS3 installation and residual files:
sudo apt remove --purge gns3 gns3-server gns3-gui sudo apt autoremove sudo apt cleanReinstall using the official GNS3 repository (critical for Ubuntu 16.04 compatibility):
First add the PPA:sudo add-apt-repository ppa:gns3/ppa sudo apt updateThen install the full GNS3 suite:
sudo apt install gns3-gui gns3-serverDuring installation, you'll be asked to allow non-root users to use tools like Wireshark or ubridge—make sure to select "Yes" for these prompts to avoid permission issues later.
After reinstalling, launch GNS3 via terminal again with
gns3. If it runs, the app menu shortcut should now work too.
内容的提问来源于stack exchange,提问作者user2904033

