Заставить apt продолжать скачивать частично скачаный пакет.
Hi, All.
При
# aptitude install some_package
происходит обрыв связи (dial-up). Естественно, aptitude завершается с
ошибкой.
Смотрю в /var/cache/apt/archives/partial/,
там валяется частично скачаный пакет.
Возобновляю связь, опять говорю
# aptitude install some_package
но, вопреки моим ожиданиям, скачивание начинается заново, а не с 50%,
например, которые были до обрыва.
То же и с apt-get, хотя, я помню, какая-то старее версия докачивала
пакет.
Прокурил доку, apt-HOWTO, мануалы по apt, но with no result...
Даже, представить не могу, по каким ключевым словам гуглить.
Что я мог пропустить?
$ aptitude --version
aptitude 0.4.1 compiled at Dec 9 2005 18:34:43
Compiler: g++ 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
NCurses version: 5.5
libsigc++ version: 2.0.16
$ apt-get --version
apt 0.6.44.1 for linux i386 compiled on May 16 2006 21:54:48
Supported modules:
*Ver: Standard .deb
*Pkg: Debian dpkg interface (Priority 30)
S.L: 'deb' Standard Debian binary tree
S.L: 'deb-src' Standard Debian source tree
Idx: Debian Source Index
Idx: Debian Package Index
Idx: Debian dpkg status file
$ dpkg --version
Debian GNU/Linux `dpkg' package management program version 1.10.18 (i386).
This is free software; see the GNU General Public Licence version 2 or
later for copying conditions. There is NO warranty.
See dpkg --licence for copyright and license details.
$ cat /etc/apt/apt.conf
//DPkg::options {"--force-overwrite";};
Apt {
// Ignore-Hold "true";
Default-Release "testing";
Cache-Limit 100000000;
Architecture "i386";
Get {
Arch-Only "true";
Only-Source "true";
Compile "true";
Show-Versions "true";
Purge;
Diff-Only "true";
// Tar-Only "true";
};//get
};//apt
Aptitude {
CmdLine {
Package-Display-Width "";
Always-Prompt "true";
Show-Versions "true";
};//CmdLine
UI {
Advance-On-Action "true";
Minibuf-Prompts "true";
Prompt-On-Exit "true";
};//UI
Recommends-Important "false";
Keep-Suggests "false";
};//aptitude
$ cat /etc/apt/apt.conf.d/70debconf
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
$ cat /etc/debian_version
testing/unstable
Но реально, страшная смесь из ветвей stable и testing, а также, немного
из unstable.
====
Роман
Reply to: