Force install apt-get

14

Eu tentei instalar o beanstalkd com sudo apt-get install beanstalkd (também com a opção -f ) e recebo o seguinte erro:

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:
  beanstalkd: Depends: libevent-1.4-2 (>= 1.4.13-stable) but it is not going to be installed
  mysql-server-5.1: Depends: mysql-client-5.1 (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed
                    Depends: libmysqlclient16 (>= 5.1.21-1) but it is not going to be installed
                    Depends: mysql-server-core-5.1 (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed
                    PreDepends: mysql-common (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    
por aWebDeveloper 21.05.2012 / 16:19

4 respostas

27

Primeiro baixe o pacote deb do repositório

apt-get download <package_name>

Instale o arquivo deb (ele deve estar na pasta atual)

sudo dpkg -i <downloaded_package_deb_file>
    
por ineicu 05.07.2013 / 13:37
3

tente executar sudo apt-get --fix-missing install

    
por user95688 10.10.2012 / 03:55
2

Tente

sudo apt-get install -f

sem pacote no terminal.

Se isso ainda fornecer o erro das dependências, você terá que emitir

sudo apt-get remove beanstalkd

tente

sudo apt-get install mysql-server beanstalkd

Isso deve instalar as dependências mysql e o beanstalk.

    
por VooDooStevie 10.10.2012 / 18:37
0

Executar

apt --fix-broken install

sem pacotes. E tente instalar os pacotes novamente.

    
por nipunasudha 02.12.2017 / 11:58