2016-12-31 29 views
0

在升級我的Kali2 distrib的過程中,我遇到了雞與雞蛋問題。無法刪除破損的mysql安裝也不修復依賴關係(Kali 2)

當我嘗試安裝的東西(什麼),甚至到的autoremove,我得到這個:

[email protected]:~$ 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. 

當我嘗試修復,我得到一個MySQL服務器-5.6的問題:

[email protected]:~$ sudo apt-get -f install 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Correcting dependencies... Done 
The following packages were automatically installed and are no longer required: 
    gstreamer0.10-gconf gstreamer0.10-nice gstreamer0.10-plugins-bad gstreamer0.10-x libbasicusageenvironment0 libcdaudio1 libchromaprint0 libdirac-encoder0 libdvbpsi9 libexporter-tiny-perl libfreerdp-rail1.1 
    libgroupsock1 libgstreamer-plugins-bad0.10-0 libintl-perl liblircclient0 liblist-moreutils-perl liblivemedia23 libmhash2 libmimic0 libpostproc52 libraptor2-0 librasqal3 librdf0 libslv2-9 libsoundtouch0 
    libtask-weaken-perl libusageenvironment1 libwildmidi1 libxcb-composite0 libyajl2 vlc-nox 
Use 'apt-get autoremove' to remove them. 
The following extra packages will be installed: 
    apt apt-utils glib-networking glib-networking-common glib-networking-services libalgorithm-diff-xs-perl libapt-inst2.0 libapt-pkg-perl libapt-pkg5.0 libbasicusageenvironment1 libcairo-perl 
    libclass-c3-xs-perl libclass-load-xs-perl libcpan-meta-perl libdbd-mysql-perl libdevel-caller-perl libdevel-lexalias-perl libdigest-crc-perl libdouble-conversion1 libdvbpsi10 libebml4v5 
    libexporter-tiny-perl libfile-fcntllock-perl libglib-perl libgroupsock8 liblirc-client0 liblircclient0 liblist-moreutils-perl liblivemedia57 liblocale-gettext-perl liblz4-1 libmariadbclient18 
    libmatroska6v5 libnet-dbus-perl libnet-pcap-perl libnet-rawip-perl libnet-ssleay-perl libpackage-stash-xs-perl libpadwalker-perl libparams-util-perl libpcre16-3 libpcsc-perl libproxy-tools libproxy1v5 
    libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5svg5 libqt5widgets5 libqt5x11extras5 libsocket6-perl libterm-readkey-perl libtext-charwidth-perl libtext-iconv-perl libtext-soundex-perl 
    libusageenvironment3 libvlc-bin libvlccore8 libxcb-xinerama0 libxml-parser-perl mariadb-common mysql-common mysql-server mysql-server-5.6 mysql-server-core-5.6 perl perl-base perl-modules-5.24 
    phonon-backend-vlc qt5-gtk-platformtheme qttranslations5-l10n vlc vlc-bin vlc-data vlc-l10n vlc-nox vlc-plugin-base vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 
    vlc-plugin-video-output vlc-plugin-video-splitter vlc-plugin-visualization 
Suggested packages: 
    apt-doc libfont-freetype-perl lirc qt5-image-formats-plugins qtwayland5 tinyca perl-doc libdvdcss2 
The following packages will be REMOVED: 
    libebml4 libmatroska6 libproxy1 mysql-server-5.5 perl-modules vlc-plugin-pulse 
The following NEW packages will be installed: 
    libapt-inst2.0 libapt-pkg5.0 libbasicusageenvironment1 libdouble-conversion1 libdvbpsi10 libebml4v5 libexporter-tiny-perl libgroupsock8 liblirc-client0 liblivemedia57 liblz4-1 libmariadbclient18 
    libmatroska6v5 libpcre16-3 libproxy1v5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5svg5 libqt5widgets5 libqt5x11extras5 libusageenvironment3 libvlc-bin libxcb-xinerama0 mariadb-common 
    mysql-server-5.6 mysql-server-core-5.6 perl-modules-5.24 qt5-gtk-platformtheme qttranslations5-l10n vlc-bin vlc-l10n vlc-plugin-base vlc-plugin-qt vlc-plugin-skins2 vlc-plugin-video-output 
    vlc-plugin-video-splitter vlc-plugin-visualization 
The following packages will be upgraded: 
    apt apt-utils glib-networking glib-networking-common glib-networking-services libalgorithm-diff-xs-perl libapt-pkg-perl libcairo-perl libclass-c3-xs-perl libclass-load-xs-perl libcpan-meta-perl 
    libdbd-mysql-perl libdevel-caller-perl libdevel-lexalias-perl libdigest-crc-perl libfile-fcntllock-perl libglib-perl liblircclient0 liblist-moreutils-perl liblocale-gettext-perl libnet-dbus-perl 
    libnet-pcap-perl libnet-rawip-perl libnet-ssleay-perl libpackage-stash-xs-perl libpadwalker-perl libparams-util-perl libpcsc-perl libproxy-tools libsocket6-perl libterm-readkey-perl libtext-charwidth-perl 
    libtext-iconv-perl libtext-soundex-perl libvlccore8 libxml-parser-perl mysql-common mysql-server perl perl-base phonon-backend-vlc vlc vlc-data vlc-nox vlc-plugin-notify vlc-plugin-samba 
46 upgraded, 39 newly installed, 6 to remove and 583 not upgraded. 
145 not fully installed or removed. 
Need to get 0 B/46.4 MB of archives. 
After this operation, 99.0 MB of additional disk space will be used. 
Do you want to continue? [Y/n] 
Reading changelogs... Done 
Extracting templates from packages: 100% 
Preconfiguring packages ... 
(Reading database ... 352471 files and directories currently installed.) 
Preparing to unpack .../mysql-server-core-5.6_5.6.30-1_amd64.deb ... 
Unpacking mysql-server-core-5.6 (5.6.30-1) ... 
dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.6_5.6.30-1_amd64.deb (--unpack): 
trying to overwrite '/usr/share/man/man1/innochecksum.1.gz', which is also in package mysql-server-5.5 5.5.50-0+deb8u1 
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) 
Processing triggers for man-db (2.7.6.1-2) ... 
Errors were encountered while processing: 
/var/cache/apt/archives/mysql-server-core-5.6_5.6.30-1_amd64.deb 

E: Sub-process /usr/bin/dpkg returned an error code (1) 

自下而上,誤差是:

試圖覆蓋 '/usr/share/man/man1/innochecksum.1.gz',這也是包的MySQL服務器-5.5 50年5月5日-0 + d eb8u1

我在其他線程上看到過這個mysql 5.5/5.6 dpkg錯誤,但這些沒有被任何人回答。

我試圖刪除mysql-server-5.5(使用--purge),但如前所述,我做的每個apt-get操作都會導致上面提到的依賴關係問題。這是我可以使用dpkg解決的問題嗎?有什麼建議可以嘗試?

謝謝你的燈!

回答

0

好的,釘上它。

我開始清理破碎的更新

apt-get的清潔

然後我評論了 '滾動' 回購和加入回購的遺產之一:

#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的更新

apt-get的安裝-f

然後我重新啓用新的回購協議:

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

sudo apt-get dist-upgrade

就是這樣!