Backtrack 5 r3“apt-get upgrade”错误[需要帮助]

时间:2013-02-05 11:33:40

标签: package apt-get

root@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
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)
root

我已经复制并粘贴了上述更新包装“smartphone-pentest-framework”时出现的错误。

出了什么问题,问题是什么?

1 个答案:

答案 0 :(得分:4)

正如你所看到的那样“/var/lib/dpkg/info/w3af.postinst:line 4:cd:pybloomfiltermmap-0.2.0:没有这样的文件或目录”这么简单的改变下载URL的解决方案就是诀窍当存储库移动到https://svn.code.sf.net/p/w3af/code/trunk时,他们的脚本中有一个错误 所以只需编辑w3af.postinst文件(vi /var/lib/dpkg/info/w3af.postinst) 并用旧的URL替换 https://svn.code.sf.net/p/w3af/code/trunk 保存文件,然后再次运行w3af设置......