Hi! Вот столкнулся с ситуацией... apt-move которым я успешно пользовался чего-то перестала работать... во всяком случаее версии 4.1.21 и 4.1.22 ведут себя так. Более ранних версий я найти не смог ;-(
То есть, возьмем какой-нибудь не обновленный/не установленный пакет и сделаем такую вещь: - -- root:~# apt-get -d install ifupdown Reading Package Lists... Done Building Dependency Tree... Done 1 packages upgraded, 0 newly installed, 0 to remove and 36 not upgraded. Need to get 28.8kB of archives. After unpacking 0B will be used. Get:1 http://http.us.debian.org unstable/main ifupdown 0.6.4-4.3 [28.8kB] Fetched 28.8kB in 0s (34.0kB/s) Download complete and in download only mode root:~# apt-move move Moving files... Skipping files: Moving files: /var/cache/apt/archives/ifupdown_0.6.4-4.3_i386.deb All done, exiting. root:~# apt-get -d install ifupdown Reading Package Lists... Done Building Dependency Tree... Done 1 packages upgraded, 0 newly installed, 0 to remove and 36 not upgraded. Need to get 28.8kB of archives. After unpacking 0B will be used. Get:1 http://http.us.debian.org unstable/main ifupdown 0.6.4-4.3 [28.8kB] Fetched 28.8kB in 0s (156kB/s) Download complete and in download only mode root:~# - -- То есть вмесо того того, что-бы переместить файл из cache директории в local mirror - оно его просто теряет ;-( Более детальное изследование показало, что оно не совсем правильно вычисляет приемную директорию local mirror-а ;-( То есть есть такой вспомагательный кусок apt-move: - --[ /usr/share/apt-move/move3 ]-- - #!/usr/bin/perl ... sub move { (-l $_[0] || !link($_[0], $_[1])) && system("cp $_[0] $_[1]") and return 0; chmod(0644, $_[1]); print "$_[0]\n"; return 1; } ... - -- Если дописать, в эту процедуру первую строчку: print STDERR "Move ", $_[0], " to ", $_[1], "\n"; то получаем: - -- root:~# apt-move move Moving files... Skipping files: Moving files: /var/cache/apt/archives/ifupdown_0.6.4-4.3_i386.deb Move /var/cache/apt/archives/ifupdown_0.6.4-4.3_i386.deb to 0/dists/unstable/main/binary-/base/ifupdown_0.6.4-4.3.deb All done, exiting. root:~# - -- То есть такое чуство, что ошибка происходит годе-то на стыке /usr/bin/apt-move и /usr/share/apt-move/move1 но в AWK я не силен, так что не могу точно сказать что и годе идет не правильно. Мой конфиг для apt-move прилагается... -- With Best, | http://www.excom.spb.su/~andrey Andrey Chernomyrdin | mailto:[EMAIL PROTECTED]
# Configuration file for the apt-move script. # # You should modify the following configuration to suit your system. # See the apt-move(8) manpage for information about these settings. # # The defaults for this file are simply the settings I currently use. # Configuration for apt-move script -------------------------------------- # The sites in ``/etc/apt/sources.list'' that you wish to mirror. APTSITES="http.us.debian.org non-us.debian.org" # The architectures that your site contain, separated with spaces. ARCHS="alpha arm hurd-i386 i386 m68k powerpc sparc" # The absolute path to your debian directory (top of your local mirror). # This MUST appear as the first entry of your sources.list if you use # sync or mirror. LOCALDIR=/home/ftp/pub/linux/debian # The distribution you want to mirror (see the apt-move(8) manpage for # details) DIST=unstable # The package types you want to mirror. # Possible values are: binary, source, and both (use only one). PKGTYPE=binary # The full (absolute) path to your local cache of package files. The default # will work for the apt-get packages, unless you've reconfigured apt. FILECACHE=/var/cache/apt/archives # The full (absolute) path to your local cache of Packages files. The # default will work for the apt-get Packages, unless you've reconfigured apt. LISTSTATE=/var/lib/apt/lists # LISTSTATE=/var/state/apt/lists # Do you want apt-move to delete obsolete files from your mirror? (yes/no) DELETE=yes # Maximum percentage of files to delete during a normal run. MAXDELETE=20 # Only move packages if its version matches "exactly" with the master files. # (yes/no) STRICTMOVE=no # End Configuration ------------------------------------------------------