apt: strange output with wrong DEBIAN_PRIORITY option
*** Please type your report below this line ***
I tried to pass "basse" (french traduction of "low") as value of
the option DEBIAN_PRIORITY, because with "low", I didn't see the
semi-graphic interactiv menu I expected
(if I purge, then install it, I get the menu, but with only reinstall,
no menu). I don't know of it's the normal behaviour. But the
possible bug is the strang output:
---------------8<----------------
# DEBIAN_PRIORITY=basse apt-get --reinstall install pcmcia-cs
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 4
non mis à jour.
Il est nécessaire de prendre 0o/333ko dans les archives.
Après dépaquetage, 0o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer [O/n] ? o
Preconfiguring packages ...
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 1.
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 3.
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 6.
(Lecture de la base de données... 112223 fichiers et répertoires déjà
installés.)
Préparation du remplacement de pcmcia-cs 3.2.5-8ubuntu6 (en utilisant
.../pcmcia-cs_3.2.5-8ubuntu6_i386.deb) ...
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 1.
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 3.
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 6.
Dépaquetage de la mise à jour de pcmcia-cs ...
Paramétrage de pcmcia-cs (3.2.5-8ubuntu6) ...
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 1.
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 3.
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/Debconf/Priority.pm line 17, <GEN1> line 6.
root@aspiro:/home/djax #
---------------->8----------------
I look at /usr/share/perl5/Debconf/Priority.pm, the script should go the line 17.
It should have stopped at line 16, because the option "basse" doesn't exist.
----------8<---------------
root@aspiro:/home/djax # cat -n /usr/share/perl5/Debconf/Priority.pm
1 #!/usr/bin/perl -w
2 # This file was preprocessed, do not edit!
3 package Debconf::Priority;
4 use strict;
5 use Debconf::Config;
6 use base qw(Exporter);
7 our @EXPORT_OK = qw(high_enough priority_valid priority_list);
8 my %priorities=(
9 'low' => 0,
10 'medium' => 1,
11 'high' => 2,
12 'critical' => 3,
13 );
14 sub high_enough {
15 my $priority=shift;
16 return 1 if ! exists $priorities{$priority};
17 return $priorities{$priority} >= $priorities{Debconf::Config->priority};
18 }
19 sub priority_valid {
20 my $priority=shift;
21 return exists $priorities{$priority};
22 }
23 sub priority_list {
24 return sort { $priorities{$a} <=> $priorities{$b} } keys %priorities;
25 }
26 1
-------->8----------------------
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Archives "";
APT::Archives::MaxAge "0";
APT::Archives::MaxSize "0";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
aptitude "";
aptitude::Delete-Unused-Pattern "^linux-image.*$";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
-- /etc/apt/preferences --
Package: *
Pin: release a=testing
Pin-Priority: 1
-- /etc/apt/sources.list --
deb file:/var/cache/apt-build/repository apt-build main
deb cdrom:[Kubuntu 5.04 _Hoary Hedgehog_ - Release i386 (20050407)]/ hoary main restricted
## Uncomment the following two lines to fetch updated software from the network
deb http://ch.archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu hoary main restricted
## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://ch.archive.ubuntu.com/ubuntu hoary-updates main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu hoary-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://ch.archive.ubuntu.com/ubuntu hoary universe
deb-src http://ch.archive.ubuntu.com/ubuntu hoary universe
deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted
deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe
deb http://fr.archive.ubuntu.com/ubuntu hoary multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu hoary multiverse
## Backports
#deb http://backports.ubuntuforums.org/ubp hoary-backports main universe multiverse restricted
#deb http://backports.ubuntuforums.org/ubp hoary-extras main universe multiverse restricted
deb http://ubuntu-backports.mirrormax.net hoary-backports main universe multiverse restricted
deb http://ubuntu-backports.mirrormax.net hoary-extras main universe multiverse restricted
## Marillat
deb ftp://ftp.nerim.net/debian-marillat stable main
deb ftp://ftp.nerim.net/debian-marillat unstable main
deb ftp://ftp.nerim.net/debian-marillat testing main
# KUBUNTU
deb http://kubuntu.org hoary-updates main
# Bluetooth
deb http://dev.kubuntu.org.uk/~motaboy/ubuntu/hoary ./
# klibido
deb-src http://orniere-du-globe.net/debian ./
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.11.050607
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Versions of packages apt depends on:
ii libc6 2.3.2.ds1-20ubuntu14 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.0-7ubuntu6~5.04ubp1 GCC support library
ii libstdc++5 1:3.3.5-8ubuntu2 The GNU Standard C++ Library v3
-- no debconf information
Reply to: