Não é possível obter qualquer coisa

0

Estou tentando consertar uma partição de inicialização quase completa, mas parece que não consigo executar nenhuma ação do apt-get. Não sei como consertar essa situação confusa.

# 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:
 libssl-dev : Depends: libssl1.0.0 (= 1.0.1-4ubuntu5.14) but 1.0.1-4ubuntu5.17 is installed
E: Unmet dependencies. Try using -f.
#
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libssl-dev
The following packages will be upgraded:
  libssl-dev
1 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,574 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue [Y/n]?
dpkg: dependency problems prevent configuration of libssl-dev:
 libssl-dev depends on libssl1.0.0 (= 1.0.1-4ubuntu5.14); however:
  Version of libssl1.0.0 on system is 1.0.1-4ubuntu5.17.
dpkg: error processing libssl-dev (--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:
 libssl-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
#
# df -h
Filesystem                  Size  Used Avail Use% Mounted on
/dev/mapper/DRAGONITE-root   61G  3.7G   55G   7% /
udev                        993M   12K  993M   1% /dev
tmpfs                       201M  296K  201M   1% /run
none                        5.0M     0  5.0M   0% /run/lock
none                       1002M     0 1002M   0% /run/shm
/dev/vda1                   228M  163M   53M  76% /boot
#
# apt-get -f autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libssl-dev
The following packages will be upgraded:
  libssl-dev
1 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,574 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue [Y/n]?
dpkg: dependency problems prevent configuration of libssl-dev:
 libssl-dev depends on libssl1.0.0 (= 1.0.1-4ubuntu5.14); however:
  Version of libssl1.0.0 on system is 1.0.1-4ubuntu5.17.
dpkg: error processing libssl-dev (--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:
 libssl-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

Atualização:

Executei o seguinte com erro:

# sudo apt-get purge libssl-dev
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:
 php5-dev : Depends: libssl-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    
por alphadogg 24.09.2014 / 04:09

1 resposta

1

Execute os seguintes comandos para corrigir o problema:

sudo apt-get update
sudo apt-get purge libssl-dev

Anote quais pacotes devem ser desinstalados. Se a saída listar 13 pacotes para desinstalar, você poderá reinstalar tudo usando o seguinte comando. Caso contrário, copie e cole cada linha, um por um após este comando, para reinstalar tudo.

sudo apt-get install --reinstall libroot-core-dev libssl1.0.0 libssl-dev

Mais uma vez, esse comando irá reinstalar todos os 13 pacotes.

Eu não sei sua situação, mas pode ser sensato executar o comando:

sudo apt-get dist-upgrade

No entanto, , este comando faz alterações no seu sistema, então você deve abster-se desse comando até que você tenha terminado quaisquer projetos importantes que possam ser afetados por mudanças no sistema!

    
por mchid 24.09.2014 / 04:41