package mysql-server-5.7 5.7.17-0ubuntu0.16.04.2 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 126

Bug #1685663 reported by Светлана
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Настраивается пакет mysql-server-5.7 (5.7.17-0ubuntu0.16.04.2) …
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
/var/lib/dpkg/info/mysql-server-5.7.postinst: строка 56: /usr/local/bin/mysqld: cannot execute binary file: Ошибка формата выполняемого файла
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: ошибка при обработке пакета mysql-server-5.7 (--configure):
 подпроцесс установлен сценарий post-installation возвратил код ошибки 126
dpkg: зависимости пакетов не позволяют настроить пакет mysql-server:
 mysql-server зависит от mysql-server-5.7, однако:
  Пакет mysql-server-5.7 пока не настроен.

dpkg: ошибка при обработке пакета mysql-server (--configure):
 проблемы зависимостей — оставляем не настроенным
Отчёты apport не записаны, так как сообщение об ошибке указывает на повторную ошибку от предыдущего отказа.
                           При обработке следующих пакетов произошли ошибки:
 mysql-server-5.7
 mysql-server
N: Файл «50unattended-upgrades.ucf-dist» в каталоге «/etc/apt/apt.conf.d/» игнорируется, так как он не имеет неправильное расширение
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.17-0ubuntu0.16.04.2
ProcVersionSignature: Ubuntu 4.4.0-65.86-generic 4.4.49
Uname: Linux 4.4.0-65-generic i686
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: i386
Date: Sun Apr 23 22:54:59 2017
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 126
InstallationDate: Installed on 2012-10-10 (1656 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
Logs.var.log.daemon.log:

Logs.var.log.mysql.error.log:
MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet = 16M
MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['ibdata1', 'mysql', 'ib_logfile0', 'uawebchallenge', 'performance_schema', 'phpmyadmin', 'ib_logfile1', 'infoboard', 'google_play', 'debian-5.5.flag', 'pinba', 'test', 'mysql_upgrade_info']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-65-generic root=UUID=7909191a-9408-4c4a-a6b0-6c703b6fe0bc ro quiet splash vt.handoff=7
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.19
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.17-0ubuntu0.16.04.2 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 126
UpgradeStatus: Upgraded to xenial on 2017-02-28 (54 days ago)

Revision history for this message
Светлана (ivanovasvetlana1991) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
that error seems odd, it is usually when a executable can not be executed due to e.g. wrong architecture.

Could you run and report back the following things:
$ dpkg --print-architecture
$ dpkg --print-architectures
$ uname -a
$ file /usr/local/bin/mysqld

Also the path indicated that this is not a normal Ubuntu mysql - that would have been in /usr/sbin/mysqld
So please report:
$ dpkg -S /usr/sbin/mysqld

If no package is owning this then you have some sort of third party mysql that is not supported.
If unintentionally there remove it, generally ../local/... takes precedence over other paths so the startup might pick this broken one up unintentionally.

Changed in mysql-5.7 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mysql-5.7 (Ubuntu) because there has been no activity for 60 days.]

Changed in mysql-5.7 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.