Autor Tópico: [resolvido] Depois de instalar skype não consigo atualizar ubuntu 12-04  (Lida 15978 vezes)

Offline carirygondim

  • Usuário Ubuntu
  • *
  • Mensagens: 90
    • Ver perfil
Depois de instalar, e houveram vários problemas na instalação, o skype, aparece a seguinte mensagem de erro ao tentar atualizar o ubuntu:
'E:Linha mal formada 97 no arquivo de fontes /etc/apt/sources.list (análise de distribuição)'
« Última modificação: 21 de Novembro de 2012, 17:44 por carirygondim »

Offline Arthur Bernardes

  • Usuário Ubuntu
  • *
  • Mensagens: 4.692
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #1 Online: 17 de Novembro de 2012, 18:24 »
Para o fórum te ajudar, poste o conteúdo do sources.list

Offline carirygondim

  • Usuário Ubuntu
  • *
  • Mensagens: 90
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #2 Online: 17 de Novembro de 2012, 18:26 »
Para o fórum te ajudar, poste o conteúdo do sources.list
como postar tal conteúdo?

Offline carirygondim

  • Usuário Ubuntu
  • *
  • Mensagens: 90
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #3 Online: 17 de Novembro de 2012, 18:33 »
Para o fórum te ajudar, poste o conteúdo do sources.list
Vejamos se é este o conteúdo pedido:

# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted
# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://sft.if.usp.br/ubuntu/ precise main restricted
deb-src http://sft.if.usp.br/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://sft.if.usp.br/ubuntu/ precise-updates main restricted
deb-src http://sft.if.usp.br/ubuntu/ precise-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://sft.if.usp.br/ubuntu/ precise universe
deb-src http://sft.if.usp.br/ubuntu/ precise universe
deb http://sft.if.usp.br/ubuntu/ precise-updates universe
deb-src http://sft.if.usp.br/ubuntu/ precise-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://sft.if.usp.br/ubuntu/ precise multiverse
deb-src http://sft.if.usp.br/ubuntu/ precise multiverse
deb http://sft.if.usp.br/ubuntu/ precise-updates multiverse
deb-src http://sft.if.usp.br/ubuntu/ precise-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/ natty-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://sft.if.usp.br/ubuntu/ precise-security main restricted
deb-src http://sft.if.usp.br/ubuntu/ precise-security main restricted
deb http://sft.if.usp.br/ubuntu/ precise-security universe
deb-src http://sft.if.usp.br/ubuntu/ precise-security universe
deb http://sft.if.usp.br/ubuntu/ precise-security multiverse
deb-src http://sft.if.usp.br/ubuntu/ precise-security 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 natty partner
# deb-src http://archive.canonical.com/ubuntu natty 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 precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

## Major bug fix updates produced after the final release of the
## distribution.

## 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.

## 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.

## 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/ natty-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ natty-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 natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner

## This software is not part of Ubuntu, but is offered by third-party
deb http://sft.if.usp.br/ubuntu/ precise-backports restricted main multiverse universe
deb http://archive.canonical.com/ partner
deb-src http://archive.canonical.com/ partner
deb http://archive.canonical.com/ precise partner
deb-src http://archive.canonical.com/ precise partner
## developers who want to ship their latest software.

Offline Arthur Bernardes

  • Usuário Ubuntu
  • *
  • Mensagens: 4.692
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #4 Online: 17 de Novembro de 2012, 18:34 »
Sim.. Agora aguardemos a ajuda do Fórum..!  :)

Offline Ioca100

  • Usuário Ubuntu
  • *
  • Mensagens: 2.848
  • Rio,Brasil
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #5 Online: 17 de Novembro de 2012, 19:51 »
O que achei estranho é essa linha : deb http://archive.canonical.com/ubuntu natty partner
 
No terminal:  gksudo gedit /etc/apt/sources.list

Comente(coloque #) e vai ficar assim: # deb http://archive.canonical.com/ubuntu natty partner
Salve, depois de salvar e sair,  dê : sudo apt-get update && sudo apt-get upgrade
« Última modificação: 18 de Novembro de 2012, 08:42 por Ioca100 »
Usuário Linux- 449417

Offline Arthur Bernardes

  • Usuário Ubuntu
  • *
  • Mensagens: 4.692
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #6 Online: 17 de Novembro de 2012, 19:56 »
Devemos lembrar que para ele alterar algo tem que ser como root, então: sudo gedit /etc/apt/sources.list


Offline jkmsjq

  • Usuário Ubuntu
  • *
  • Mensagens: 3.343
  • Ubuntu Member
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #7 Online: 17 de Novembro de 2012, 20:12 »
[...]

## This software is not part of Ubuntu, but is offered by third-party
#deb http://sft.if.usp.br/ubuntu/ precise-backports restricted main multiverse universe
deb http://archive.canonical.com/ partner
deb-src http://archive.canonical.com/ partner
deb http://archive.canonical.com/ partner

deb-src http://archive.canonical.com/ precise partner
## developers who want to ship their latest software.

O correto nas últimas linhas não ficariam assim:

Citar
deb http://archive.canonical.com/precise partner
deb-src http://archive.canonical.com/precise partner
deb http://archive.canonical.com/precise partner
« Última modificação: 17 de Novembro de 2012, 20:38 por jkmsjq »
LinuxUser: 548942 / Dando um tópico como resolvido
"A verdade só é agressiva a quem vive de mentiras". Autor desconhecido.
Twitter: @jeisonkertesz

Offline Ioca100

  • Usuário Ubuntu
  • *
  • Mensagens: 2.848
  • Rio,Brasil
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #8 Online: 17 de Novembro de 2012, 20:19 »
Devemos lembrar que para ele alterar algo tem que ser como root, então: sudo gedit /etc/apt/sources.list


Boa, já corrigi, mas o melhor mesmo é: gksudo gedit /etc/apt/sources.list
« Última modificação: 18 de Novembro de 2012, 08:41 por Ioca100 »
Usuário Linux- 449417

Offline carirygondim

  • Usuário Ubuntu
  • *
  • Mensagens: 90
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #9 Online: 17 de Novembro de 2012, 20:36 »
O que achei estranho é essa linha : deb http://archive.canonical.com/ubuntu natty partner
 
No terminal: sudo gedit /etc/apt/sources.list

Comente(coloque #) e vai ficar assim: # deb http://archive.canonical.com/ubuntu natty partner
Salve, depois de salvar e sair,  dê : sudo apt-get update && sudo apt-get upgrade



Primeiro obrigado pela ajuda que estão dando.

Segui o procedimento acima, transformando a linha em comentário (não acrescentei a mesma linha como comentário, apenas a transformei em comentário) e o resultado final (depois do update e upgrade) foi a mensagem seguinte:
E: Linha mal formatada 97 no arquivo /etc/apt/sources.list (análise de distribuição)
E: A lista de fontes não pode ser lida.
                                                             
       

Offline carirygondim

  • Usuário Ubuntu
  • *
  • Mensagens: 90
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #10 Online: 17 de Novembro de 2012, 20:58 »
Uma informação que talvez valha a pena:

segui um roteiro para instalar o skype que diz para digitar os comandos
1. sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
2. sudo apt-get update && sudo apt-get install skype

como não deu certo baixei um pacote .deb do skype (a partir de link no hardware.com.br , vale dizer, no tópico "Skype 4.1 para Linux também tem integração com contatos do Messenger" ou, mais preciso, no link http://www.skype.com/intl/pt-br/get-skype/on-your-computer/linux/ ) e a instalação foi fácil.

Offline carirygondim

  • Usuário Ubuntu
  • *
  • Mensagens: 90
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #11 Online: 17 de Novembro de 2012, 21:15 »
para atualizar, como está a source.list, com modificações nos dois últimos "parágrafos":

# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted
# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://sft.if.usp.br/ubuntu/ precise main restricted
deb-src http://sft.if.usp.br/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://sft.if.usp.br/ubuntu/ precise-updates main restricted
deb-src http://sft.if.usp.br/ubuntu/ precise-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://sft.if.usp.br/ubuntu/ precise universe
deb-src http://sft.if.usp.br/ubuntu/ precise universe
deb http://sft.if.usp.br/ubuntu/ precise-updates universe
deb-src http://sft.if.usp.br/ubuntu/ precise-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://sft.if.usp.br/ubuntu/ precise multiverse
deb-src http://sft.if.usp.br/ubuntu/ precise multiverse
deb http://sft.if.usp.br/ubuntu/ precise-updates multiverse
deb-src http://sft.if.usp.br/ubuntu/ precise-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/ natty-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://sft.if.usp.br/ubuntu/ precise-security main restricted
deb-src http://sft.if.usp.br/ubuntu/ precise-security main restricted
deb http://sft.if.usp.br/ubuntu/ precise-security universe
deb-src http://sft.if.usp.br/ubuntu/ precise-security universe
deb http://sft.if.usp.br/ubuntu/ precise-security multiverse
deb-src http://sft.if.usp.br/ubuntu/ precise-security 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 natty partner
# deb-src http://archive.canonical.com/ubuntu natty 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 precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

## Major bug fix updates produced after the final release of the
## distribution.

## 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.

## 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.

## 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/ natty-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ natty-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 natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner

## This software is not part of Ubuntu, but is offered by third-party
deb http://sft.if.usp.br/ubuntu/ precise-backports restricted main multiverse universe
deb http://archive.canonical.com/ partner
deb-src http://archive.canonical.com/ partner
deb http://archive.canonical.com/precise partner
deb-src http://archive.canonical.com/precise partner
## developers who want to ship their latest software.

Creto

  • Visitante
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #12 Online: 17 de Novembro de 2012, 21:42 »
Copie esse comando e cole no seu terminal:

Código: [Selecionar]
sudo rm /var/lib/apt/lists/* ; sudo rm /var/lib/apt/lists/partial/* ; sudo apt-get -f install ; sudo apt-get clean ; sudo apt-get update
Aguarde o comando terminar e se não aparecem mais os erros finalize com

Código: [Selecionar]
sudo apt-get upgrade
T+

Offline carirygondim

  • Usuário Ubuntu
  • *
  • Mensagens: 90
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #13 Online: 17 de Novembro de 2012, 22:08 »
Copie esse comando e cole no seu terminal:

Código: [Selecionar]
sudo rm /var/lib/apt/lists/* ; sudo rm /var/lib/apt/lists/partial/* ; sudo apt-get -f install ; sudo apt-get clean ; sudo apt-get update
Aguarde o comando terminar e se não aparecem mais os erros finalize com

Código: [Selecionar]
sudo apt-get upgrade
T+

Digitei todos os comandos no terminal e apareceu a mensagem:

rm: não foi possível remover "/var/lib/apt/lists/partial": É um diretório
rm: não foi possível remover "var/lib/apt/lists/partial/*" : Arquivo ou diretório não encontrado
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informações de estado... Pronto
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
E: Linha mal formada 97 no arquivo de fontes /etc/apt/sources.list (análise de distribuição)
E: A lista de fontes não pode ser lida.

Offline Ioca100

  • Usuário Ubuntu
  • *
  • Mensagens: 2.848
  • Rio,Brasil
    • Ver perfil
Re: Depois de instalar skype não consigo atualizar ubuntu 12-04
« Resposta #14 Online: 18 de Novembro de 2012, 09:06 »
Veja que para consertar o problema,  teríamos que  abrir o arquivo sources.list com o o gedit , ir até a linha problemática (97), apagá-la , salvar e sair.Agora onde está esta linha 97 ?  Eu só contei 86.Tem algo errado na informação ou existe outra forma de achar a bendita linha 97, que eu não saiba.
Vou postar o meu sources. list(12.04, 32 bits) , se quiser tentar apagar o seu e colocar o meu, faça um backup do sources.list para qq coisa.


# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu precise main restricted
deb-src http://archive.ubuntu.com/ubuntu precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-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://archive.ubuntu.com/ubuntu precise universe
deb-src http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe
deb-src http://archive.ubuntu.com/ubuntu precise-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://archive.ubuntu.com/ubuntu precise multiverse
deb-src http://archive.ubuntu.com/ubuntu precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-updates multiverse

## 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.
« Última modificação: 18 de Novembro de 2012, 10:53 por Ioca100 »
Usuário Linux- 449417