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:
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 '': [Errno 2] No such file or directory

system@bt:~# cd /tmp

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

Share This!


  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
    so simply edit w3af.postinst file (/var/lib/dpkg/info/w3af.postinst)
    and replace old url with
    save file and then run w3af setup again...

    1. This comment has been removed by the author.

    2. If above is not working:

      vi /var/lib/dpkg/info/w3af.postinst
      cd /tmp/
      wget --no-check-certificate
      tar zxpf pybloomfiltermmap-0.2.0.tar.gz
      cd pybloomfiltermmap-0.2.0
      python install
      cd ..
      rm -rf pybloomfiltermmap-0.2.0*
      cd /pentest/web/
      #svn co w3af
      git clone w3af/

  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


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