Type '--2016-08-04' não é conhecido na linha 1 da lista de fontes /etc/apt/sources.list [duplicate]

0

Eu quero instalar o hadoop no meu sistema Ubuntu 14.04. Seguindo as instruções de um blog, preciso atualizar a "lista de fontes".

Mas quando eu insiro o comando: sudo apt-get update recebo erros:

E: Type '--2016-08-04' is not known on line 1 in source list /etc/apt/sources.list       E: The list of sources could not be read.
E: The package lists or status file could not be parsed or opened.

Ao mesmo tempo, um sinal de parada exibido no canto superior direito do menu diz que:

Ocorreu um erro. Por favor, execute o Gerenciador de Pacotes no menu do botão direito ou execute o apt-get em um terminal para ver o que está errado.

A mensagem de erro foi:

'Unknown error: '<class 'SystemError'
E:Type '--2016-08-04' is not known on line 1 in the source list /etc/apt/sources.list.
This usually means that your installed packages have unmet dependencies"

/etc/apt/sources.list :

--2016-08-04 21:29:00-- (try: 1) http://pastebin.com     
/raw.php?i=uzhrtg5M Resolving pastebin.com (pastebin.com)...     
104.20.63.56, 104.20.64.56 Connecting to pastebin.com  
(pastebin.com)|104.20.63.56|:80... connected.
HTTP request sent, awaiting response...
Read error (Connection reset by peer) in headers. Retrying.

Este é o começo da sources.list.

    
por zhangwp 10.08.2016 / 15:50

1 resposta

1

Abra /etc/apt/sources.list em um editor como raiz (por exemplo, digite no terminal gksudo gedit /etc/apt/sources.list ) e substitua todo o seu conteúdo pelo seguinte

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse 
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

Seu problema é que neste arquivo, em vez de repositorires, algum tipo de saída de um comando. Eu não tenho ideia de como chegou lá, você provavelmente sabe disso.

    
por Hi-Angel 10.08.2016 / 18:10