Backtrack Linux apt-get upgrade错误

时间:2014-05-02 13:30:24

标签: ubuntu backtrack-linux

当我的笔记本电脑电池耗尽时,我正在使用apt-get upgrade命令。 它告诉我使用dpkg --configure -a然后我做了。 我还运行了命令apt-get install -f,apt-get autoremove并再次使用apt-get upgrade 但这些是我得到的错误:

在我运行dpkg后,

进行apt-get升级--configure -a:

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.6
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
Processing triggers for python-support ...
Errors were encountered while processing:
 se-toolkit
 subterfuge
 w3af
E: Sub-process /usr/bin/dpkg returned an error code (1)

这是最终部分,因为整个输出很大。

这是apt-get autoremove的输出:

apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up se-toolkit (4.2.1-bt0) ...
svn: 'http://svn.trustedsec.com/social_engineering_toolkit' path not found
dpkg: error processing se-toolkit (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up subterfuge (4.3-bt0) ...
tar: SubterfugePublicBeta4.3.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/subterfuge.postinst: line 6: cd: subterfuge/: No such file or directory
python: can't open file 'installer_old.py': [Errno 2] No such file or directory
rm: cannot remove `SubterfugePublicBeta4.3.tar.gz': No such file or directory
dpkg: error processing subterfuge (--configure):
 subprocess installed post-installation script returned error exit status 1
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:
 se-toolkit
 subterfuge
 w3af
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我再次运行它时,这是dpkg --configure -a的输出:

root@bt:~# dpkg --configure -a
Setting up se-toolkit (4.2.1-bt0) ...
svn: 'http://svn.trustedsec.com/social_engineering_toolkit' path not found
dpkg: error processing se-toolkit (--configure):
 subprocess installed post-installation script returned error exit status 1
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
Setting up subterfuge (4.3-bt0) ...
tar: SubterfugePublicBeta4.3.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/subterfuge.postinst: line 6: cd: subterfuge/: No such file or directory
python: can't open file 'installer_old.py': [Errno 2] No such file or directory
rm: cannot remove `SubterfugePublicBeta4.3.tar.gz': No such file or directory
dpkg: error processing subterfuge (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 se-toolkit
 w3af
 subterfuge

apt-get install -f的输出:

root@bt:~# dpkg --configure -a
Setting up se-toolkit (4.2.1-bt0) ...
svn: 'http://svn.trustedsec.com/social_engineering_toolkit' path not found
dpkg: error processing se-toolkit (--configure):
 subprocess installed post-installation script returned error exit status 1
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
Setting up subterfuge (4.3-bt0) ...
tar: SubterfugePublicBeta4.3.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/subterfuge.postinst: line 6: cd: subterfuge/: No such file or directory
python: can't open file 'installer_old.py': [Errno 2] No such file or directory
rm: cannot remove `SubterfugePublicBeta4.3.tar.gz': No such file or directory
dpkg: error processing subterfuge (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 se-toolkit
 w3af
 subterfuge

我想解决这些问题。 我确实尝试过阅读这个问题,但是他们都要求使用这些命令并且它没有帮助。

1 个答案:

答案 0 :(得分:0)

嗯......也许试试这个:

首先:

sudo apt-get clean
sudo apt-get autoclean
apt-get autoremove
等等......

然后,如果它仍然不起作用,也许这个:

sudo dpkg-reconfigure -phigh -a

sudo dpkg --force-all --configure -a

或者也许:

sudo dpkg -P --force-all 'package with a problem'

(对应于:

  

SE-工具箱
  w3af
  诡计

dist-upgrades怎么样?

sudo apt-get dist-upgrade

我曾经遇到过一个非常类似的问题(upgarde被打断,因为电池耗尽),当我升级我的版本(从13.10升级到14.04)时解决了......但是它在ubuntu上没有回溯。