gpt4 book ai didi

ubuntu - 回溯 Linux apt-get 升级错误

转载 作者:行者123 更新时间:2023-12-04 18:52:37 26 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


8年前关闭。







Improve this question




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

在我已经运行 dpkg --configure -a 之后进行 apt-get 升级:

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

我想修复这些。
我确实尝试阅读了这个问题,但他们都要求使用这些命令,但没有帮助。

最佳答案

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

第一的:

sudo apt-get clean
sudo apt-get autoclean
apt-get autoremove

ETC ...

然后,如果它仍然无法正常工作,也许是这样的:
sudo dpkg-reconfigure -phigh -a

或者
sudo dpkg --force-all --configure -a

或者可能:
sudo dpkg -P --force-all 'package with a problem'

(对应于:

se-toolkit
w3af
subterfuge



)

dist 升级呢?
sudo apt-get dist-upgrade

我曾经遇到过一个非常相似的问题(升级中断,因为电池没电了),当我升级我的版本(从 13.10 到 14.04)时,这个问题得到了解决……但它在 ubuntu 上而不是回溯。

关于ubuntu - 回溯 Linux apt-get 升级错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23429394/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com