apt-move skips some files and I don't know the reason

Asked by Jorge Suárez de Lis

Apt-move refuses to move some files to my repository. I've followed the step described on https://bugs.launchpad.net/ubuntu/+source/apt-move/+bug/425344/comments/2 so universe/multiverse/restricted packages get moved, but the problem persists with some packages (see output below).

Other packages from the same repository, as nvidia-current does not suffer from this problem (see the output below from the apt Packages file for some affected files, and also for the unaffected nvidia-current).

--8<--

# apt-move movefile '/var/cache/apt/archives/*.deb'
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.

Moving files...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LC_CTYPE = "C",
 LC_COLLATE = "C",
 LC_NUMERIC = "C",
 LANG = "es_ES.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LC_CTYPE = "C",
 LC_COLLATE = "C",
 LC_NUMERIC = "C",
 LANG = "es_ES.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Skipping files:
/var/cache/apt/archives/ttf-mscorefonts-installer_3.2ubuntu0.1_all.deb
/var/cache/apt/archives/nvidia-common_0.2.23_amd64.deb
/var/cache/apt/archives/nvidia-settings_302.17-0ubuntu1~lucid~xup3_amd64.deb
/var/cache/apt/archives/unace-nonfree_2.5-6_amd64.deb
/var/cache/apt/archives/unrar_1%3a3.9.3-1_amd64.deb
Moving Files:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LC_CTYPE = "C",
 LC_COLLATE = "C",
 LC_NUMERIC = "C",
 LANG = "es_ES.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

All done, exiting.

--8<--

Package: ttf-mscorefonts-installer
Priority: optional
Section: multiverse/x11
Installed-Size: 216
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Thijs Kinkhorst <email address hidden>
Architecture: all
Source: msttcorefonts
Version: 3.2ubuntu0.1
Replaces: msttcorefonts (<< 2.6)
Provides: msttcorefonts
Depends: wget, cabextract, xfonts-utils, defoma, debconf (>= 0.5) | debconf-2.0
Recommends: ttf-liberation, x-ttcidfont-conf
Conflicts: msttcorefonts (<< 2.6)
Filename: pool/multiverse/m/msttcorefonts/ttf-mscorefonts-installer_3.2ubuntu0.1_all.deb
Size: 40218
MD5sum: 3ee7b78959aa261b09dfb4af472b38b0
SHA1: e525c55bdfd3bac55fdbe1775648857935034c86
SHA256: 8576466a37571a2fdf782131f0c54ac02a5bab3f865515edf11ce38c4ceff026
Description: Installer for Microsoft TrueType core fonts
 This package allows for easy installation of the Microsoft True Type
 Core Fonts for the Web including:
 .
   Andale Mono
   Arial Black
   Arial (Bold, Italic, Bold Italic)
   Comic Sans MS (Bold)
   Courier New (Bold, Italic, Bold Italic)
   Georgia (Bold, Italic, Bold Italic)
   Impact
   Times New Roman (Bold, Italic, Bold Italic)
   Trebuchet (Bold, Italic, Bold Italic)
   Verdana (Bold, Italic, Bold Italic)
   Webdings
 .
 You will need an Internet connection to download these fonts if you
 don't already have them.
 .
 NOTE: the package ttf-liberation contains free variants of the Times,
 Arial and Courier fonts. It's better to use those instead unless you
 specifically need one of the other fonts from this package.
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

Package: nvidia-common
Priority: optional
Section: x11
Installed-Size: 180
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Alberto Milone (tseliot) <email address hidden>
Architecture: amd64
Version: 0.2.23
Depends: python (<< 2.7), python (>= 2.6), python-central (>= 0.6.11), debconf (>= 0.5.00) | debconf-2.0, pciutils, nvidia-current-modaliases, nvidia-173-modaliases, nvidia-96-modaliases
Filename: pool/main/n/nvidia-common/nvidia-common_0.2.23_amd64.deb
Size: 13908
MD5sum: 692a879d6d37cb2e16dba0868f72173d
SHA1: 0dcc6a45efdffdb93970e752320503938afc2402
SHA256: 53c7dd842eaaf01fce688cd32750ad758a96f4c7cd36bd7dc8382bd02f6f43de
Description: Find obsolete NVIDIA drivers
 This package will find obsolete NVIDIA drivers in use,
 detect the hardware and recommend the most appropriate
 driver.
Python-Version: 2.6
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 3y
Task: ubuntu-desktop, kubuntu-desktop, kubuntu-netbook, edubuntu-desktop, edubuntu-desktop-kde, xubuntu-desktop, mythbuntu-backend-master, mythbuntu-backend-slave, mythbuntu-desktop, mythbuntu-frontend, ubuntu-netbook

Package: nvidia-settings
Priority: optional
Section: x11
Installed-Size: 2252
Maintainer: Ubuntu MOTU Developers <email address hidden>
Architecture: amd64
Version: 302.17-0ubuntu1~lucid~xup3
Replaces: libxnvctrl-dev
Depends: screen-resolution-extra (>= 0.12), libatk1.0-0 (>= 1.29.3), libc6 (>= 2.7), libcairo2 (>= 1.2.4), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libglib2.0-0 (>= 2.16.0), libgtk2.0-0 (>= 2.8.0), libpango1.0-0 (>= 1.14.0), libx11-6 (>= 0), libxext6 (>= 0), libxxf86vm1
Conflicts: libxnvctrl-dev
Filename: pool/main/n/nvidia-settings/nvidia-settings_302.17-0ubuntu1~lucid~xup3_amd64.deb
Size: 1068808
MD5sum: 1c87a634f6f856930e69701a5628eb64
SHA1: 5291b71a6f827fada68fc4f0456b05cd81795b23
Description: Tool of configuring the NVIDIA graphics driver
 The nvidia-settings utility is a tool for configuring the NVIDIA
 Linux graphics driver. It operates by communicating with the NVIDIA
 X driver, querying and updating state as appropriate. This
 communication is done with the NV-CONTROL X extension.
 .
 Values such as brightness and gamma, XVideo attributes, temperature,
 and OpenGL settings can be queried and configured via nvidia-settings.
Original-Maintainer: Debian NVIDIA Maintainers <email address hidden>

Package: unrar
Priority: optional
Section: utils
Installed-Size: 244
Maintainer: Ubuntu MOTU Developers <email address hidden>
Original-Maintainer: Martin Meredith <email address hidden>
Architecture: amd64
Source: unrar-nonfree
Version: 1:3.9.3-1
Depends: libc6 (>= 2.7), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
Conflicts: rar (<= 2.60-1)
Filename: pool/multiverse/u/unrar-nonfree/unrar_3.9.3-1_amd64.deb
Size: 102356
MD5sum: 992124eae32ccaba5e91d95dac4d4fa0
SHA1: df0526a43f0adc6ab5ef7848112fcad39bce877e
SHA256: b929a9b81891d76a93de9c0a2298f87bcc932d3991cfa1b0498bafa34ff0afe9
Description: Unarchiver for .rar files (non-free version)
 Unrar can extract files from .rar archives. If you want to create .rar
 archives, install package rar.
Homepage: http://www.rarlabs.com/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

--8<--

Package: nvidia-current
Priority: optional
Section: misc
Installed-Size: 178836
Maintainer: Ubuntu Core Developers <email address hidden>
Architecture: amd64
Source: nvidia-graphics-drivers
Version: 302.17-0ubuntu1~lucid~xup1
Provides: xorg-driver-video, xserver-xorg-video-6
Depends: x11-common (>= 1:7.0.0), make, sed (>> 3.0), dkms, linux-libc-dev, libc6-dev, linux-headers-generic | linux-headers, patch, acpid, libc6 (>= 2.2.5), libgcc1 (>= 1:4.1.1), libx11-6 (>= 0), libxext6 (>= 0), libxv1, libxvmc1, zlib1g (>= 1:1.1.4)
Recommends: nvidia-settings
Filename: pool/main/n/nvidia-graphics-drivers/nvidia-current_302.17-0ubuntu1~lucid~xup1_amd64.deb
Size: 58747616
MD5sum: d3531adc6476849327a4b40a7d37fc62
Description: NVIDIA binary Xorg driver, kernel module and VDPAU library
 The binary driver provide optimized hardware acceleration of OpenGL
 applications via a direct-rendering X Server. AGP, PCIe, SLI, TV-out
 and flat panel displays are also supported.
 .
 This package also includes the source for building the kernel module
 required by the Xorg driver, and provides NVIDIA's implementation of
 the Video Decode and presentation API. The latter enables acceleration
 for NVIDIA 8 and later series cards for h264 video.
 .
 GPUs such as GeForce series 6 or newer are supported.
 .
 See /usr/share/doc/nvidia-current/README.txt.gz for a complete list
 of supported GPUs and PCIIDs

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt-move Edit question
Assignee:
No assignee Edit question
Solved by:
Jorge Suárez de Lis
Solved:
Last query:
Last reply:
Revision history for this message
Jorge Suárez de Lis (ys) said :
#1

Commenting these two lines on /usr/share/apt-move/getdist.awk solved the problem:

function getdist(section, dist, a) {
        if (section in _getdist) {
                return _getdist[section]
        }

        dist = section
        ldist = tolower(dist)

        if (match(ldist, /^non-us\/[^\/]*/)) {
                dist = "non-US" substr(dist, 7, RLENGTH - 6)
        } else if (ldist == "non-us") {
                dist = "non-US/main"
        #THIS ONE } else if (match(dist, /^[^\/]*\//)) {
        # THIS ONE TOO dist = substr(dist, 1, RLENGTH - 1)
        } else {
                dist = "main"
        }
        return _getdist[section] = dist
}