[gelöst] Problem mit mariadb-server

Started by cas, 2017/05/03, 19:48:34

Previous topic - Next topic

cas

Hallo,
schon seit einiger Zeit gibt es ein Problem mit mariadb-server auf cinamon bei jedem DU, jedoch nicht bei KDE.
Auch apt install -f hilft nicht.


# apt install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 87 nicht aktualisiert.
2 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
mariadb-server-10.1 (10.1.22-4) wird eingerichtet ...
dpkg: Fehler beim Bearbeiten des Paketes mariadb-server-10.1 (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von mariadb-server:
mariadb-server hängt ab von mariadb-server-10.1 (>= 10.1.22-4); aber:.........]
  Paket mariadb-server-10.1 ist noch nicht konfiguriert.............................]
Fortschritt: [  0%] [...................................................................]
dpkg: Fehler beim Bearbeiten des Paketes mariadb-server (--configure):.......................]
Abhängigkeitsprobleme - verbleibt unkonfiguriert..................................................]
Fehler traten auf beim Bearbeiten von:..................................................................]
mariadb-server-10.1[.........................................................................................]
mariadb-server 0%] [.............................................................................................]
E: Sub-process /usr/bin/dpkg returned an error code (1)


Auch
apt purge mariadb-server
apt install mariadb-server
hat nichts geholfen.

Bin jetzt etwas ratlos.

C

bluelupo

Hi cas,

evtl. irgendwelche mariadb* Reste installiert die die Installation von mariadb-server verhindern?

devil


piper

Try this first


apt purge mysql* mariadb*

Remove what is found here

find / -name mysql*

apt clean


rm /var/cache/apt/archives/mariadb*

rm /var/cache/apt/archives/mysql*

Possibly these symbolic links are pointing to missing files

rm /etc/systemd/system/mysqld.service
rm /etc/systemd/system/mysql.service


This won't hurt either

rm -R /etc/mysql
rm -R /varl/lib/mysql


** IMPORTANT **    REBOOT  then

apt install mariadb-server


Let us know any other errors, you might have to run 

dpkg-reconfigure mariadb-server-10.1
I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

cas

danke devil.
Quote from: devil on 2017/05/03, 20:36:29
Hier gibts nen Workaround: https://lists.debian.org/debian-kde/2017/05/msg00000.html

die wichtige Zeile daraus  ist
Then I do, as plain user,

$ akonadictl stop

cas

#5
wow, an incredibly detailed deinstallation guide. This bug seems to be nasty.  ;)

Quote from: piper on 2017/05/03, 20:36:45
Try this first


apt purge mysql* mariadb*
devil's workaraound is necessary to do this




Quote

Remove what is found here

find / -name mysql*

I didn't do this. I have several TB under /disks , which took too long and I was too lazy to do it otherwise.




Quote
apt clean
I noticed that "clean" is not part of the man page of apt




Quote
rm /var/cache/apt/archives/mariadb*

rm /var/cache/apt/archives/mysql*

Possibly these symbolic links are pointing to missing files

rm /etc/systemd/system/mysqld.service
rm /etc/systemd/system/mysql.service


This won't hurt either

rm -R /etc/mysql
rm -R /varl/lib/mysql

very thorough instructions, but the mentioned stuff wasn't there anymore. apt purge/clean did its job.





Quote
** IMPORTANT **    REBOOT  then

apt install mariadb-server


from my KDE machine (after reboot and install), which also had problems, as I just noticed:

root@kde:~# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.1.22-MariaDB- Debian 9.0

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> Bye






Quote
Let us know any other errors, you might have to run 

dpkg-reconfigure mariadb-server-10.1

This command didn't ask or show anything, which I assume is a good sign.

root@kde:~# dpkg-reconfigure mariadb-server-10.1
root@kde:~#



Thanks piper!

devil

Actualy, all you have to do is akonadictl stop as in the mail I referred to. The problem is that mariadb sees akonadi as a running instance of itself and can't update while it's running, but can't stop it either.


piper

#8
devil : danke :P

also besides

akonadictl stop

this works also

/etc/init.d/mysql stop

and then check with

systemctl status mysql

I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

cas

Warum einfach, wenn es auch kompliziert geht?

Trotzdem danke.

C

piper

My mother when alive, said I was complicated 
I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

cas

My mother doesn't say it, but she thinks the same of me.