Autor Tópico: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?  (Lida 4852 vezes)

Offline samuel_travassos

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Erro...
"E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list (análise de distribuição)"?
como eu resolvo isso no ubuntu 10.04, pq agora ele não instala mais nada... obrigado...
abraços
SmK

Offline irtigor

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 4.344
  • Delete, delete, delete!
    • Ver perfil
Re: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?
« Resposta #1 Online: 24 de Junho de 2010, 10:59 »
Como está escrito, abra o arquivo texto /etc/apt/sources.list que tem uma linha mal formada, ou seja, fora do padrão aceito.

Se você preferir que alguém analise o conteúdo é só copiar e colar aqui.


----
Notas:
Você como usuário "normal" não pode editar esse arquivo, use o sudo;
Para mostrar aqui você pode fazer, por exemplo, gedit /etc/apt/sources.list (no terminal);

Offline samuel_travassos

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?
« Resposta #2 Online: 24 de Junho de 2010, 16:10 »
Dei o comando q vc me disse(gedit /etc/apt/sources.list)... e agora vou pra onde?
 ???
Obrigado

# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://br.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid universe
deb http://br.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://br.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
deb http://br.archive.ubuntu.com/ubuntu/ lucid-security
deb http://br.archive.ubuntu.com/ubuntu/ lucid-updates
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-security
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-updates

Offline irtigor

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 4.344
  • Delete, delete, delete!
    • Ver perfil
Re: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?
« Resposta #3 Online: 24 de Junho de 2010, 16:25 »
deb http://br.archive.ubuntu.com/ubuntu/ lucid-security
deb http://br.archive.ubuntu.com/ubuntu/ lucid-updates
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-security
deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-updates

Essas são as linhas erradas. Adicione uma cerquilha na frente delas e atualize. Exemplo:

sudo gedit /etc/apt/sources.list;
Vá na linha 51 (a mensagem de erro foi bem clara);
Coloque a cerquilha:
    #deb http://br.archive.ubuntu.com/ubuntu/ lucid-security
    #deb http://br.archive.ubuntu.com/ubuntu/ lucid-updates
    #deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-security
    #deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-updates
Feche (não esqueça de salvar);
Atualize a lista (sudo apt-get update);


-----Nota
A cerquilha serve para transformar as linhas em comentários (linhas que vão ser ignoradas pelo apt).
Se funcionar você pode apagar as linhas comentadas sem risco algum.
« Última modificação: 24 de Junho de 2010, 16:28 por irtigor »

Offline samuel_travassos

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?
« Resposta #4 Online: 24 de Junho de 2010, 17:26 »
Ae \o/  ;D  ;) mermão obrigado mesmo cara...  vc vai me ajudar a fica mais tempo com o ubuntu 10.04, estou usando ele faz uma semana e estou gostando pra carvalho , mas quando da pau he chato pra ajeitar...
obrigado de verdade cara.
esta ai um forum q realmente funciona...
tanks novamente
SmK
« Última modificação: 26 de Junho de 2010, 12:14 por Tota »

Offline krasuz

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Re: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?
« Resposta #5 Online: 20 de Abril de 2011, 07:24 »
Não sei analisar qual linha estaria com erro! Qual é o padrão?
Se alguem puder me ajudar agradeço.


# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://br.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick universe
deb http://br.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://br.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://br.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu maverick main
deb-src http://extras.ubuntu.com/ubuntu maverick main

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
deb http://archiva.canonical.com/ubuntumarverick partner
deb-src http://archiva.canonical.com/ubuntumarverick partner
deb http://archive.canonical.com/ubuntu marverick partner
deb-src http://archive.canonical.com/ubuntu marverick partner
deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner
deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner

Offline krasuz

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Re: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?
« Resposta #6 Online: 20 de Abril de 2011, 07:32 »
Não sei analisar qual linha estaria com erro! Qual é o padrão?
Se alguem puder me ajudar agradeço.


# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://br.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick universe
deb http://br.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://br.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://br.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu maverick main
deb-src http://extras.ubuntu.com/ubuntu maverick main

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
deb http://archiva.canonical.com/ubuntumarverick partner
deb-src http://archiva.canonical.com/ubuntumarverick partner
deb http://archive.canonical.com/ubuntu marverick partner
deb-src http://archive.canonical.com/ubuntu marverick partner
deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner
deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner


Valeu gente... Saquei a lógica..... são as linhas 59 e 60 que estavão fora do padrão... Obrigado....

Offline mietto_

  • Usuário Ubuntu
  • *
  • Mensagens: 14
    • Ver perfil
Re: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?
« Resposta #7 Online: 15 de Dezembro de 2012, 10:33 »
eu estava com o mesmo problema, mas nas linhas 5 e 6, no Ubuntu 12.10, e funcionou maravilhosamente bem haha,

Offline Reo7

  • Usuário Ubuntu
  • *
  • Mensagens: 1
    • Ver perfil
Re: Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?
« Resposta #8 Online: 31 de MAR?O de 2014, 19:24 »
 ;D

MUito boa a resposta, de verdade me ajudou muito aqui... topico otimo e bem explicado.