[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#277909: marked as done (/usr/bin/apt-get: wildcards select nonmatching packets)



Your message dated Sat, 23 Oct 2004 10:44:56 -0700
with message-id <20041023174456.GO5391@alcor.net>
and subject line [debian-bts@adam-barratt.org.uk: Bug#277909: /usr/bin/apt-get: wildcards select nonmatching packets]
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Oct 2004 10:28:41 +0000
>From bernhard@rainbow.bksys.at Sat Oct 23 03:28:41 2004
Return-path: <bernhard@rainbow.bksys.at>
Received: from rainbow.bksys.at (bksys.at) [212.41.248.75] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CLJ8a-0007QK-00; Sat, 23 Oct 2004 03:28:41 -0700
Received: from bernhard by bksys.at with local (Exim 3.36 #1 (Debian))
	id 1CLJ8W-0006mH-00; Sat, 23 Oct 2004 12:28:36 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Bernhard Kuemel <bernhard@bksys.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /usr/bin/apt-get: wildcards select nonmatching packets
X-Mailer: reportbug 2.63
Date: Sat, 23 Oct 2004 12:28:36 +0200
Message-Id: <[🔎] E1CLJ8W-0006mH-00@bksys.at>
Sender: <bernhard@rainbow.bksys.at>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: apt
Version: 0.5.27
Severity: critical
Justification: may remove unrelated software

apt-get remove --purge "ntp*" selects non matching packets
including essential ones like mount or login.

bksys:/etc/default# apt-get remove --purge "ntp*"
Reading Package Lists...
Building Dependency Tree...
Note, selecting liblog-agent-logger-perl for regex 'ntp*'
Note, selecting popularity-contest for regex 'ntp*'
Note, selecting xfont-nexus for regex 'ntp*'
Note, selecting libgnomeprint-dev for regex 'ntp*'
Note, selecting ident2 for regex 'ntp*'
Note, selecting libsword-runtime for regex 'ntp*'
Note, selecting xfonts-bolkhov-iso for regex 'ntp*'
Note, selecting libc-client2003debian for regex 'ntp*'
[lots more packages selected]
Note, selecting build-essential for regex 'ntp*'
Note, selecting libroxen-ntuserauth for regex 'ntp*'
Note, selecting dhcp-client for regex 'ntp*'
The following packages will be REMOVED:
  adduser* alien* apache* apache-ssl* at* base-config* bash* console-common*
  console-data* console-tools* cron* crossfire-client* crossfire-client-gtk*
  cvs* ddd* debhelper* dlint* emacs20* esound-clients* ethereal* exim*
  fetchmail* fontconfig* freeciv* freeciv-client-gtk* freeciv-gtk* gconf2*
  gettext* gettext-base* gettext-el* gnome-keyring* gs* gs-common* gs-gpl*
  gsfonts* i2c-source* indent* initscripts* intltool-debian* jadetex* kdelibs3*
  kdelibs3-bin* kpm* lclint* lesstif1* lesstif2* libauthen-pam-perl*
  libbonoboui2-0* libc-client2001* libc-client2002ddebian*
  libc-client2002edebian* libc-client2003debian* libc-client4.7*
  libdbd-mysql-perl* libfontconfig1* libgail-common* libgail17* libgconf2-4*
  libgimp1.2* libgimp2.0* libgimpprint1* libglade-gnome0* libglade0*
  libglade2-0* libgnome-keyring0* libgnome2-0* libgnome2-common*
  libgnomecanvas2-0* libgnomeui-0* libgnomevfs2-0* libgnomevfs2-common*
  libgtk2.0-0* libgtk2.0-bin* libgtk2.0-common* libgtkhtml2-0* libident*
  libmagick5.5.7* libmysqlclient10* libmysqlclient12* libmysqlclient6*
  libopenldap-runtime* libopenldap1* libpam-modules* libpam-runtime* libpam0g*
  libpango1.0-0* libpango1.0-common* libqt2* librsvg2-2* librsvg2-common*
  libsasl7* libsmbclient* libwmf0.2-2* libwmf0.2-7* libxft1* libxft2*
  linuxconf* lm-sensors* lm-sensors-source* login* logrotate* mailman* mailx*
  memprof* midentd* modconf* module-assistant* modutils* mount* mrtg-contrib*
  msttcorefonts* mutt* mysql-client* mysql-server* nfs-common* nfs-server* ntp*
  ntp-doc* ntp-server* ntp-simple* nullidentd* passwd* php4-gd2* php4-mysql*
  po-debconf* proftpd* proftpd-common* psfontmgr* qpopper* samba* samba-common*
  screen* smbclient* smbfs* squirrelmail* ssh* sudo* swat* sysvinit* t1lib1*
  task-dns-server* task-samba* telnetd* tetex-extra* tk8.0* tk8.2* tk8.2-dev*
  tk8.3* tk8.3-dev* tktable* tktable-dev* uw-imapd* webmin* xbase-clients*
  xlibs* xtv*
The following held packages will be changed:
  uw-imapd
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
  bash passwd (due to bash) login libpam-modules (due to login) libpam0g (due
  to login) libpam-runtime (due to login) mount sysvinit initscripts (due to
  sysvinit)
0 upgraded, 0 newly installed, 156 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 350MB disk space will be freed.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'
 ?] 
bksys:/etc/default#

Not sure if severity critical is appropriate here, but it might
accidentially remove packages if no essential packages are selected and
the output is not carefully watched.

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
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";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";

-- /etc/apt/preferences --

Package: *
Pin: release a=stable
Pin-Priority: 650

Package: *
Pin: release a=testing
Pin-Priority: 700

Package: *
Pin: release a=unstable
Pin Priority: 600

-- /etc/apt/sources.list --

deb  ftp://debian.inode.at/debian/ stable main non-free contrib
deb  ftp://debian.inode.at/debian-non-US stable/non-US main contrib non-free
#deb-src  ftp://debian.inode.at/debian/ stable main non-free contrib
#deb-src  ftp://debian.inode.at/debian-non-US/ unstable/non-US main contrib non-free

deb  ftp://debian.inode.at/debian/ testing main non-free contrib
deb  ftp://debian.inode.at/debian-non-US/ testing/non-US main contrib non-free
#deb-src  ftp://debian.inode.at/debian/ testing main non-free contrib
#deb-src  ftp://debian.inode.at/debian-non-US/ testing/non-US main contrib non-free

deb  ftp://debian.inode.at/debian/ unstable main non-free contrib
deb  ftp://debian.inode.at/debian-non-US/ unstable/non-US main contrib non-free
#deb-src  ftp://debian.inode.at/debian/ unstable main non-free contrib
#deb-src  ftp://debian.inode.at/debian-non-US/ unstable/non-US main contrib non-free

deb http://security.debian.org/ stable/updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
#deb http://security.debian.org/ unstable/updates main contrib non-free
#deb ftp://ftp.tux.org/pub/java/debian woody main non-free

#deb http://marillat.free.fr/ stable main
#deb http://marillat.free.fr/ testing main

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (700, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.24
Locale: LANG=C, LC_CTYPE=C

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.4.2-2    GCC support library
ii  libstdc++5                  1:3.3.4-13   The GNU Standard C++ Library v3

-- no debconf information

---------------------------------------
Received: (at 277909-done) by bugs.debian.org; 23 Oct 2004 17:45:30 +0000
>From mdz@debian.org Sat Oct 23 10:45:30 2004
Return-path: <mdz@debian.org>
Received: from mta9.adelphia.net [68.168.78.199] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CLPxK-0007wt-00; Sat, 23 Oct 2004 10:45:30 -0700
Received: from mizar.alcor.net ([69.167.148.207]) by mta9.adelphia.net
          (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP
          id <20041023174459.GWOZ2497.mta9.adelphia.net@mizar.alcor.net>
          for <277909-done@bugs.debian.org>;
          Sat, 23 Oct 2004 13:44:59 -0400
Received: by mizar.alcor.net (Postfix, from userid 1000)
	id 52B82B9F66; Sat, 23 Oct 2004 10:44:56 -0700 (PDT)
Date: Sat, 23 Oct 2004 10:44:56 -0700
From: Matt Zimmerman <mdz@debian.org>
To: 277909-done@bugs.debian.org
Subject: [debian-bts@adam-barratt.org.uk: Bug#277909: /usr/bin/apt-get: wildcards select nonmatching packets]
Message-ID: <20041023174456.GO5391@alcor.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040523i
Delivered-To: 277909-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

----- Forwarded message from "Adam D. Barratt" <debian-bts@adam-barratt.org.uk> -----

Date: Sat, 23 Oct 2004 12:11:14 +0100
From: "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>
Resent-From: "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>
To: Bernhard Kuemel <bernhard@bksys.at>, 277909@bugs.debian.org
Subject: Bug#277909: /usr/bin/apt-get: wildcards select nonmatching packets

On Sat, 2004-10-23 at 12:28 +0200, Bernhard Kuemel wrote:
> Package: apt
> Version: 0.5.27
> Severity: critical
> Justification: may remove unrelated software
> 
> apt-get remove --purge "ntp*" selects non matching packets
> including essential ones like mount or login.

No. It's selected *exactly* what you told it to.

> bksys:/etc/default# apt-get remove --purge "ntp*"
> Reading Package Lists...
> Building Dependency Tree...
> Note, selecting liblog-agent-logger-perl for regex 'ntp*'

^^^^^^^^^

Note the key aspect there (*regex*). You asked it to remove packages
matching the regexp "n followed by t followed by zero or more
occurrences of p". mou*nt* matches that pattern, as do some of the other
packages. Those that don't will have been selected as dependencies of
those packages, or dependencies of their dependencies, or...

Regards,

Adam



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

----- End forwarded message -----

-- 
 - mdz



Reply to: