Erro Apt-get: o tempo limite foi atingido [duplicado]

0

Ontem, percebi que sempre que eu executo o comando apt-get update , tudo parece funcionar até a última etapa.

Eu recebo a saída usual:

Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:2 http://linux.dropbox.com/ubuntu xenial InRelease                                                              
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease                                                     
Ign:4 http://linux.dropbox.com/ubuntu wily InRelease                                                                
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease                                                          
Hit:6 http://apt.insynchq.com/ubuntu xenial InRelease                                                               
Hit:7 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu xenial InRelease  
Hit:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease                              
Get:9 http://linux.dropbox.com/ubuntu xenial Release [6,600 B]
...

No entanto, no final e depois que eu chegar:

Fetched X kB in Ys (69.7 kB/s)

Há um longo atraso após o qual recebo

Error: Timeout was reached
Reading package lists... Done

O que está causando isso? Como posso resolver este problema?

Distributor ID: Ubuntu
Description:    Ubuntu 16.04 LTS
Release:    16.04
Codename:   xenial
    
por smac89 20.05.2016 / 15:05

1 resposta

-1

A correção para mim foi matar appstreamcli . Eu fiz o seguinte:

> ps -aux | grep appstream
root      2351  0.0  0.0  21296   956 pts/4    S+   10:03   0:00 grep --color=auto appstream
root     24008  0.0  0.0   4508   712 ?        SN   May19   0:00 sh -c if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi
root     24010 37.1  0.2 144404 38104 ?        RN   May19 281:49 appstreamcli refresh
> kill -15 24010

Finalmente, depois de executar apt-get update , a saída é agora

Fetched 294 kB in 1s (162 kB/s)                                  
Reading package lists... Done

Como esperado. Obrigado a todos!

    
por smac89 20.05.2016 / 16:06