Thursday 7 March 2013

Solution : Backtrack 5 apt-get upgrade error var/lib/dpkg/info/w3af.postins

If you ger below error ,simply download missing file to /tmp folder


system@bt:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  smartphone-pentest-framework
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up w3af (1.2-bt2) ...
tar: pybloomfiltermmap-0.2.0.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
/var/lib/dpkg/info/w3af.postinst: line 4: cd: pybloomfiltermmap-0.2.0: No such file or directory
python: can't open file 'setup.py': [Errno 2] No such file or directory

system@bt:~# cd /tmp
system@bt:/tmp# 
wget http://pypi.python.org/packages/source/p/pybloomfiltermmap/pybloomfiltermmap-0.2.0.tar.gz

Now run upgrade
system@bt:~# apt-get upgrade

Share This!



5 comments:

  1. if problem stays still copy pybloomfiltermmap-0.2.0.tar.gz in /tmp coz it is removed by w3af.postinst..... and here is the trick they have a bug in their script as the repository moved to https://svn.code.sf.net/p/w3af/code/trunk
    so simply edit w3af.postinst file (/var/lib/dpkg/info/w3af.postinst)
    and replace old url with
    https://svn.code.sf.net/p/w3af/code/trunk
    save file and then run w3af setup again...

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. If above is not working:

      vi /var/lib/dpkg/info/w3af.postinst
      #!/bin/bash
      cd /tmp/
      wget http://pypi.python.org/packages/source/p/pybloomfiltermmap/pybloomfiltermmap-0.2.0.tar.gz --no-check-certificate
      tar zxpf pybloomfiltermmap-0.2.0.tar.gz
      cd pybloomfiltermmap-0.2.0
      python setup.py install
      cd ..
      rm -rf pybloomfiltermmap-0.2.0*
      cd /pentest/web/
      #svn co https://w3af.svn.sourceforge.net/svnroot/w3af/trunk w3af
      git clone https://github.com/andresriancho/w3af w3af/


      Delete
  2. Hey


    11/10!! Your blog is such a complete read. I like your approach with. Clearly, you wrote it to make learning a cake walk for me.

    I am a beginner in linux. I was trying $PS1 command and got stuck at the output. I used, $PS1=Power and stuck at Power now. How can i get back to default bash.
    I read multiple articles and watched many videos about how to use this tool - and was still confused ! Your instructions were easy to understand and made the process simple.

    Thanks and Regards
    Ganesh

    ReplyDelete

Here We Write The Problems we face at different situations and Solutions to those problems.