nothing can install se-toolkit can't upgrade

Bug #1180415 reported by Riaan

This bug report was converted into a question: question #229047: nothing can install se-toolkit can't upgrade.

34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Doesn't matter what I try and install, if se-toolkit is related to the new installation, that installation fails, with:

...

Setting up se-toolkit (4.2.1-bt0) ...
svn: OPTIONS of 'http://svn.trustedsec.com/social_engineering_toolkit': could not connect to server (http://svn.trustedsec.com)
dpkg: error processing se-toolkit (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libcurl4-gnutls-dev (7.19.7-1ubuntu1.1) ...
Errors were encountered while processing:
 se-toolkit
E: Sub-process /usr/bin/dpkg returned an error code (1)

Description: Ubuntu 10.04.3 LTS
Release: 10.04

W: Unable to locate package pkgname

I was expecting to install tools

Instead installation failed

Tags: dist-upgrade
Riaan (king-riaan)
tags: added: dist-upgrade
Revision history for this message
Riaan (king-riaan) wrote :
Download full text (59.4 KiB)

__________________

root@bt:~# sudo grep -R proxy /etc/apt/*
root@bt:~# grep proxy /etc/environment
root@bt:~# echo $http_proxy

root@bt:~# echo $ftp_proxy

root@bt:~# grep proxy /etc/bash.bashrc
root@bt:~# grep proxy ~/.bashrc
root@bt:~# cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
root@bt:~# sudo fuser -vvv /var/lib/dpkg/lock
root@bt:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"
root@bt:~# uname -a
Linux bt 3.2.6 #1 SMP Fri Feb 17 10:34:20 EST 2012 x86_64 GNU/Linux
root@bt:~# sudo rm /var/lib/apt/lists/lock
root@bt:~# sudo rm /var/lib/dpkg/lock
root@bt:~# sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
root@bt:~# sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
root@bt:~# sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
root@bt:~# sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
root@bt:~# sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
root@bt:~# sudo rm -rf /var/lib/dpkg/updates/*
root@bt:~# sudo rm -rf /var/lib/apt/lists
root@bt:~# sudo rm /var/cache/apt/*.bin
root@bt:~# sudo mkdir /var/lib/apt/lists
root@bt:~# sudo mkdir /var/lib/apt/lists/partial
root@bt:~# LANG=C;sudo apt-get clean
root@bt:~# LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@bt:~# LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  bogl-bterm* cryptsetup* dmraid* ecryptfs-utils* libdebconfclient0* libdebian-installer4* libdmraid1.0.0.rc16*
  libecryptfs0* python-pyicu* rdate* reiserfsprogs*
0 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 3994kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 268481 files and directories currently installed.)
Removing bogl-bterm ...
Removing cryptsetup ...
update-initramfs: deferring update (trigger activated)
Purging configuration files for cryptsetup ...
Removing dmraid ...
update-initramfs: deferring update (trigger activated)
Purging configuration files for dmraid ...
update-initramfs: deferring update (trigger activated)
Removing ecryptfs-utils ...
Purging configuration files for ecryptfs-utils ...
Removing libdebconfclient0 ...
Purging configuration files for libdebconfclient0 ...
Removing libdebian-installer4 ...
Purging configuration files for libdebian-installer4 ...
Removing libdmraid1.0.0.rc16 ...
Purging configuration files for libdmraid1.0.0.rc16 ...
Removing libecryptfs0 ...
Purgi...

description: updated
Revision history for this message
Riaan (king-riaan) wrote :

How can I solve this problem?!

Changed in update-manager (Ubuntu):
status: New → Invalid
Riaan (king-riaan)
Changed in update-manager (Ubuntu):
status: Invalid → New
Revision history for this message
Riaan (king-riaan) wrote :

Day 2... No help...

Revision history for this message
aviran (avirandahari17) wrote :

need help too...

Revision history for this message
sisufus (theultralisk) wrote :

Okay.. I think I got why this happens..

https://www.trustedsec.com/january-2013/set-artillery-moving-github/

for some reason which is not yet clear to me, updating or removing & re-installing se-toolkit via the package manager doesn't fix the problem caused by trustedsec migration from svn to git. aptitude keeps trying to configure se-toolkit by accessing the old repository on svn, can't find it and prints the error.

neither the first part mentioned in the link including the svn update works.

the git part, though, works fine.

the only catch is that you first have to completely remove all of the previous se-toolkit files and configuration.
which is done by:

1) #aptitude remove se-toolkit
2) #aptitude purge se-toolkit
3) #aptitude clean
4) #aptitude autoclean

verify that it was removed correctly:

5) #aptitude search se-toolkit

now, navigate to the directory you want to place your git clone

and enter this in your bash:

6) #git clone https://github.com/trustedsec/social-engineer-toolkit/ set/

it has a installer script written in python, run it and you will have a working se-toolkit in your system.

I think you have to update manually since the installation is not done via the package manager.

Please tell us if this worked for you.

Sorry for the length, wasn't really sure which parts were obvious.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Jared Davis (dav05016) wrote :

Same problem here, I am not new to the tech world, but new to linux in general, but will nonetheless try to follow sisufus' methodology. Thanks for your time sisufus!

no longer affects: update-manager (nUbuntu)
Revision history for this message
Francesco (francesco-anonymous) wrote :

Hi all,
Do you have any news about this issue?

Thank you.

Revision history for this message
orbiter28 (yoann-lemaire) wrote :

I have the same problem.

Thx sisufus, it your solution work well for me. ;)

Revision history for this message
faz (djfaz) wrote :

Many thanks sisufus, this option that you have provided us works fine, Many thanks again.

Regards,

Faz

Revision history for this message
John (g929211) wrote :

This bug affects me too. I tried the work around sisufs provided and I think it works. Will update later with a different profile if it doesn't work...

Also see my notes here:

http://cis.gvsu.edu/~coddairj/backtrack/

Currently it is the last section with "UPdate Problems"

Revision history for this message
uhilian (uhilian-finger) wrote :

Hey.
se-toolik was move to git

Alter your vi /var/lib/dpkg/info/se-toolkit.postinst
comment svn line and add:
git clone https://github.com/trustedsec/social-engineer-toolkit/ set/

Then, can you update

Revision history for this message
uhilian (uhilian-finger) wrote :

Or run dpkg --configure -a

mahdi (jamshidian-mahdi)
Changed in update-manager (Ubuntu):
status: Confirmed → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.