Experimente os comandos abaixo,
sudo dpkg -P mysql-client-5.1
sudo apt-get install -f
Estou usando o Ubuntu 12.04. Estou encontrando erro ao instalar qualquer pacote usando o apt-get. Eu tentei as etapas dadas em vários fóruns, mas não consegui resolver o erro. Por exemplo, se eu instalar o kcachegrind, o código de erro é:
[Eu substituí http: // com http // apenas para evitar links ao postar a pergunta. Então, por favor, leia http // como http: // nos segmentos de código.]
%pr_e%
Se eu tentar o sudo apt-get -f install
, ainda haverá um erro:
%pr_e%
O arquivo sources.list é:
lap471@admin:~/bin$ sudo apt-get install kcachegrind 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: kcachegrind : Depends: kde-runtime but it is not going to be installed Depends: libkdecore5 (>= 4:4.4.0) but it is not going to be installed Depends: libkdeui5 (>= 4:4.3.4) but it is not going to be installed Depends: libkio5 (>= 4:4.3.4) but it is not going to be installed Recommends: valgrind but it is not going to be installed Recommends: graphviz but it is not going to be installed libcairo-perl : Depends: perlapi-5.14.2 libdbi-perl : Depends: perlapi-5.14.2 libglib-perl : Depends: perlapi-5.14.2 libgtk2-perl : Depends: perlapi-5.14.2 libpango-perl : Depends: perlapi-5.14.2 libperl5.14 : Depends: perl-base (= 5.14.2-6ubuntu2.4) but 5.10.0-24ubuntu4 is to be installed libterm-readkey-perl : Depends: perlapi-5.14.2 libtext-charwidth-perl : Depends: perl-base (>= 5.14.2-3) but 5.10.0-24ubuntu4 is to be installed Depends: perlapi-5.14.2 libtext-iconv-perl : Depends: perl-base (>= 5.14.2-6) but 5.10.0-24ubuntu4 is to be installed Depends: perlapi-5.14.2 libuuid-perl : Depends: perl-base (>= 5.14.2-6ubuntu1) but 5.10.0-24ubuntu4 is to be installed Depends: perlapi-5.14.2 perl : Depends: perl-base (= 5.14.2-6ubuntu2.4) but 5.10.0-24ubuntu4 is to be installed E: Unmet dependencies.enter code here Try 'apt-get -f install' with no packages (or specify a solution).
E o sources.list.d / * contém:
lap471@admin:~/bin$ sudo apt-get -f install Reading package lists... Done Building dependency tree
Reading state information... Done Correcting dependencies... Done The following package was automatically installed and is no longer required: libsensors3 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libdbd-mysql-perl liblocale-gettext-perl libmysqlclient18 mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 perl-base Suggested packages: tinyca mailx The following packages will be REMOVED: mysql-client-5.1 mysql-server-5.1 mysql-server-core-5.1 The following NEW packages will be installed: libmysqlclient18 mysql-client-5.5 mysql-client-core-5.5 mysql-server-5.5 mysql-server-core-5.5 The following packages will be upgraded: libdbd-mysql-perl liblocale-gettext-perl mysql-common mysql-server perl-base 5 upgraded, 5 newly installed, 3 to remove and 553 not upgraded. 13 not fully installed or removed. Need to get 0 B/27.1 MB of archives. After this operation, 43.4 MB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! mysql-client-core-5.5 mysql-client-5.5 mysql-server-core-5.5 mysql-common mysql-server mysql-server-5.5 libmysqlclient18 libdbd-mysql-perl perl-base liblocale-gettext-perl Install these packages without verification [y/N]? y /usr/bin/perl: symbol lookup error: /usr/lib/perl5/auto/Text/Iconv/Iconv.so: undefined symbol: Perl_xs_apiversion_bootcheck (Reading database ... 147200 files and directories currently installed.) Unpacking mysql-client-core-5.5 (from .../mysql-client-core-5.5_5.5.35-0ubuntu0.12.04.2_i386.deb) ... dpkg: error processing /var/cache/apt/archives/mysql-client-core-5.5_5.5.35-0ubuntu0.12.04.2_i386.deb (--unpack): trying to overwrite '/usr/share/man/man1/mysqlcheck.1.gz', which is also in package mysql-client-5.1 5.1.37-1ubuntu5.5 No apport report written because MaxReports is reached already dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/mysql-client-core-5.5_5.5.35-0ubuntu0.12.04.2_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Qualquer ajuda seria muito apreciada .. Obrigado.
Experimente os comandos abaixo,
sudo dpkg -P mysql-client-5.1
sudo apt-get install -f