Author Topic: E: Sub-process /usr/bin/dpkg returned an error code (1)  (Read 5360 times)

Ammly

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hey, I keep getting this error when i try to update or install any package on Backbox.;

Processing pybloomfiltermmap-0.3.14.macosx-10.9-intel.tar.gz
error: Couldn't find a setup script in /tmp/easy_install-espht7/pybloomfiltermmap-0.3.14.macosx-10.9-intel.tar.gz
dpkg: error processing w3af (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of backbox-desktop:
 backbox-desktop depends on w3af; however:
  Package w3af is not configured yet.
dpkg: error processing backbox-desktop (--configure):
 dependency problems - leaving unconfigured
Setting up python2.6-minimal (2.6.9-1+precise1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Setting up python2.6 (2.6.9-1+precise1) ...
Setting up libpython2.6 (2.6.9-1+precise1) ...
Setting up python2.6-dev (2.6.9-1+precise1) ...
Processing triggers for menu ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 w3af
 backbox-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried installing python2.6 python2.6-dev, running apt-get -f install as root but i still get the same error.
Here is the log i get by running sudo apt-get -f install:

# sudo apt-get -f install
Reading package lists... Done
Building dependency tree      
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up w3af (1.1svn5547-1backbox2) ...
Searching for pybloomfiltermmap
Reading http://pypi.python.org/simple/pybloomfiltermmap/
Best match: pybloomfiltermmap 0.3.14.macosx-10.9-intel
Downloading https://pypi.python.org/packages/2.7/p/pybloomfiltermmap/pybloomfiltermmap-0.3.14.macosx-10.9-intel.tar.gz#md5=bd4bc20376cfceb9e0bb66b49e211f0d
Processing pybloomfiltermmap-0.3.14.macosx-10.9-intel.tar.gz
error: Couldn't find a setup script in /tmp/easy_install-tRY0TI/pybloomfiltermmap-0.3.14.macosx-10.9-intel.tar.gz
dpkg: error processing w3af (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of backbox-desktop:
 backbox-desktop depends on w3af; however:
  Package w3af is not configured yet.
dpkg: error processing backbox-desktop (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 w3af
 backbox-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)


Any help will be appreciated.
« Last Edit: March 25, 2014, 10:02:06 AM by Ammly »



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #1 on: March 25, 2014, 04:50:09 PM
Hi,
Are you sure about that??
Code: [Select]
pybloomfiltermmap 0.3.14.macosx-10.9-intelmacosx??

una voce libera รจ sempre liberatrice
under_r00t


ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #2 on: March 25, 2014, 05:44:39 PM
From what i can see you did try to install some python package that missed up your config. Can you remember what you have done? I posted before one solution and it could work but i removed my post after weVeg pointed to this unknown package on your system. Save thing to do is to run upgrade script from BackBox menu and see if that can fix your issue. You need to provide log as well (use pastebin) like that other developers can see mess you made and try to understand and help you to fix it.

This command can help you to see last installed packages:

cat /var/log/dpkg.log | grep "\ install\ "

And this show last apt-get command you used:

cat /var/log/apt/history.log | grep "\ install\ "

Share outputs.
« Last Edit: March 25, 2014, 05:50:39 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


Ammly

  • Newbie
  • *
  • Posts: 7
    • View Profile
Reply #3 on: March 26, 2014, 08:51:54 AM
weVeg, Am also not sure how i got this  
Code: [Select]
pybloomfiltermmap 0.3.14.macosx-10.9-intel package, Thanks for your reply though.







Ammly

  • Newbie
  • *
  • Posts: 7
    • View Profile
Reply #4 on: March 26, 2014, 09:02:58 AM
ZEROF,The last thing i remember doing is i was trying to upgrade to Backbox 3.13 with steps given here http://forum.backbox.org/announcements/backbox-linux-3-13-released!/.

This is the output for:
Code: [Select]
cat /var/log/dpkg.log | grep "\ install\ "http://pastebin.com/Ubh6uEAg

and here is for:
Code: [Select]
cat /var/log/apt/history.log | grep "\ install\ "http://pastebin.com/JjqQ5MhF

Sorry i had to use external links, the codes exceeded the limit on this forum.



Ammly

  • Newbie
  • *
  • Posts: 7
    • View Profile
Reply #5 on: March 26, 2014, 10:43:27 AM
Hey guys,
I just solved the above problem. The problem was being caused by Backbox trying to install this pybloomfiltermmap-0.3.14.macosx-10.9-intel.tar.gz package instead of this one pybloomfiltermmap-0.3.14.linux-x86_64.tar.gz from this site https://pypi.python.org/packages/2.7/p/pybloomfiltermmap/ . So i just downloaded the right package https://pypi.python.org/packages/2.7/p/pybloomfiltermmap/ and copied the contents in usr/local/lib/python2.7/dist-packages to my /usr/local/lib/python2.7/dist-packages location which was empty at the time and now my problem is gone.

Thanks weVeg for pointing that out.



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #6 on: March 26, 2014, 05:20:21 PM
I'm sorry to say but you tested so many things here. Install that, then that ....so many commands. And that made some files corrupted i guess. Linux don't like that. You have some packages in your system that i don't know from where they are. Real mess. I can propose you to go to BackBox menu i run Update from menu with option 0 or reinstall your system.

« Last Edit: March 31, 2014, 11:46:03 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*