LINUX.ORG.RU

[apt] А почему иногда не работает --continue?


0

0

На некоторых пакетах/репозитариях докачивается, а на других — нет. Вот пример:

~ $ sudo aptitude upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
Resolving dependencies...
Resolving dependencies...
The following NEW packages will be installed:
  linux-headers-2.6.32-23{a} linux-headers-2.6.32-23-generic{a} 
  linux-image-2.6.32-23-generic{a} 
The following packages will be upgraded:
  gedit gedit-common libgtksourceview2.0-0 libgtksourceview2.0-common 
  linux-firmware linux-generic linux-headers-generic linux-image-generic 
  linux-libc-dev shotwell sudo 
11 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 54.4MB/58.1MB of archives. After unpacking 217MB will be used.
Do you want to continue? [Y/n/?] 
Writing extended state information... Done
Get:1 http://ru.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-image-2.6.32-23-generic 2.6.32-23.37 [31.4MB]
5% [1 linux-image-2.6.32-23-generic 2952084/31.4MB 9%]        33.2kB/s 25min 48s^C
.

~ $ sudo aptitude upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
Resolving dependencies...
Resolving dependencies...
The following NEW packages will be installed:
  linux-headers-2.6.32-23{a} linux-headers-2.6.32-23-generic{a} 
  linux-image-2.6.32-23-generic{a} 
The following packages will be upgraded:
  gedit gedit-common libgtksourceview2.0-0 libgtksourceview2.0-common 
  linux-firmware linux-generic linux-headers-generic linux-image-generic 
  linux-libc-dev shotwell sudo 
11 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 54.4MB/58.1MB of archives. After unpacking 217MB will be used.
Do you want to continue? [Y/n/?] 
Writing extended state information... Done
Get:1 http://ru.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-image-2.6.32-23-generic 2.6.32-23.37 [31.4MB]
0% [1 linux-image-2.6.32-23-generic 63582/31.4MB 0%]^C
.

Забавно, недокачиваются только пакеты с серверов, расположеных в тоталитарной россии. Поставил us-репы — все докачивается.

RealSiberianMan ()
Ответ на: комментарий от RealSiberianMan

ru.archive.ubuntu.com - зеркало на яндексе. А ещё оно любит тормозить.

AITap ★★★★★ ()
Ответ на: комментарий от RealSiberianMan

А есть-ли для apt опция, аналогичная

--read-timeout=seconds
           Set the read (and write) timeout to seconds seconds. The 
           time" of this timeout refers to idle time: if, at any point 
           in the download, no data is received for more than the 
           specified number of seconds, reading fails and the download 
           is restarted.
RealSiberianMan ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.