"apt-get download" fails if /var/cache/apt/archives/partial is not accessible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
APT |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 15.04 dev with apt 1.0.9.3ubuntu1 and if /var/cache/
sworddragon@
sworddragon@
E: Archives directory /var/cache/
sworddragon@
Get:1 http://
Fetched 936 kB in 2s (392 kB/s)
sworddragon@
E: Archives directory /var/cache/
Changed in apt: | |
status: | Unknown → Fix Released |
tags: | added: vivid |
After another test it seems that "apt-get download" doesn't use an advantage from the caches (partial and non-partial) as this example shows:
root@ubuntu:~/tmp# apt-get install adwaita- icon-theme- full --reinstall archive. ubuntu. com/ubuntu/ vivid/main adwaita- icon-theme- full all 3.14.0-2ubuntu7 [8861 kB] icon-theme- full 4894 kB/8861 kB 55%]^C icon-theme- full archive. ubuntu. com/ubuntu/ vivid/main adwaita- icon-theme- full all 3.14.0-2ubuntu7 [8861 kB] icon-theme- full 178 kB/8861 kB 2%]^C icon-theme- full --reinstall archive. ubuntu. com/ubuntu/ vivid/main adwaita- icon-theme- full all 3.14.0-2ubuntu7 [8861 kB] icon-theme- full_3. 14.0-2ubuntu7_ all.deb ... icon-theme- full (3.14.0-2ubuntu7) over (3.14.0-2ubuntu7) ... icon-theme- full archive. ubuntu. com/ubuntu/ vivid/main adwaita- icon-theme- full all 3.14.0-2ubuntu7 [8861 kB] icon-theme- full 659 kB/8861 kB 7%]^C
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 8861 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
55% [1 adwaita-
root@ubuntu:~/tmp# apt-get download adwaita-
Get:1 http://
2% [1 adwaita-
root@ubuntu:~/tmp# apt-get install adwaita-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 8861 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 3376 kB in 3s (1029 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 92319 files and directories currently installed.)
Preparing to unpack .../adwaita-
Unpacking adwaita-
root@ubuntu:~/tmp# apt-get download adwaita-
Get:1 http://
7% [1 adwaita-
I'm wondering why "apt-get download" does then depend on the cache. Or maybe "apt-get download" could be enhanced to use advantages of the caches and fallback to use no cache if something went wrong.