ubuntuusers.de

mysql-server-5.7 is not configured yet

Status: Gelöst | Ubuntu-Version: Server 16.04 (Xenial Xerus)
Antworten |

verdooft

Anmeldungsdatum:
15. September 2012

Beiträge: 4436

Steht im Titel bereits, glücklicherweise läuft der Mysqlserver trotzdem. Ein allgemeines Problem mit den Mysql 5.7 Paketen schließe ich aus, weil hier:

https://forum.ubuntuusers.de/post/8177948/

jemand meint, dass das Update fehlerfrei durchlief.

Paar Ausgaben:

apt-cache policy

apt-cache policy
Paketdateien:
 100 /var/lib/dpkg/status
     release a=now
 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/universe i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-proposed,n=xenial,l=Ubuntu,c=universe,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-proposed,n=xenial,l=Ubuntu,c=universe,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/multiverse i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-proposed,n=xenial,l=Ubuntu,c=multiverse,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/multiverse amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-proposed,n=xenial,l=Ubuntu,c=multiverse,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/main i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-proposed,n=xenial,l=Ubuntu,c=main,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-proposed,n=xenial,l=Ubuntu,c=main,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/restricted i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-proposed,n=xenial,l=Ubuntu,c=restricted,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/restricted amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-proposed,n=xenial,l=Ubuntu,c=restricted,b=amd64
     origin gb.archive.ubuntu.com
 500 http://security.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-security,n=xenial,l=Ubuntu,c=multiverse,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-security,n=xenial,l=Ubuntu,c=multiverse,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-security,n=xenial,l=Ubuntu,c=universe,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-security,n=xenial,l=Ubuntu,c=universe,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu xenial-security/restricted i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-security,n=xenial,l=Ubuntu,c=restricted,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-security,n=xenial,l=Ubuntu,c=restricted,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-security,n=xenial,l=Ubuntu,c=main,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-security,n=xenial,l=Ubuntu,c=main,b=amd64
     origin security.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/multiverse i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-backports,n=xenial,l=Ubuntu,c=multiverse,b=i386
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-backports,n=xenial,l=Ubuntu,c=multiverse,b=amd64
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-backports,n=xenial,l=Ubuntu,c=universe,b=i386
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-backports,n=xenial,l=Ubuntu,c=universe,b=amd64
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/restricted i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-backports,n=xenial,l=Ubuntu,c=restricted,b=i386
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-backports,n=xenial,l=Ubuntu,c=restricted,b=amd64
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-backports,n=xenial,l=Ubuntu,c=main,b=i386
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-backports,n=xenial,l=Ubuntu,c=main,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-updates,n=xenial,l=Ubuntu,c=multiverse,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-updates,n=xenial,l=Ubuntu,c=multiverse,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-updates,n=xenial,l=Ubuntu,c=universe,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-updates,n=xenial,l=Ubuntu,c=universe,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-updates,n=xenial,l=Ubuntu,c=restricted,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-updates,n=xenial,l=Ubuntu,c=restricted,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
     release v=16.04,o=Ubuntu,a=xenial-updates,n=xenial,l=Ubuntu,c=main,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial-updates,n=xenial,l=Ubuntu,c=main,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages
     release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=multiverse,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=multiverse,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
     release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=universe,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=universe,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial/restricted i386 Packages
     release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=restricted,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=restricted,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial/main i386 Packages
     release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=main,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
     release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=main,b=amd64
     origin gb.archive.ubuntu.com
Mit Pinning verwaltete Pakete:

Manuelle APT-Konfiguration und Einstellungen, /etc/apt/apt.conf, /etc/apt/preferences sind nicht vorhanden

sudo apt-get update

läuft fehlerfrei durch.

sudo dpkg --configure -a

sudo dpkg --configure -a
Setting up mysql-server-5.7 (5.7.11-0ubuntu3) ...
Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.11, use --force if you still need to run mysql_upgrade
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server

sudo apt-get -f install

sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  php5-gd php5-mcrypt
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.7 (5.7.11-0ubuntu3) ...
Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.11, use --force if you still need to run mysql_upgrade
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg -l | grep mysql*

dpkg -l | grep mysql*
ii  dbconfig-mysql                     2.0.4                                    all          dbconfig-common MySQL/MariaDB support
ii  dovecot-mysql                      1:2.2.22-1ubuntu2                        amd64        secure POP3/IMAP server - MySQL support
ii  libdbd-mysql-perl                  4.033-1build2                            amd64        Perl5 database interface to the MySQL database
ii  libmysqlclient18:amd64             5.6.28-1ubuntu3                          amd64        MySQL database client library
ii  libmysqlclient20:amd64             5.7.11-0ubuntu3                          amd64        MySQL database client library
ii  mysql-client                       5.7.11-0ubuntu3                          all          MySQL database client (metapackage depending on the latest version)
ii  mysql-client-5.7                   5.7.11-0ubuntu3                          amd64        MySQL database client binaries
ii  mysql-client-core-5.7              5.7.11-0ubuntu3                          amd64        MySQL database core client binaries
ii  mysql-common                       5.7.11-0ubuntu3                          all          MySQL database common files, e.g. /etc/mysql/my.cnf
iU  mysql-server                       5.7.11-0ubuntu3                          all          MySQL database server (metapackage depending on the latest version)
iF  mysql-server-5.7                   5.7.11-0ubuntu3                          amd64        MySQL database server binaries and system database setup
ii  mysql-server-core-5.7              5.7.11-0ubuntu3                          amd64        MySQL database server binaries
ii  php-mysql                          1:7.0+35ubuntu6                          all          MySQL module for PHP [default]
ii  php5-mysql                         5.6.17+dfsg-3ubuntu1                     amd64        MySQL module for php5
ii  php7.0-mysql                       7.0.4-5ubuntu2                           amd64        MySQL module for PHP
ii  postfix-mysql                      3.0.4-5build1                            amd64        MySQL map support for Postfix

apt-cache policy mysql-server

apt-cache policy mysql-server
mysql-server:
  Installiert:           5.7.11-0ubuntu3
  Installationskandidat: 5.7.11-0ubuntu3
  Versionstabelle:
 *** 5.7.11-0ubuntu3 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/main i386 Packages
        100 /var/lib/dpkg/status
     5.6.28-1ubuntu3 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial/main i386 Packages

apt-cache policy mysql-server-5.7

apt-cache policy mysql-server-5.7
mysql-server-5.7:
  Installiert:           5.7.11-0ubuntu3
  Installationskandidat: 5.7.11-0ubuntu3
  Versionstabelle:
 *** 5.7.11-0ubuntu3 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages
        100 /var/lib/dpkg/status

Im Verzeichnis

/var/cache/apt/archives

hab ich dann noch das ausgeführt:

sudo dpkg -i mysql-server-5.7_5.7.11-0ubuntu3_amd64.deb
(Reading database ... 80704 files and directories currently installed.)
Preparing to unpack mysql-server-5.7_5.7.11-0ubuntu3_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.11-0ubuntu3) over (5.7.11-0ubuntu3) ...
Setting up mysql-server-5.7 (5.7.11-0ubuntu3) ...
Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.11, use --force if you still need to run mysql_upgrade
dpkg: error processing package mysql-server-5.7 (--install):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-3ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 mysql-server-5.7

Mit --force-all klappts auch nicht, wenn noch weitere Ausgaben erwünscht sind, liefere ich die nach.

verdooft

(Themenstarter)

Anmeldungsdatum:
15. September 2012

Beiträge: 4436

Jetzt hab ich einen topaktuellen Bugreport gefunden:

https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1566406

Da wurde auch von 15.10 auf 16.04 gewechselt.

Frieder108

Avatar von Frieder108

Anmeldungsdatum:
7. März 2010

Beiträge: 9607

dann liegts wohl an dem Upgrade von 15.10 auf 16.04 - schau selber

frieder@T410:/var/cache/apt/archives$ sudo dpkg -i mysql-server-5.7_5.7.11-0ubuntu3_amd64.deb
[sudo] Passwort für frieder: 
(Lese Datenbank ... 213511 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von mysql-server-5.7_5.7.11-0ubuntu3_amd64.deb ...
Entpacken von mysql-server-5.7 (5.7.11-0ubuntu3) über (5.7.11-0ubuntu3) ...
mysql-server-5.7 (5.7.11-0ubuntu3) wird eingerichtet ...
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Checking system database.
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.engine_cost                                  OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.gtid_executed                                OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.innodb_index_stats                           OK
mysql.innodb_table_stats                           OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.server_cost                                  OK
mysql.servers                                      OK
mysql.slave_master_info                            OK
mysql.slave_relay_log_info                         OK
mysql.slave_worker_info                            OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
The sys schema is already up to date (version 1.5.0).
Checking databases.
sys.sys_config                                     OK
Upgrade process completed successfully.
Checking if update is needed.
Trigger für ureadahead (0.100.0-19) werden verarbeitet ...
ureadahead will be reprofiled on next reboot
Trigger für systemd (229-3ubuntu2) werden verarbeitet ...
Trigger für man-db (2.7.5-1) werden verarbeitet ...
frieder@T410:/var/cache/apt/archives$ 

Das seltsame ist, meine "apt-cache policy"-Abfragen sind identisch mit deinen - nur ist meine Installation ne ca. 5 Tage alte Neuinstallation und es ist mit Unity, nicht die Servervariante.

verdooft

(Themenstarter)

Anmeldungsdatum:
15. September 2012

Beiträge: 4436

Hätte eine frische Installation auch vorgezogen, ist beim vServer aber nicht vorgesehen und bis zum Erscheinen von 16.04, kurz danach wird mans beim Hoster auch als OS auswählen können, war ich zu ungeduldig. Ich bin testweise auch mal zurück auf Mysql 5.6 gegangen, lief auch nicht durch. Jetzt warte ich einfach mal.

verdooft

(Themenstarter)

Anmeldungsdatum:
15. September 2012

Beiträge: 4436

gelöst:

mysql-5.7 (5.7.11-0ubuntu5) xenial; urgency=medium

  * d/mysql-server-5.7.postinst: ignore mysql_upgrade's exit status when
    it is one that includes the indication that there is nothing to do
    (LP: #1566406).
Antworten |