Error: "E: Linha mal formada 51 no arquivo de fontes /etc/apt/sources.list" ?

Iniciado por samuel_travassos, 24 de Junho de 2010, 10:47

tópico anterior - próximo tópico

samuel_travassos

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

irtigor

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);

samuel_travassos

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

irtigor

Citação de: samuel_travassos online 24 de Junho de 2010, 16:10
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.

samuel_travassos

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

krasuz

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

krasuz

Citação de: krasuz 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


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

mietto_

eu estava com o mesmo problema, mas nas linhas 5 e 6, no Ubuntu 12.10, e funcionou maravilhosamente bem haha,

Reo7

 ;D

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