E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

1. E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

Daniel Almico Saraiva
EnergiaMetalica

(usa Ubuntu)

Enviado em 11/09/2011 - 21:06h

Olá a todos da comunidade, eu sou novo no Linux, e achei bem interessante, porém, estou com um problema. Quando tento abrir o Gerenciador de pacotes a mensagem aparece, e eu não sei o que fazer. Tentei seguir os tópicos já existentes, mas nenhum me ajudou, Por favor, me ajudem


  


2. MELHOR RESPOSTA

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/09/2011 - 22:36h

faça isso nessa sequência

1 aplicativos >> acessórios >> terminal

2 sudo /etc/apt/sources.list >> digite sua senha

3 apague todo o conteúdo e cole isso

# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
deb http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu maverick-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse

deb http://extras.ubuntu.com/ubuntu maverick main

deb http://archive.cannonical.com/ lucid partner


4 Salve assim CTRL+O e para sair CTRL+X

5 apt-get update



3. Re: E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/09/2011 - 21:26h

E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list

$ sudo gedit /etc/apt/sources.list

aí ou você inseri ' # ' no início da linha 61

ou copie tudo e cole aqui pra gente ver.


4. Re: E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

Daniel Almico Saraiva
EnergiaMetalica

(usa Ubuntu)

Enviado em 11/09/2011 - 21:52h

O problema é esse. Eu não sei o que fazer depois disso. Quando eu ponho a linha 61 no Terminal, não acontece nada...


5. Linha

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/09/2011 - 22:01h

Amigo post teu sources.list como o caro edps falou...
sudo nano /etc/apt/sources.list

e cola aqui ok


6. Re: E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

Daniel Almico Saraiva
EnergiaMetalica

(usa Ubuntu)

Enviado em 11/09/2011 - 22:09h

# 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
## 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://archive.cannonical.com/ lucid partner
deb-src http://archive.cannonical.com/ lucid partner
deb http://archive.cannonical.com/lucid partner
deb-src http://archive.cannonical.com/lucid partner
## 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://archive.cannonical.com/ lucid partner
deb-src http://archive.cannonical.com/ lucid partner
deb http://archive.cannonical.com/lucid partner
deb-src http://archive.cannonical.com/lucid partner

é isso?


7. list

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/09/2011 - 22:17h

1 faça um backup do seu sources.list louco

assim cp /etc/apt/sources.list /etc/apt/sources.list-backup

2 abra o sources.list e apague todo o conteudo e cole esse
esse sources.list do edps

http://www.vivaolinux.com.br/dica/Sources.list-para-o-Ubuntu-10.10-Maverick-Meerkat

salve e saia

4 apt-get update


8. list

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/09/2011 - 22:18h

não misture repositorios


9. Re: E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/09/2011 - 22:26h

como eu odeio essa zona de sources,list do Ubuntu, mas fazendo uma limpeza nesse troço:

adicionei as seções: main restricted universe e multiverse numa só linha

removi uma porrada de vezes que os 2 repositórios se repetiram: ( deb http://extras.ubuntu.com/ubuntu maverick main e deb http://archive.cannonical.com/ lucid partner )

removi os repositórios deb-src pois você não deve precisar de compilar pacotes dos fontes né?

seu sources.list ficou assim (5 eficientes linhas):


deb http://br.archive.ubuntu.com/ubuntu/">http://br.archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu maverick-security main restricted universe multiverse
deb http://br.archive.ubuntu.com/ubuntu/">http://br.archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse

deb http://extras.ubuntu.com/ubuntu maverick main

deb http://archive.cannonical.com/ lucid partner


* mas onde se lê ' http://br.archive.ubuntu ' eu trocaria por ' http://archive.ubuntu '


10. Re: E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

Daniel Almico Saraiva
EnergiaMetalica

(usa Ubuntu)

Enviado em 11/09/2011 - 22:26h

Então, vou falar denovo. Sou novo no Linux, não sei mecher em nada praticamente. Me perdoem a ignorância, mas teria como explicar melhor?


11. Re: E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/09/2011 - 22:33h

como esse sistema daqui duplicou os endereços que postei o melhor a fazer é utilizar o meu sources.list indicado pelo colega ou use essa atualização que postei no paste.bin:

http://pastebin.com/w2vZsdXf


sobre o que fazer:

1) você vai abrir o sources.list com o Gedit:

$ sudo gedit /etc/apt/sources.list

2) vai apagar tudo e colar o que está nesse endereço:

http://pastebin.com/w2vZsdXf

3) depois você salva e fecha o arquivo e vai fazer isso no terminal:

$ sudo apt-get update
$ sudo apt-get install medibuntu-keyring
$ sudo apt-get update


12. Re: E:Linha mal formada 61 no arquivo de fontes /etc/apt/sources.list [RESOLVIDO]

Daniel Almico Saraiva
EnergiaMetalica

(usa Ubuntu)

Enviado em 11/09/2011 - 22:43h

Eu faço tudo isso, e no meu terminal aparece a seguinte mensagem:
E: Não foi possível abrir arquivo de trava /var/lib/apt/lists/lock - open (13: Permissão negada)
E: Impossível criar acesso exclusivo ao directório /var/lib/apt/lists/
E: Não foi possível abrir arquivo de trava /var/lib/dpkg/lock - open (13: Permissão negada)
E: Não foi possível criar acesso exclusivo ao directório de administração (/var/lib/dpkg/), é root?
E agora?



01 02