Estou executando uma LAMP no UBUNTU Server 16.04 (xenial).
Eu tentei executar um apt-get update
e consegui o seguinte:
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
mysql-server-5.7 : Depends: mysql-server-core-5.7 (=5.7.12-0ubuntu1.1) but 5.7.15-0ubuntu0.16.04.1 is installed
E: Unmet dependencies. Try using -f.*
Também a execução de apt-get -f install
como sugerido não ajudou ....
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mysql-server-5.7
Suggested packages:
tinyca
The following packages will be upgraded:
mysql-server-5.7
1 to upgrade, 0 to newly install, 0 to remove and 95 not to upgrade.
58 not fully installed or removed.
Need to get 0 B/2,572 kB of archives.
After this operation, 71.7 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 60616 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb ...
cp: cannot overwrite directory '/var/lib/mysql-upgrade/DATADIR.link/mysql' with non-directory
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)*
Apenas FYI: meus arquivos de banco de dados MySQL foram movidos para a pasta inicial do usuário mysql quando fiz a instalação pela primeira vez, usando estas dicas: link O resto é praticamente conforme a instalação padrão.
Obrigado antecipadamente pela sua ajuda,
Gio