problemas de atualização (sudo apt-get update) [resolvido]

Iniciado por leandrocardoso, 14 de Setembro de 2017, 14:49

tópico anterior - próximo tópico

leandrocardoso

pessoal,

estou com uma mensagem de erro ao final do "sudo apt-get update" e não consigo resolver (ubuntu 16.04). eis a mensagem:

W:The repository 'http://archive.ubuntu.com/ubuntu/raring main Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8 ) manpage for repository creation and user configuration details., E:Failed to fetch http://archive.ubuntu.com/ubuntu/raring/dists/main/Release/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80], E:Some index files failed to download. They have been ignored, or old ones used instead.

já tentei remover o repositório "http://archive.ubuntu.com/ubuntu/raring main Release", mas não consigo; também não consigo resolver a falha E: ao final da mensagem.

alguém pode me ajudar?

galactus

 leandrocardoso, eu fiquei sem entender agora. Você disse que usa o Ubuntu 16.04 (Xenial Xerxus), mas os erros de repositórios que você colocou são da versão 13.04 (Raring Ringtail) já há muito sem suporte ( acabou em Janeiro de 2014)!

Então precisamos saber que versão você está realmente executando aí!

Você por um acaso vem atualizando de versões do Ubuntu desde a 13.04, é isso?  Sem instalações do zero?


No terminal, favor executar os comandos, copie e cole os resultados deles aqui pra gente ver:


lsb_release -a

cat /etc/*release

uname -a

grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*


De que maneira você tentou remover os repositórios com erros?


BigLinux no Notebook  / Várias Distros Virtualizadas no PC.

leandrocardoso

galactus,

eu uso o 16.04 mesmo, mas precisei instalar umas bibliotecas antigas para rodar uns programas específicos pro meu trabalho, já que eles não são atualizados há anos. minha ideia era instalar e, depois de instalados, remover da lista de atualizações, mas não consegui isso.

usei o seguinte comando pra tentar removê-lo: sudo apt-add-repository http://archive.ubuntu.com/ubuntu/raring\ main\ Release --remove

quanto aos resultados dos comandos, vou colocar só do último, já que os outros eram para verificar a versão do SO:


~$ grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*
/etc/apt/sources.list:# deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
/etc/apt/sources.list:# newer versions of the distribution.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial main restricted
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu xenial universe multiverse main restricted #Added by software-properties
/etc/apt/sources.list:# deb-src http://br.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:## Major bug fix updates produced after the final release of the
/etc/apt/sources.list:## distribution.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu xenial-updates universe multiverse main restricted #Added by software-properties
/etc/apt/sources.list:# deb-src http://br.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
/etc/apt/sources.list:## team. Also, please note that software in universe WILL NOT receive any
/etc/apt/sources.list:## review or updates from the Ubuntu security team.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial universe
/etc/apt/sources.list:# deb-src http://br.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-updates universe
/etc/apt/sources.list:# deb-src http://br.archive.ubuntu.com/ubuntu/ xenial-updates universe
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
/etc/apt/sources.list:## team, and may not be under a free licence. Please satisfy yourself as to
/etc/apt/sources.list:## your rights to use the software. Also, please note that software in
/etc/apt/sources.list:## multiverse WILL NOT receive any review or updates from the Ubuntu
/etc/apt/sources.list:## security team.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial multiverse
/etc/apt/sources.list:# deb-src http://br.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
/etc/apt/sources.list:# deb-src http://br.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository may not have been tested as
/etc/apt/sources.list:## extensively as that contained in the main release, although it includes
/etc/apt/sources.list:## newer versions of some applications which may provide useful features.
/etc/apt/sources.list:## Also, please note that software in backports WILL NOT receive any review
/etc/apt/sources.list:## or updates from the Ubuntu security team.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse #Added by software-properties
/etc/apt/sources.list:# deb-src http://br.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:## Uncomment the following two lines to add software from Canonical's
/etc/apt/sources.list:## 'partner' repository.
/etc/apt/sources.list:## This software is not part of Ubuntu, but is offered by Canonical and the
/etc/apt/sources.list:## respective vendors as a service to Ubuntu users.
/etc/apt/sources.list:deb http://archive.canonical.com/ubuntu xenial partner
/etc/apt/sources.list:deb-src http://archive.canonical.com/ubuntu xenial partner
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu xenial-security universe multiverse main restricted #Added by software-properties
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/raring main Release universe multiverse restricted
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu/raring main restricted universe multiverse
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu/raring main Release
/etc/apt/sources.list.d/dropbox.list:deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu wily main
/etc/apt/sources.list.d/dropbox.list.save:deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu wily main
/etc/apt/sources.list.d/google-chrome.list:### THIS FILE IS AUTOMATICALLY CONFIGURED ###
/etc/apt/sources.list.d/google-chrome.list:# You may comment out this entry, but any other modifications may be lost.
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/google-chrome.list.save:### THIS FILE IS AUTOMATICALLY CONFIGURED ###
/etc/apt/sources.list.d/google-chrome.list.save:# You may comment out this entry, but any other modifications may be lost.
/etc/apt/sources.list.d/google-chrome.list.save:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/megasync.list:deb https://mega.nz/linux/MEGAsync/xUbuntu_16.04/ ./
/etc/apt/sources.list.d/megasync.list.save:deb https://mega.nz/linux/MEGAsync/xUbuntu_16.04/ ./
/etc/apt/sources.list.d/opera-stable.list:# This file makes sure that Opera Browser is kept up-to-date
/etc/apt/sources.list.d/opera-stable.list:# as part of regular system upgrades
/etc/apt/sources.list.d/opera-stable.list:
/etc/apt/sources.list.d/opera-stable.list:deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
/etc/apt/sources.list.d/opera-stable.list.save:# This file makes sure that Opera Browser is kept up-to-date
/etc/apt/sources.list.d/opera-stable.list.save:# as part of regular system upgrades
/etc/apt/sources.list.d/opera-stable.list.save:
/etc/apt/sources.list.d/opera-stable.list.save:deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
/etc/apt/sources.list.d/skype-stable.list:deb [arch=amd64] https://repo.skype.com/deb stable main
/etc/apt/sources.list.d/skype-stable.list.save:deb [arch=amd64] https://repo.skype.com/deb stable main
/etc/apt/sources.list.d/spotify.list:deb http://repository.spotify.com stable non-free
/etc/apt/sources.list.d/spotify.list.save:deb http://repository.spotify.com stable non-free
/etc/apt/sources.list.d/xenial-partner.list:# channel for the xenial (16.04) partner channel
/etc/apt/sources.list.d/xenial-partner.list:#
/etc/apt/sources.list.d/xenial-partner.list:#:description:This channel contains the partner software for xenial
/etc/apt/sources.list.d/xenial-partner.list:# deb http://archive.canonical.com/ubuntu xenial partner
/etc/apt/sources.list.d/xenial-partner.list.save:# channel for the xenial (16.04) partner channel
/etc/apt/sources.list.d/xenial-partner.list.save:#
/etc/apt/sources.list.d/xenial-partner.list.save:#:description:This channel contains the partner software for xenial
/etc/apt/sources.list.d/xenial-partner.list.save:# deb http://archive.canonical.com/ubuntu xenial partner

druidaobelix

Então, @leandrocardoso,

Edite diretamente o arquivo:

sudo gedit /etc/apt/sources.list

E nele apague essas três linhas:

deb http://archive.ubuntu.com/ubuntu/raring main Release universe multiverse restricted
# deb-src http://archive.ubuntu.com/ubuntu/raring main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/raring main Release

Salvar e sair

Faça novamente:

sudo apt update
www.arredondar.org.br
Vencedor Desafio de Impacto Social Google 2016!
Você também pode participar e fazer a diferença.

leandrocardoso

problema resolvido, caro @druidaobelix!

obrigado a você e ao @galactus!