在升级我的Kali2发行版的过程中,我遇到了鸡与蛋的问题。
当我尝试安装某些东西(甚至是自动移动)时,我得到了这个:
class SuperUnderperformingAccordingToManyYetReadable(object):
def __init__(self, switch):
if self.switch:
self.f = self._first_loop
else:
self.f = self._second_loop
def _first(self):
pass
def _second(self):
pass
def _third(self):
pass
def _first_loop(self):
while ...:
self.first()
self.third()
def _second_loop(self):
while ...:
self.first()
self.second()
self.third()
当我尝试修复时,我遇到了mysql-server-5.6问题:
vlt@kali2:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libcrypt-ssleay-perl : Depends: perl (>= 5.24.1~rc4-1) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libcurses-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libdbd-sqlite3-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libdbi-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libdigest-md4-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libfcgi-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libgtk2-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libhtml-parser-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libmoose-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libnet-ssh2-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libpango-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libparams-classify-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libperl5.24 : Depends: perl-modules-5.24 (>= 5.24.1~rc4-1) but it is not installed
libpurple0 : Depends: perl-base (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libscalar-list-utils-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libsnmp-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libsub-identify-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libsub-name-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libterm-readline-gnu-perl : Depends: perl (>= 5.24.1~rc3-3) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libvariable-magic-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
libxml-libxml-perl : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
mysql-server-5.5 : Depends: mysql-client-5.5 (>= 5.5.50-0+deb8u1) but it is not installable
Depends: mysql-server-core-5.5 (>= 5.5.50-0+deb8u1) but it is not installable
perl-tk : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
texinfo : Depends: perl (>= 5.24.1~rc3-2) but 5.20.2-3+deb8u6 is installed
Depends: perlapi-5.24.1
vlc-nox : Depends: libtag1c2a (>= 1.9.1) but it is not installable
E: Unmet dependencies. Try using -f.
自下而上,错误是:
试图覆盖'/usr/share/man/man1/innochecksum.1.gz',这也是包mysql-server-5.5 5.5.50-0 + deb8u1
我在其他线程上看到过这个mysql 5.5 / 5.6 dpkg错误,但是没有人回答这些错误。
我尝试删除mysql-server-5.5(使用--purge),但如前所述,每次apt-get操作都会导致上面提到的依赖项问题。这是我可以使用dpkg解决的问题吗?关于尝试什么的任何建议?
谢谢你的灯!
答案 0 :(得分:0)
好的,钉了它。
我开始清理破损的更新
apt-get clean
然后我评论了滚动' repo并作为repo添加了遗产:
#deb http://http.kali.org/kali kali-rolling main non-free contrib
deb http://old.kali.org/kali moto main non-free contrib
然后我可以通过这样做来修复这个烂摊子:
apt-get update
apt-get -f install
然后我重新启用了新的回购:
deb http://http.kali.org/kali kali-rolling main non-free contrib
#deb http://old.kali.org/kali moto main non-free contrib
最后......
sudo apt-get update
sudo apt-get dist-upgrade
那就是它!