Mysql reinstalar problemas

0

Usando o ubuntu 14.04

 mysql --version
mysql  Ver 14.14 Distrib 5.6.33, for debian-linux-gnu (x86_64) using  EditLine wrapper

Eu quero reinstalar o mysql.

dpkg -l | grep mysql
ii  libdbd-mysql-perl                   4.025-1ubuntu0.1                        amd64        Perl5 database interface to the MySQL database
ii  libmysqlclient18:amd64              5.5.53-0ubuntu0.14.04.1                 amd64        MySQL database client library
ii  mysql-apt-config                    0.3.5-1ubuntu14.04                      all          Auto configuration for MySQL APT Repo.
ii  mysql-client-5.6                    5.6.33-0ubuntu0.14.04.1                 amd64        MySQL database client binaries
ii  mysql-client-core-5.6               5.6.33-0ubuntu0.14.04.1                 amd64        MySQL database core client binaries
ii  mysql-common                        5.5.53-0ubuntu0.14.04.1                 all          MySQL database common files, e.g. /etc/mysql/my.cnf
ii  mysql-common-5.6                    5.6.33-0ubuntu0.14.04.1                 all          MySQL 5.6 specific common files, e.g. /etc/mysql/conf.d/my-5.6.cnf
rc  mysql-server-5.5                    5.5.50-0ubuntu0.14.04.1                 amd64        MySQL database server binaries and system database setup
ii  mysql-server-5.6                    5.6.33-0ubuntu0.14.04.1                 amd64        MySQL database server binaries and system database setup
ii  mysql-server-core-5.6               5.6.33-0ubuntu0.14.04.1                 amd64        MySQL database server binaries
ii  php5-mysql                          5.5.9+dfsg-1ubuntu4.20                  amd64        MySQL module for php5

Estes são os pacotes que eu acho que devo remover.

Depois de usar o comando purge para excluir os arquivos mysql. Eu recebo um erro

apt-get --yes purge mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-client' is not installed, so not removed
Package 'mysql-server' is not installed, so not removed
The following extra packages will be installed:
  cloud-init lsb-release
Suggested packages:
  lsb
The following packages will be upgraded:
  cloud-init lsb-release
2 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
110 not fully installed or removed.
Need to get 0 B/210 kB of archives.
After this operation, 14.3 kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 74811 files and directories currently installed.)
Preparing to unpack .../lsb-release_4.1+Debian11ubuntu6.2_all.deb ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/lsb-release_4.1+Debian11ubuntu6.2_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../cloud-init_0.7.5-0ubuntu1.21_all.deb ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/cloud-init_0.7.5-0ubuntu1.21_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/lsb-release_4.1+Debian11ubuntu6.2_all.deb
 /var/cache/apt/archives/cloud-init_0.7.5-0ubuntu1.21_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Após verificar os arquivos instalados relacionados ao mysql.

dpkg --get-selections | grep mysql
libdbd-mysql-perl                               install
libmysqlclient18:amd64                          install
mysql-apt-config                                install
mysql-client-5.6                                install
mysql-client-core-5.6                           install
mysql-common                                    install
mysql-common-5.6                                install
mysql-server-5.5                                deinstall
mysql-server-5.6                                install
mysql-server-core-5.6                           install
php5-mysql                                      install

Preciso de ajuda para desinstalar o mysql completamente e depois reinstalá-lo.

    
por user4599 14.12.2016 / 07:55

0 respostas