Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro no install do Java

Deu o erro depois de eu tentar o install e tentar resolver... "apt-get update"

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jre_8u131-b11-0ubuntu1.16.04.2_amd64.deb  404  Not Found [IP: 54.167.235.165 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ubuntu@ip-172-31-27-65:~$ --fix-missing
--fix-missing: command not found
ubuntu@ip-172-31-27-65:~$ --fix-missing?
--fix-missing?: command not found
ubuntu@ip-172-31-27-65:~$ apt-get update
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
ubuntu@ip-172-31-27-65:~$ apt-get update
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
ubuntu@ip-172-31-27-65:~$
2 respostas
solução!

Boa noite, você esta rodando o comando como sudo?

sudo su
apt-get update

ou direto

sudo apt-get update

Avisa se deu certo.. abs

Foi - Obrigado Thiago Bernardo Santos!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software