Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install any packages but when I use apt-get install I have the following error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
htop is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
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
svn: Repository moved permanently to 'https://svn.code.sf.net/p/w3af/code/trunk'; please relocate
dpkg: error processing w3af (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 w3af
E: Sub-process /usr/bin/dpkg returned an error code (1)

When I want to update it I also have problems on connecting to repositories.

How can I fix it?

share|improve this question

1 Answer 1

try

sudo apt-get remove w3af

it should remove that package and then everything would be normal.

`

share|improve this answer
    
Thank you. After doing that when I enter apt-get install w3af --fix-missing There is error for installing that. Or when I am going to update system –  MortezaLSC Jul 9 at 8:35
    
try sudo apt-get -f install to correct that. else it is a broken package. BTW, you can delete that package from /var/cache/apt and do installation once again so that it is freshly downloaded. –  aveemashfaq Jul 9 at 9:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.