erro ao fazer updates

Iniciado por Andrezarro24, 23 de Novembro de 2015, 13:32

tópico anterior - próximo tópico

Andrezarro24

Boa tarde pessoal,

se calhar ate ja ha posts identicos mas a minha procura ja foi tanta e ja tentei tanto codigo que cansei de procurar.
è o seguinte, estou a instalar o openstack de raiz atraves do command line no ubuntu 14.04. Logo a fazer o sudo apt-get update, pareceu os seguintes erros...

andre@andre:/var/lib/apt$ sudo apt-get update
Err http://pt.archive.ubuntu.com vivid InRelease

Err http://pt.archive.ubuntu.com vivid-updates InRelease

Err http://pt.archive.ubuntu.com vivid-backports InRelease

Err http://security.ubuntu.com vivid-security InRelease

Err http://pt.archive.ubuntu.com vivid Release.gpg
  Não foi possível resolver 'pt.archive.ubuntu.com'
Err http://pt.archive.ubuntu.com vivid-updates Release.gpg
  Não foi possível resolver 'pt.archive.ubuntu.com'
Err http://security.ubuntu.com vivid-security Release.gpg
  Não foi possível resolver 'security.ubuntu.com'
Err http://pt.archive.ubuntu.com vivid-backports Release.gpg
  Não foi possível resolver 'pt.archive.ubuntu.com'
A ler as listas de pacotes... Pronto
W: Falhou obter http://pt.archive.ubuntu.com/ubuntu/dists/vivid/InRelease

W: Falhou obter http://pt.archive.ubuntu.com/ubuntu/dists/vivid-updates/InRelease

W: Falhou obter http://pt.archive.ubuntu.com/ubuntu/dists/vivid-backports/InRelease

W: Falhou obter http://security.ubuntu.com/ubuntu/dists/vivid-security/InRelease

W: Falhou obter http://pt.archive.ubuntu.com/ubuntu/dists/vivid/Release.gpg  Não foi possível resolver 'pt.archive.ubuntu.com'

W: Falhou obter http://pt.archive.ubuntu.com/ubuntu/dists/vivid-updates/Release.gpg  Não foi possível resolver 'pt.archive.ubuntu.com'

W: Falhou obter http://pt.archive.ubuntu.com/ubuntu/dists/vivid-backports/Release.gpg  Não foi possível resolver 'pt.archive.ubuntu.com'

W: Falhou obter http://security.ubuntu.com/ubuntu/dists/vivid-security/Release.gpg  Não foi possível resolver 'security.ubuntu.com'

W: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.


podem ajudar me?obrigado

Anderson_Coelho

Pela saída do apt-get update, o seu arquivo source.list está apontando para os repositórios do Ubuntu 15.04. Tem certeza que é o 14.04 instalado aí?

Digite os seguintes comandos em um terminal e poste as saídas aqui:

cat /etc/issue

cat /etc/apt/sources.list

Andrezarro24

andre@andre:/$ cat /etc/issue
Ubuntu 14.04.3 LTS \n \l

andre@andre:/$ cat /etc/apt/sources.list
# deb http://pt.archive.ubuntu.com/ubuntu/ vivid main restricted
# deb http://pt.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
# deb http://security.ubuntu.com/ubuntu vivid-security main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://pt.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://pt.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid-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://pt.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid universe
deb http://pt.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid-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://pt.archive.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid multiverse
deb http://pt.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid-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.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://pt.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu vivid-security main restricted
deb-src http://security.ubuntu.com/ubuntu vivid-security main restricted
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
deb http://security.ubuntu.com/ubuntu vivid-security multiverse
deb-src http://security.ubuntu.com/ubuntu vivid-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 vivid partner
# deb-src http://archive.canonical.com/ubuntu vivid partner


estranho...sim é o 14.04

Andrezarro24

tentei alterar a source list agora e voltei a executar os comandos que referiu anteriormente:

andre@andre:/$ cat /etc/issue
Ubuntu 14.04.3 LTS \n \l

andre@andre:/$ cat /etc/apt/sources.list
# deb http://pt.archive.ubuntu.com/ubuntu/ vivid main restricted
# deb http://pt.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
# deb http://security.ubuntu.com/ubuntu vivid-security main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://pt.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://pt.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid-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://pt.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid universe
deb http://pt.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid-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://pt.archive.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid multiverse
deb http://pt.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid-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.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://pt.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu vivid-security main restricted
deb-src http://security.ubuntu.com/ubuntu vivid-security main restricted
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
deb http://security.ubuntu.com/ubuntu vivid-security multiverse
deb-src http://security.ubuntu.com/ubuntu vivid-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 vivid partner
# deb-src http://archive.canonical.com/ubuntu vivid partner

Anderson_Coelho

Pelo que eu vi, o seu sources.list está correta (embora eu tenha achado estranho), porém apontando para a versão 15.04. Então creio que os erros foram causados por problemas de conexão. Faça o seguinte, procure por "Programas e atualizações" no Dash, e mude a conexão para servidor principal, dê mais um update e veja se retorna algum erro.

Além disso, eu aconselho a consertar essa lista de repositórios aí. Ou seja, onde tem vivid (15.04), mude para trusty (14.04). É fácil fazer isso pelo Gedit usando a função localizar e substituir. Porém, dependendo o que você instalou ou atualizou usando os repositórios vivid, alguns programas talvez você terá que fazer um downgrade manual e pode ter coisa até deixando de funcionar. Não tenho certeza quanto à isso, só estou alertando mesmo. Porém acho essa mudança importante, pois se é para usar os repositórios do 15.04, o melhor que você faz é atualizar o sistema.

Andrezarro24

o problema é que eu nao tenho interface grafica, é tudo no command line. Alterei os repositorios para os que indiquei abaixo...
sera que me pode guiar a partir dai?

Anderson_Coelho

Para torcar para servidor principal, achei essa dica aqui:

https://avila.net.br/2014/06/19/apt-como-trocar-os-servidores-do-sources-list-via-linha-de-comando/

Só observe que você quer trocar de pt para us, então vai mudar um pouco o comando.

Adaptando essa dica, dá até para fazer a mudança de vivid para trusty também.

Andrezarro24

infelizmente nao resolveu o problema....isto esta a tirar-me do serio...

Anderson_Coelho

Rode os comandos:

sudo rm /var/lib/apt/lists/partial/*

sudo rm /var/lib/apt/lists/*

sudo apt-get clean

sudo apt-get update

Se o erro persistir, instale esse pacote deb:

https://launchpad.net/~webupd8team/+archive/ubuntu/y-ppa-manager/+files/launchpad-getkeys_0.3.3-1%7Ewebupd8%7E2_all.deb

Esse pacote é do seguinte PPA, se quiser adicionar:

https://launchpad.net/~webupd8team/+archive/ubuntu/y-ppa-manager

Depois rode os comandos:

sudo launchpad-getkeys

sudo apt-get update




paulinho1971

Olá,

Primeiro que se sua versão é o Ubuntu 14.04 Trusty sua sources.list está errada, outra coisa porque não tem interface gráfica ai? Quebrou? É o Ubuntu server?

a sources.list padrão para o seu 14.04 é:
#deb cdrom:[Kubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main multiverse restricted universe

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

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

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


Antes de continuar tentando lhe auxiliar companheiro precisamos de um pouco mais de informação de sua parte, como as que perguntei acima, principalmente o porque de você não ter uma parte gráfica?

T+

Tota

#10
Estas atrás de um firewall?

Pode ser este o problema, já que dificuldades em resolver nomes de sítios ativos nada teria em princípio uma causa e efeito em sources.list ou ambiente gráfico.

E mais uma abordagem a ser observada. (pela minha ótica, a primeira)

Andrezarro24

Citação de: paulinho1971 online 23 de Novembro de 2015, 18:39
Olá,

Primeiro que se sua versão é o Ubuntu 14.04 Trusty sua sources.list está errada, outra coisa porque não tem interface gráfica ai? Quebrou? É o Ubuntu server?

a sources.list padrão para o seu 14.04 é:
#deb cdrom:[Kubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main multiverse restricted universe

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

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

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


Antes de continuar tentando lhe auxiliar companheiro precisamos de um pouco mais de informação de sua parte, como as que perguntei acima, principalmente o porque de você não ter uma parte gráfica?

T+

Bom dia,

ok entao vou alterar a source list e depois vejo se resolveu.

sim, é o ubuntu server, dai estar a ter mais dificuldades..

cumprimentos