Error uninstalling mysql-server-5.5

0

I'm having problems when using workbench, and I'm trying to uninstall and reinstall mysql-server-5.5, but it will not let me. This is the error message, could someone help me?

  

debconf: DbDriver "passwords"   warning: /var/cache/debconf/passwords.dat is locked by another process: Resource temporarily unavailable

     

debconf: DbDriver "templatedb":   /var/cache/debconf/templates.dat is locked by another process: Resource   temporarily unavailable

     

(Reading the database ... 191372   files or directories currently installed.) Uninstalling   mysql-server-5.5 (5.5.58-0ubuntu0.14.04.1) ...

     

debconf: DbDriver   "passwords" warning: /var/cache/debconf/passwords.dat is locked by   another process: Resource temporarily unavailable

     

debconf: DbDriver   "templatedb": /var/cache/debconf/templates.dat is locked by another   process: Resource temporarily unavailable

     

dpkg: processing error   the package mysql-server-5.5 (--remove): the thread installed on the   pre-removal script returned the error exit code 1

     

debconf:   DbDriver "passwords" warning: /var/cache/debconf/passwords.dat is   locked by another process: Resource temporarily unavailable

     

debconf: DbDriver "templatedb": /var/cache/debconf/templates.dat is   locked by another process: Resource temporarily unavailable

     

dpkg:   error when rearranging: the thread installed the script   post-installation returned the error exit code 1 Se   encountered errors when processing: mysql-server-5.5

    
asked by xeanort99 15.11.2017 в 09:40
source

2 answers

0

Check if you have not opened another package manager (synaptic, aptitude).

Verify which process is using those files in use:

sudo lsof | grep /var/cache/debconf

And if you do not find that process, or you can not stop it, or you can not find those files, or you just can not get the respective process to release them, apply

sudo rm -rf /var/cache/debconf/*.dat

When reinstalling mysql-server eventually those cache files will be recreated when needed. That's the idea of the caches.

    
answered by 15.11.2017 в 12:03
0

We need more information ... * You're supposed to be using it on a Linux server. What distribution? * What command did you use to uninstall it? * If the error is from the "workbench" program Why uninstall the server? Is it not better to correct the Wokbench failure, is it sometimes just a failure of the initialization of the "keyring" when the Workbench is started?

Anyway:

1) Uninstalling mysql-server

  • You're uninstalling it as root (I guess)
  • If you give errors as root simply for the mysql service and perform the uninstall again ...

2) Why uninstall and reinstall?  - A "reinstall" is not better, for example if you use Debian or Ubuntu (apt-get install --reinstall mysql-server-5.5)

3) What error WorkBench gave you ... maybe it was easier to solve this than to uninstall and reinstall ...

    
answered by 15.11.2017 в 12:35