“Nenhum Candidato à Instalação” ao tentar instalar o essencial da compilação

5

apt-get install build-essential falha com os seguintes erros:

~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'build-essential' has no installation candidate

Acabei de executar sudo apt-get update antes de tentar esta instalação.

A pasta /etc/apt/sources.list.d está vazia. Aqui está a carne do /etc/apt/sources.list:

$ grep deb\ http: /etc/apt/sources.list  #(with "deb http://" deleted)  
us.archive.ubuntu.com/ubuntu/ raring main restricted  
us.archive.ubuntu.com/ubuntu/ raring-updates main restricted  
us.archive.ubuntu.com/ubuntu/ raring universe  
us.archive.ubuntu.com/ubuntu/ raring-updates universe  
us.archive.ubuntu.com/ubuntu/ raring multiverse  
us.archive.ubuntu.com/ubuntu/ raring-updates multiverse  
us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse  
security.ubuntu.com/ubuntu raring-security main restricted  
security.ubuntu.com/ubuntu raring-security universe  
security.ubuntu.com/ubuntu raring-security multiverse  
extras.ubuntu.com/ubuntu raring main  

Isso com o Ubuntu 13.04 64 bit.

apt-cache policy build-essential 
build-essential:
 Installed: (none)
 Candidate: (none)
 Version table: 

O diretório /etc/apt/sources.list.d está vazio.

    
por Dave Perry 04.07.2013 / 01:51

1 resposta

4

Problema resolvido. No Centro de Software do Ubuntu > > Editar > > Fontes de software, mudei o servidor para o servidor principal e, em seguida, execute sudo apt-get update . Então sudo apt-get install build-essential que funcionou.

    
por Dave Perry 04.07.2013 / 18:48

Tags