LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2020, 01:03 PM   #1
S33k3r
LQ Newbie
 
Registered: Dec 2020
Posts: 1

Rep: Reputation: Disabled
I cannot launch Zenmap


Hi guys,
I have decided to start my journey in Linux and of course i have already faced several issues that i was able to resolve myself.
But this one is driving me crazy.
I have the latest version of Kali linux and i have installed the latest version of Zenmap as well.
But when I try to launch it with sudo zenmap i recieved this error:
Could not import the zenmapGUI.App module: 'No module named gtk'.
I checked in these directories:
/usr/bin
/usr/share/offsec-awae-wheels/idna-2.9-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/ply-3.11-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/chardet-3.0.4-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/PySocks-1.7.1-py27-none-any.whl
/usr/share/offsec-awae-wheels/enum34-1.1.10-py2-none-any.whl
/usr/share/offsec-awae-wheels/backports.functools_lru_cache-1.6.1-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/requests-2.23.0-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/urllib3-1.25.9-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/colorama-0.4.3-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/soupsieve-1.9.5-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/beautifulsoup4-4.9.1-py2-none-any.whl
/usr/share/offsec-awae-wheels/certifi-2020.4.5.1-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/pycparser-2.20-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/six-1.15.0-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/ipaddress-1.0.23-py2.py3-none-any.whl
/usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl
/usr/share/cffi-wheels/py-1.8.1-py2.py3-none-any.whl
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.6/site-packages
If you installed Zenmap in another directory, you may have to add the
modules directory to the PYTHONPATH environment variable.
I have tried everything : apt full-upgrade, apt update, apt-get dist-upgrade but nothing.
Is there someone that can help me out with this problem?
 
Old 12-28-2020, 01:31 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
By default, sudo uses a small subset of your environment. Python paths are most likely not included in that subset, which probably explains your problem.

I would first confirm that the error does not occur without sudo. If that is so, configure sudo so that it does contain the Python paths.

Another approach is using su instead of sudo.
 
Old 12-28-2020, 03:16 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by S33k3r View Post
I have decided to start my journey in Linux (...)
I have the latest version of Kali linux
Stop right there.
You need to get aquainted with a more newbie friendly Linux distribution first.

Here's what Kali Linux' developers have to say about it:

Quote:
Is Kali Linux Right For You?

As the distribution’s developers, you might expect us to recommend that everyone
should be using Kali Linux. The fact of the matter is, however, that Kali is a
Linux distribution specifically geared towards professional penetration testers
and security specialists, and given its unique nature, it is NOT a recommended
distribution if you’re unfamiliar with Linux
or are looking for a general-purpose
Linux desktop distribution for development, web design, gaming, etc.

Even for experienced Linux users, Kali can pose some challenges.

(Source)
 
1 members found this post helpful.
Old 12-28-2020, 09:08 AM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Last I checked, Zenmap has a dependency on pygtk, which depends on gobject2, which depends on python2.

Stop using it. Use something else. Not nmap, it is fine, I mean zenmap.

https://aur.archlinux.org/cgit/aur.g...BUILD?h=zenmap

Here is the source
Code:
wget --spider https://nmap.org/dist/nmap-7.91.tar.bz2
Spider mode enabled. Check if remote file exists.
--2020-12-28 09:07:14--  https://nmap.org/dist/nmap-7.91.tar.bz2
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving nmap.org (nmap.org)... 45.33.49.119, 2600:3c01:e000:3e6::6d4e:7061
Connecting to nmap.org (nmap.org)|45.33.49.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10503500 (10M) [application/x-bzip2]
Remote file exists.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zenmap screencast on Youtube (was: Scanning for Vulnerabilities) dudeman41465 General 1 05-23-2010 04:26 PM
Zenmap intense scan crashes network Dogs Linux - Networking 12 05-23-2010 01:56 AM
LXer: Using Zenmap 5.0 on Ubuntu 9.04 LXer Syndicated Linux News 0 10-12-2009 08:40 AM
Zenmap ipscan installation error jpmaxyusuf Linux - Server 0 02-24-2009 05:40 AM
LXer: Zenmap, official nmap GUI LXer Syndicated Linux News 0 12-20-2007 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration