Não é possível localizar o php5

2

quando eu dei o comando sudo apt-get install php5 que ele responde e a mensagem de erro "não foi possível localizar o php5"

    
por mini 27.04.2011 / 12:24

2 respostas

1

Bem, definitivamente está lá (prova abaixo e aqui ).

oli@tim:~$ apt-cache policy php5
php5:
  Installed: (none)
  Candidate: 5.3.3-1ubuntu9.3
  Version table:
     5.3.3-1ubuntu9.3 0
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ maverick-security/main i386 Packages
     5.3.3-1ubuntu9 0
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
oli@tim:~$ 
oli@tim:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"

Sugestões:

  • Este é um novo sistema? Você já executou sudo apt-get update ?

  • Seu /etc/apt/sources.list está irremediavelmente corrompido? No mínimo, deve ter algumas das seguintes opções:

    deb http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse 
    deb http://archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse 
    deb http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse 
    deb http://archive.canonical.com/ubuntu maverick partner
    
por Oli 27.04.2011 / 12:57
0

provavelmente há problema com a configuração do seu repositório ...

postar aqui a saída de

more /etc/apt/sources.list

php5 está no repositório "main", então você deve ter alguma variante de

deb http://archive.ubuntu.com/ubuntu maverick main
    
por Denwerko 27.04.2011 / 12:55