Broken apt-get 12.04.5

0

ao tentar atualizar o php para o 5.4, parece ter quebrado o apt-get! tudo que eu tento agora vai me dar o abaixo

You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies.
     libapache2-mod-php5 : Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or
                                    apache2-mpm-itk but it is not going to be installed
                           Depends: apache2.2-common but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

executando apt-get -f install me dará

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  apache2-mpm-prefork apache2.2-common
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom
The following NEW packages will be installed
  apache2-mpm-prefork apache2.2-common
0 to upgrade, 2 to newly install, 0 to remove and 278 not to upgrade.
3 not fully installed or removed.
Need to get 0 B/229 kB of archives.
After this operation, 876 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 152370 files and directories currently installed.)
Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1.10_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.10_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man8/apache2.8.gz', which is also in package apache2-bin 2.4.16-4+deb.sury.org~precise+4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.22-1ubuntu1.10_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2-mpm-prefork_2.2.22-1ubuntu1.10_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/apache2', which is also in package apache2-bin 2.4.16-4+deb.sury.org~precise+4
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.10_amd64.deb
 /var/cache/apt/archives/apache2-mpm-prefork_2.2.22-1ubuntu1.10_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Nada ive tentou parece corrigir isso .. alguém pode ajudar por favor?

Obrigado

    
por osmo 09.03.2016 / 01:00

1 resposta

-1

Você precisa atualizar seu kernel

Primeiro, corrija os pacotes atuais

sudo dpkg --configure -a

Em seguida, execute atualizações e upgrades

sudo apt-get update && sudo apt-get upgrade

Depois de instalar as atualizações (algumas não podem porque o novo pacote está no novo kernel)

sudo apt-get dist-upgrade

Você pode querer reinicializar

    
por DnrDevil 09.03.2016 / 01:22