Instalando o MariaDB - Dependências não atendidas, Depende: mariadb-server-10.0

2

Então eu decidi atualizar do MYSQL Server para o Mariadb. Eu pensei que instalar um servidor mysql e instalar o mariadb seria rápido.

Quando tentei instalar através dos comandos: sudo apt-get install python-software-properties

seguido por: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db

seguido por:

sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main'

e depois: sudo apt-get update

e finalmente: sudo apt-get install mariadb-server

Estou recebendo um erro:

'invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mariadb-server-10.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
 mariadb-server depends on mariadb-server-10.1 (= 10.1.16+maria-1~trusty); however:
  Package mariadb-server-10.1 is not configured yet.

dpkg: error processing package mariadb-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 mariadb-server-10.1
 mariadb-server

Eu tentei limpar o mariadb para reverter para o servidor mysql, mas não consigo instalar também. Tentei um par de correções da internet, mas não pode consertar isso. Qual poderia ser o problema? Qualquer um? Confie em mim, eu pesquisei e tentei muitas correções, mas não consigo trabalhar?

Meu /etc/apt/sources.list está abaixo

# deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
#deb http://mirror.jmu.edu/pub/mariadb/repo/10.1/ubuntu trusty main
#deb-src http://mirror.jmu.edu/pub/mariadb/repo/10.1/ubuntu trusty main
deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
    
por Qwerty 11.08.2016 / 06:36

3 respostas

0

Você está usando o Ubuntu 14.04 (confiável) e adicionou repositório para o Ubuntu 12.04 (preciso)?

deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main

Se eu executo a pesquisa por mariadb em packages.ubuntu.com, há mariadb já nos repositórios confiáveis do universo - veja isto link .

Você pode remover o repositório link em /etc/apt/sources.list e verificar se existem alguns repositórios estranhos em /etc/apt/sources.list.d. ?

Depois disso purgue a instalação do mariadb anterior e tente instalá-lo com

sudo apt-get update
sudo apt-get install mariadb-server

Isso instalará o maria db 5.5. Se você precisar da versão 10.1, tente com as instruções oficiais aqui .

    
por iuuuuan 11.08.2016 / 07:07
0

A maneira mais simples de lidar com dependências não atendidas é usar o Gerenciador de Pacotes Synaptic.

0] Instale-o se você não tiver ainda. Link:
1] Clique em Configurações > Filtros. Ir para quebrado e verificar não instalável e quebrado.
2] Filtro personalizado usando Quebrado para pacote mencionado em erro.
3] Clique com o botão direito > Marque para remoção completa.
4] Clique em Aplicar na barra superior.

Isso deve resolver isso. :)

    
por manasa prakash 11.08.2016 / 07:46
0

Meio atrasado, mas tive o mesmo problema ontem à noite, bem depois de atualizar o MariaDb para o 10.1 estável, no Linux Mint 17.2 -Rafaela.

Então, depois de desinstalar o + maria purging, instalei a versão 10.0 estável do Mint 17.1 Instruções, sem problemas.

Instruções oficiais MariaDb Download Distros

    
por Mandi 18.10.2016 / 23:21