I was trying to install Zenmap in my parrot security os. But after a successful installation when I am trying to launch Zenmap of Zenmap, I am getting an ERROR
File "/usr/bin/zenmap",
line 114
except ImportError, e:
SyntaxError: invalid syntax
I got the solution to the same issue by installing the following packages
python-cairo_1.16.2-2ubuntu2_amd64.deb
python-gobject-2_2.28.6-14ubuntu1_amd64.deb
python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
So I got these packages from wget
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://azure.archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
and then install these packages by sudo dpkg -i <package_name.deb>
Related
after I install alien and
having zenmap in the download folder
when I run this command alien zenmap-7.91-1.noarch.rpm or any command related to it I get this error
package build failed. here's the log:
dh
dh: error:specify sequence to run
make:***[debian/rules:7:binary]Error 25
how do I fix this error? please help...
First just to make sure you don't have any rpm problems run this command:
apt-get --fix-broken install
Then you may need these:
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://azure.archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
dpkg -i python-gobject-2_2.28.6-14ubuntu1_amd64.deb
dpkg -i python-cairo_1.16.2-2ubuntu2_amd64.deb
dpkg -i python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
And after you have all that installed lets make sure our alien version is 8.90.
Remove alien:
apt-get remove alien
Download alien 8.90 version here.
Install alien:
dpkg -i alien_8.90_all.deb
Now we will locate our zenmap file and run these commands:
sudo alien zenmap-7.91-1.noarch.rpm
sudo dpkg -i **YOUR-ZENMAP-FILE**.deb
If those commands run perfectly you can now run:
sudo zenmap
Et voilĂ ! :)
I had the same issue installing Zenmap in kali linux.
Package build failed. Here's the log:
dh: error: specify a sequence to run make:
*** [debian/rules:7: binary] Error 25
To solve this, I had to downgrade to Alien version 8.90, since I was using 8.95.3
There is some information online, and it's also detailed in the changelogs as well, explaining some changes performed on the latest alien updates and how they read the dh headers. Zenmap.rpm packages seem to be non-compilant with these updates.
I downgraded to a different Alien version to skip these dh verification changes.
To do so, I uninstalled the current alien version with
apt-get remove alien
Then, from https://pkgs.org/download/alien I downloaded Ubuntu Main amd64 Official alien_8.90_all.deb
installed with: dpkg -i alien_8.90_all.deb
Downloaded the latest Zenmap rpm version here
https://nmap.org/dist
and successfully converted rpm to deb running
alien zenmap-X.XX.noarch.rpm
Once the RPM was converted to .deb, you could run
dpkg -i zenmap-X.XX.noarch.deb
App would not open, running from CLI I figured that some python libs failed to load
Could not import the zenmapGUI.App module: 'No module named gtk'. I
checked in these directories:
/usr/bin
/usr/share/offsec-awae-wheels/colorama-0.4.3-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl
...
As suggested in this post I download the packages:
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://azure.archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
Then installed with dpkg
dpkg -i python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
dpkg -i python-gobject-2_2.28.6-14ubuntu1_amd64.deb
dpkg -i python-cairo_1.16.2-2ubuntu2_amd64.deb
Now Zenmap is working beautifully.
You can install the package directly using -i option:
sudo alien -i zenmap-7.91-1.noarch.rpm
Also you can use fpm to convert an rpm to deb, to install it:
sudo apt install ruby ruby-dev rubygems build-essential
sudo gem install --no-document fpm
To convert:
fpm -s rpm -t deb zenmap-7.91-1.noarch.rpm
I encountered the same exact issue, I was using
alien -i package.rpm
I believe this error occurred because of an update to the bullseye version from bullseye/main alien all 8.95+nmu1 to bullseye/main alien all 8.95.3. Updating Debian preferences to install alien from buster with version buster/main alien all 8.95 fixed the issue for me! Hope this helps!
I am using a ubuntu 14.04 and just recently installed the pocketsphinx package. When I try to run the sample robocup.launch file, I get an error saying gconfaudiosrc is no element. Hence when i try sudo apt-get install gstreamer0.10-gconf, I get the following error:
E: Unable to locate package gstreamer0.10-gconf
E: Couldn't find any package by regex 'gstreamer0.10-gconf'
Any sugesstions on what I could do?
For anyone else stuck with the same issue, I solved it by downloading the deb file from here : https://packages.ubuntu.com/trusty-updates/sound/gstreamer0.10-gconf
And then installing it by :
sudo dpkg -i /path/to/deb/file
followed by
sudo apt-get install -f
I use a Linux Fedora 27 machine and I would like to install reaver-1.4. I have the same problem as described here: error pcap library not found but I tried both commands: sudo yum install sqlite-devel and sudo yum install sqlite3 libsqlite3-dev libpcap0.8-dev and nothing works. With the first command nothing seems to change and with second I get the following message:
No match for argument: sqlite3
No match for argument: libsqlite3-dev
No match for argument: libpcap0.8-dev
Error: Unable to find a match
You generally can't expect packages to be named the same thing in Debian and Fedora, so just swapping in yum with the same package names is unlikely to work. Try:
sudo yum install libpcap-devel
I note that Fedora has version 1.8 instead of version 0.8; hopefully that will not be a problem.
Sublime-text is a fast editor for Windows and Linux. I failed to install sublime text 3 on AWS Ubuntu 14.04.1 LTS using the following commands:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Results in following error message:
p: cannot create regular file "/usr/share/icons/hicolor/16x16/apps/":
No such file or directory dpkg: error processing package sublime-text-installer (--configure):
subprocess installed post-installation script returned error exit status 1
I see following directories under /usr/share/icons/hicolor/
32
48
64
So, I created 16x16 subdirectory, but then it gives an error for 32x32 directory doesnot exist. Did anyone experience this problem before? I will appreciate any help.
sublime-text is a GUI application that needs a GTK installation. Your server is missing that dependency. (In a perfect world, it should be a dependency of the package of course.)
Install libgtk2 (as root):
apt-get install libgtk2.0-common
and then reinstall sublime-text, probably using:
apt-get purge sublime-text-installer ; apt-get install sublime-text-installer
I've tried three different ways. The most recent was following instructions here: http://www.pygame.org/wiki/CompileUbuntu
But when I type in the first line
sudo apt-get install mercurial python-dev python-numpy ffmpeg \
I am told that
E: Package 'ffmpeg' has no installation candidate.
I continue on with the instructions and I am later told that some of the dependencies are missing (even though those are the ones I had attempted to install moments ago).
Then when I put in
sudo python3 setup.py install
it tells me
src/_pygame.h:80:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
I recently had this problem. Try:
sudo apt-get install python-pygame
If that doesn't work you could try reinstalling python. The following command line will remove all python modules and reinstall python. After that try the command above again. If you have any other downloaded python modules or idles you will need to reinstall them.
sudo apt-get purge python && sudo apt-get install python2.7