Terminal não atualiza Debian Stretch

1. Terminal não atualiza Debian Stretch

Lucas Silva
ubuntukid

(usa Debian)

Enviado em 05/11/2018 - 15:09h

Olá,

Há dois dias em que o terminal em todas as tentativas de atualizar, trava. Por exemplo:
 $ sudo aptitude/apt-get update

Obter:29 http://security-cdn.debian.org/debian-security">http://security-cdn.debian.org/debian-security stretch/updates/main i386 Packages [456 kB]
Obter:30 http://security-cdn.debian.org/debian-security">http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [454 kB]
Obter:31 http://security-cdn.debian.org/debian-security">http://security-cdn.debian.org/debian-security stretch/updates/main Translation-en [198 kB]
Obter:32 http://security-cdn.debian.org stretch/updates/main Sources [184 kB]
Obter:33 http://security-cdn.debian.org stretch/updates/main i386 Packages [456 kB]
Obter:34 http://security-cdn.debian.org stretch/updates/main amd64 Packages [454 kB]
Obter:35 http://security-cdn.debian.org stretch/updates/main Translation-en [198 kB]
0% [Trabalhando]
0% [Trabalhando]

Tipo, obtém os dados de alguns repositórios e não sai de 0% noutros. Em outras ocasiões já esteve em 100% e ficou parado. O que pode ser?


  


2. Re: Terminal não atualiza Debian Stretch

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 05/11/2018 - 15:17h

bom na dúvida , posta ai o seu sources.list


3. Re: Terminal não atualiza Debian Stretch

Lucas Silva
ubuntukid

(usa Debian)

Enviado em 05/11/2018 - 15:59h

danniel-lara escreveu:

bom na dúvida , posta ai o seu sources.list


Ta aí:

 
#

# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714$

#deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-$

deb http://debian.c3sl.ufpr.br/debian/ stretch main
deb-src http://debian.c3sl.ufpr.br/debian/ stretch main

deb http://security.debian.org/debian-security">http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security">http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile'
deb http://debian.c3sl.ufpr.br/debian/ stretch-updates main
deb-src http://debian.c3sl.ufpr.br/debian/ stretch-updates main

deb http://ftp.debian.org/debian stretch-backports main

deb http://ftp.br.debian.org/debian stretch main contrib non-free

deb http://ftp.br.debian.org/debian stretch-updates main contrib non-free
deb-src http://ftp.br.debian.org/debian stretch-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free

deb https://deb.torproject.org/torproject.org stretch main
deb-src https://deb.torproject.org/torproject.org stretch main

### Tor Project.
### Chave GPG: gpg --keyserver hkp://subkeys.pgp.net --recv-keys 219EC810 && gp$
deb http://deb.torproject.org/torproject.org stretch main




4. Re: Terminal não atualiza Debian Stretch

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 05/11/2018 - 16:09h

comenta essas linhas



deb https://deb.torproject.org/torproject.org stretch main
deb-src https://deb.torproject.org/torproject.org stretch main

### Tor Project.
### Chave GPG: gpg --keyserver hkp://subkeys.pgp.net --recv-keys 219EC810 && gp$
deb http://deb.torproject.org/torproject.org stretch main



e executa novamente


5. Re: Terminal não atualiza Debian Stretch

Lucas Silva
ubuntukid

(usa Debian)

Enviado em 05/11/2018 - 16:13h

danniel-lara escreveu:

comenta essas linhas



deb https://deb.torproject.org/torproject.org stretch main
deb-src https://deb.torproject.org/torproject.org stretch main

### Tor Project.
### Chave GPG: gpg --keyserver hkp://subkeys.pgp.net --recv-keys 219EC810 && gp$
deb http://deb.torproject.org/torproject.org stretch main



e executa novamente



O resultado é
 Lendo listas de pacotes... Pronto
E: Não foi possível obter trava /var/lib/apt/lists/lock - open (11: Recurso temporariamente indisponível)
E: Impossível criar acesso exclusivo ao directório /var/lib/apt/lists/
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list:37
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:33
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:33
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:33
W: Target Translations (main/i18n/Translation-pt_BR) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:33
W: Target Translations (main/i18n/Translation-pt) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:33
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:33
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:36
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:36
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:36
W: Target Translations (main/i18n/Translation-pt_BR) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:36
W: Target Translations (main/i18n/Translation-pt) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:36
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:36
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:41
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:41
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:41
W: Target Translations (main/i18n/Translation-pt_BR) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:41
W: Target Translations (main/i18n/Translation-pt) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:41
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list:41




6. Re: Terminal não atualiza Debian Stretch

7. Re: Terminal não atualiza Debian Stretch

Lucas Silva
ubuntukid

(usa Debian)

Enviado em 05/11/2018 - 16:24h



Copiei exatamente essa que vc me mandou. E deu isso aqui

 $ 
E: Malformed entry 10 in list file /etc/apt/sources.list (URI)
E: Malformed entry 10 in list file /etc/apt/sources.list (URI)
E: A lista de fontes não pode ser lida.
E: Malformed entry 10 in list file /etc/apt/sources.list (URI)
E: A lista de fontes não pode ser lida.
E: Malformed entry 10 in list file /etc/apt/sources.list (URI)
E: Não foi possível ler a lista de fontes de pacote






8. Re: Terminal não atualiza Debian Stretch

9. Re: Terminal não atualiza Debian Stretch

Marcelo Oliver
msoliver

(usa Debian)

Enviado em 05/11/2018 - 19:44h

ubuntukid escreveu:

Olá,

Há dois dias em que o terminal em todas as tentativas de atualizar, trava. Por exemplo:
 $ sudo aptitude/apt-get update

Obter:29 http://security-cdn.debian.org/debian-security">http://security-cdn.debian.org/debian-security stretch/updates/main i386 Packages [456 kB]
Obter:30 http://security-cdn.debian.org/debian-security">http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [454 kB]
Obter:31 http://security-cdn.debian.org/debian-security">http://security-cdn.debian.org/debian-security stretch/updates/main Translation-en [198 kB]
Obter:32 http://security-cdn.debian.org stretch/updates/main Sources [184 kB]
Obter:33 http://security-cdn.debian.org stretch/updates/main i386 Packages [456 kB]
Obter:34 http://security-cdn.debian.org stretch/updates/main amd64 Packages [454 kB]
Obter:35 http://security-cdn.debian.org stretch/updates/main Translation-en [198 kB]
0% [Trabalhando]
0% [Trabalhando]

Tipo, obtém os dados de alguns repositórios e não sai de 0% noutros. Em outras ocasiões já esteve em 100% e ficou parado. O que pode ser?


Boa noite UbuntuKid.
Para efeito de testes, deixe somente os repositórios abaixo:
deb http://ftp.br.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb http://ftp.br.debian.org/debian/ stretch-updates main contrib non-free

e rode o :
sudo apt-get updade

Marcelo Oliver


10. Re: Terminal não atualiza Debian Stretch

Ryuk Shinigami
Ryuk

(usa Nenhuma)

Enviado em 05/11/2018 - 20:54h

Sua sources.list está com referências redundantes, apague tudo e deixe assim:

sudo nano /etc/apt/sources.list
 
## Main
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

## Updates
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

## Security
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main

## Backports
deb http://http.debian.net/debian jessie-backports main
deb-src http://deb.debian.org/debian/ stretch-updates main

### Tor Project.
### Chave GPG: gpg --keyserver hkp://subkeys.pgp.net --recv-keys 219EC810 && gp$
#deb http://deb.torproject.org/torproject.org stretch main

sudo apt clean
sudo apt update




11. Re: Terminal não atualiza Debian Stretch

Odimar Deusdara Rodrigues
deusdara

(usa Slackware)

Enviado em 05/11/2018 - 21:17h

Olá
Esta é a Sources.list do Debian Stable

Debian Sources List Generator

https://debgen.simplylinux.ch/index.php?generate

Attention!
Before you start install these packages first:

apt install curl wget apt-transport-https dirmngr

Sources List

#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#

###### Debian Main Repos
deb http://ftp.br.debian.org/debian/ stable main contrib non-free
deb-src http://ftp.br.debian.org/debian/ stable main contrib non-free

deb http://ftp.br.debian.org/debian/ stable-updates main contrib non-free
deb-src http://ftp.br.debian.org/debian/ stable-updates main contrib non-free

deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main

deb http://ftp.debian.org/debian stretch-backports main
deb-src http://ftp.debian.org/debian stretch-backports main

[Mobo: Asus B85M-E/BR ][CPU: Intel Core i7 4790@3.6 GHz][RAM2x4 GB 1333 MHz DDR3 Kingston][GPU: nVidia GTX 570][HD:Seagate 1,0 TB SATA II][Fonte: Corsair CX 750 W ][Slackware Current]


12. Re: Terminal não atualiza Debian Stretch

Alexandre Martins da Cunha
alexandremc

(usa Debian)

Enviado em 06/11/2018 - 03:46h

Vamos por partes:

Esquece o CDN, sempre da erro.

Usa o http://security.debian.org

depois como root entra no diretório /etc/apt/source.list.d

Tem algum arquivo lá com endereço repetido no source.list


Abraços






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts