erro na actualização do ubuntu 16.04

Iniciado por José Leitão, 25 de Outubro de 2016, 17:53

tópico anterior - próximo tópico

José Leitão

boa noite
tenho tentado fazer a actualização do ubuntu 16.04 a partir do "acerca deste computador" mas depois de carregar na tecla para actualizar aparece-me sempre esta mensagem:

"falha ao transferir as informações do repositório
verifique a sua ligação à internet"

o que devo fazer?
obrigado desde já

creto

Olá,

A primeira coisa é saber se você tem "proxy" na sua rede.

Claro, se sua conexão esta ativa como pede o erro e então abra um terminal e comande:
sudo apt update

Copie a saída do terminal e cole aqui.

T+
A vida, é feito andar de bicicleta, se parar, você cai! (Gabriel Contino)
Blog do Paulo Corrêa Creto

José Leitão

Ign:1 http://extras.ubuntu.com/ubuntu xenial InRelease                         
Atingido:2 http://nl3.archive.ubuntu.com/ubuntu xenial InRelease               
Err:3 http://extras.ubuntu.com/ubuntu xenial Release
  404  Not Found [IP: 91.189.92.152 80]
Obter:4 http://nl3.archive.ubuntu.com/ubuntu xenial-updates InRelease [95,7 kB]
Obter:5 http://nl3.archive.ubuntu.com/ubuntu xenial-backports InRelease [92,2 kB]
Obter:6 http://nl3.archive.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]
Obter:7 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/main Sources [200 kB]
Obter:8 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [106 kB]
Obter:9 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [407 kB]
Obter:10 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [158 kB]
Obter:11 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [352 kB]
Obter:12 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [128 kB]
A ler as listas de pacotes... Pronto                                           
E: The repository 'http://extras.ubuntu.com/ubuntu xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

José Leitão

Citação de: José Leitão online 26 de Outubro de 2016, 13:08
Ign:1 http://extras.ubuntu.com/ubuntu xenial InRelease                         
Atingido:2 http://nl3.archive.ubuntu.com/ubuntu xenial InRelease               
Err:3 http://extras.ubuntu.com/ubuntu xenial Release
  404  Not Found [IP: 91.189.92.152 80]
Obter:4 http://nl3.archive.ubuntu.com/ubuntu xenial-updates InRelease [95,7 kB]
Obter:5 http://nl3.archive.ubuntu.com/ubuntu xenial-backports InRelease [92,2 kB]
Obter:6 http://nl3.archive.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]
Obter:7 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/main Sources [200 kB]
Obter:8 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [106 kB]
Obter:9 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [407 kB]
Obter:10 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [158 kB]
Obter:11 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [352 kB]
Obter:12 http://nl3.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [128 kB]
A ler as listas de pacotes... Pronto                                           
E: The repository 'http://extras.ubuntu.com/ubuntu xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

obrigado

creto

#4
HUmmm, faça o seguinte companheiro poste também aqui a saída do comando abaixo:
cat /etc/apt/sources.list

A miha para comparação:
creto1@creto1-desktop:~$ cat /etc/apt/sources.list
# deb cdrom:[Kubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)]/ 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
creto1@creto1-desktop:~$


Veja no final que tenho o repositório extras.ubuntu.com habilitado porém se você acessar o repo irá notar que o seu ubuntu 16.04 (Xenial) não tem esse repositório, vaja em: http://extras.ubuntu.com/ubuntu/dists/

Ou clique na imagem para ver

Tentando adivinhar aqui uma possível resolução é só editar o arquivo sources.list e comantar a linha referente ao repositório

Se você usa Unity siga a sequência:
- Abra o terminal e comande:
sudo gedit /etc/aptsources.list
- Lá procure pela linha e comanete na frente da linha com # salve e feche o editor não o terminal

Se usa kde, também no terminal:
sudo kwrite /etc/apt/sources.list
- Faça o mesmo procedimento comentar a linha, salve e feche o editor não o terminal

Depois dê um sudo apt update

E veja se desaparecem os erros

Boa sorte!

T+
A vida, é feito andar de bicicleta, se parar, você cai! (Gabriel Contino)
Blog do Paulo Corrêa Creto

José Leitão

bom dia
o comando deu-me isto

jose@jose-A6JC:~$ cat/etc/apt/sources.list
bash: cat/etc/apt/sources.list: Ficheiro ou directoria inexistente
jose@jose-A6JC:~$ ^C
jose@jose-A6JC:~$

Tota

Amigo,

Entre "cat" e "/etc" existe um espaço em branco

cat/etc/apt/sources.list é diferente de

cat /etc/apt/sources.list

Já  que cat é  um comando, e /etc/apt/sources.list é  o local onde o arquivo sources.list se encontra.

José Leitão


José Leitão

O comando deu-me isto.

jose@jose-A6JC:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release i386 (20160719)]/ xenial main restricted
# deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta i386 (20150805)]/ trusty main restricted

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

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

deb http://nl3.archive.ubuntu.com/ubuntu/ xenial-security main restricted
deb-src http://nl3.archive.ubuntu.com/ubuntu/ xenial-security main restricted
deb http://nl3.archive.ubuntu.com/ubuntu/ xenial-security universe
deb-src http://nl3.archive.ubuntu.com/ubuntu/ xenial-security universe
deb http://nl3.archive.ubuntu.com/ubuntu/ xenial-security multiverse
deb-src http://nl3.archive.ubuntu.com/ubuntu/ xenial-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 xenial main
deb-src http://extras.ubuntu.com/ubuntu xenial main

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

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

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb-src http://pt.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://pt.archive.ubuntu.com/ubuntu/ xenial-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-src http://pt.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://pt.archive.ubuntu.com/ubuntu/ xenial-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-src http://pt.archive.ubuntu.com/ubuntu/ xenial-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 xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
jose@jose-A6JC:~$

Obrigado

creto

Vou tentar mastigar ao máximo para vocẽ, então é só copiar daqui e colar no seu terminal e editor de textos ok?!!

No terminal:
sudo gedit /etc/apt/sources.list

Cole o comando no seu terminal dê enter e mais usa senha.

Agora copie essa sources.list abaixo e cole no seu editor de texto depois de "Deletar" a antiga
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://nl3.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://nl3.archive.ubuntu.com/ubuntu/ xenial main restricted

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

deb http://nl3.archive.ubuntu.com/ubuntu/ xenial-security main restricted
deb-src http://nl3.archive.ubuntu.com/ubuntu/ xenial-security main restricted
deb http://nl3.archive.ubuntu.com/ubuntu/ xenial-security universe
deb-src http://nl3.archive.ubuntu.com/ubuntu/ xenial-security universe
deb http://nl3.archive.ubuntu.com/ubuntu/ xenial-security multiverse
deb-src http://nl3.archive.ubuntu.com/ubuntu/ xenial-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


Depois de colar no seu Gedit, clique em salvar, feche o gedit e vvolte ao terminal e copie e cole lá:
sudo apt update ; sudo apt full-upgrade

E volte a dar um feedback ao fórum

Boa sorte!

T+
A vida, é feito andar de bicicleta, se parar, você cai! (Gabriel Contino)
Blog do Paulo Corrêa Creto

José Leitão

Boa tarde
Fiz tudo conforme descreveu e o comando já me diz que o sistema está actualizado. Penso que o problema ficou resolvido.
Muito obrigado pela atenção