bt5升级时Setting up w3af (1.2-bt1) ...出现问题的解决方法

本文指导如何解决使用APT升级软件包时遇到的文件不存在错误,通过删除配置文件、清理工作目录、重新安装软件包等步骤成功完成升级。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

执行apt-get dist-upgrade之后


root@bt:~# apt-get dist-upgrade

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Calculating upgrade... Done

0 upgraded, 0 newly installed, 0 to remove and 0 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-bt1) ...

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: Working copy 'w3af' locked

svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

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)


导致无法升级

执行

rm /var/lib/dpkg/info/w3af.postinst

rm -rf /pentest/web/w3af


然后

apt-get dist-upgrade

接着

update-grub


最后

cd /pentest/web

svn co https://w3af.svn.sourceforge.net/svnroot/w3af/trunk w3af

这样就可以完成升级。


转载地址:http://hi.baidu.com/sharpplus/item/3387181548044545f1090e86

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值