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

Bug#218861: marked as done (apt: apt-get should warn about removing required packages)



Your message dated Thu, 8 Jan 2004 23:48:27 -0800
with message-id <20040109074827.GN1436@alcor.net>
and subject line Not necessary
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; 3 Nov 2003 01:34:16 +0000
>From dilinger@voxel.net Sun Nov 02 19:34:15 2003
Return-path: <dilinger@voxel.net>
Received: from alb-24-194-34-186.nycap.rr.com (spiral) [24.194.34.186] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AGTbj-0005My-00; Sun, 02 Nov 2003 19:34:15 -0600
Received: by spiral (Postfix, from userid 1000)
	id 97B985C093; Sun,  2 Nov 2003 20:34:13 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Andres Salomon <dilinger@voxel.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt: apt-get should warn about removing required packages
X-Mailer: reportbug 2.36
Date: Sun, 02 Nov 2003 20:34:13 -0500
Message-Id: <20031103013413.97B985C093@spiral>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-4.0 required=4.0
	tests=BAYES_60,HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_11_1
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_1 (1.174.2.15-2003-03-30-exp)

Package: apt
Version: 0.5.14
Severity: wishlist


dilinger@spiral:~$ apt-cache show procps | grep Priority
Priority: required
dilinger@spiral:~$ sudo apt-get remove procps
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  keychain ppp pppconfig pppoe pppoeconf procps
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 1885kB disk space will be freed.
Do you want to continue? [Y/n]

According to policy (section 2.5), required packages are:
    Packages which are necessary for the proper functioning of the
    system. You must not remove these packages or your system may become
    totally broken and you may not even be able to use dpkg to put
    things back. Systems with only the required packages are probably
    unusable, but they do have enough functionality to allow the
    sysadmin to boot and install more software.
 
Given the description, I'm of the opinion that apt should warn about
removal of required packages.  This could be done similar to the way
removal of essential packages are handled:

dilinger@spiral:~$ sudo apt-get remove apt
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  apt apt-utils base-config gnome gnome-apt
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
  apt
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 4366kB disk space will be freed.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'
?]



-- 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";

-- (no /etc/apt/preferences present) --


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

deb http://http.us.debian.org/debian unstable main contrib non-free
deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free
deb ftp://ftp.debian.org/debian ../project/experimental main
deb http://marillat.free.fr/ unstable main
deb http://sloth.voxel.net/~dilinger/lvm2 ./

deb-src http://http.us.debian.org/debian unstable main contrib non-free
deb-src http://mentors.debian.net/debian unstable main 

deb http://martianrock.com/debian binary/

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux spiral.internal 2.6.0-test9 #1 Sun Oct 26 14:27:41 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

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

-- no debconf information


---------------------------------------
Received: (at 218861-done) by bugs.debian.org; 12 Jan 2004 06:23:14 +0000
>From mdz@alcor.net Mon Jan 12 00:23:12 2004
Return-path: <mdz@alcor.net>
Received: from mta11.adelphia.net [68.168.78.205] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AesHO-0003rm-00; Fri, 09 Jan 2004 02:46:06 -0600
Received: from mizar.alcor.net ([68.64.159.24]) by mta11.adelphia.net
          (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP
          id <20040109074827.DLKM6455.mta11.adelphia.net@mizar.alcor.net>
          for <218861-done@bugs.debian.org>; Fri, 9 Jan 2004 02:48:27 -0500
Received: from mdz by mizar.alcor.net with local (Exim 4.30)
	id 1AerNb-0001r2-EG
	for 218861-done@bugs.debian.org; Thu, 08 Jan 2004 23:48:27 -0800
Date: Thu, 8 Jan 2004 23:48:27 -0800
From: Matt Zimmerman <mdz@debian.org>
To: 218861-done@bugs.debian.org
Subject: Not necessary
Message-ID: <20040109074827.GN1436@alcor.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.5.1+cvs20040105i
Sender: Matt Zimmerman <mdz@alcor.net>
Delivered-To: 218861-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 
	2.60-master.debian.org_2003_11_25-bugs.debian.org_2004_1_5 
	(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no 
	version=2.60-master.debian.org_2003_11_25-bugs.debian.org_2004_1_5
X-Spam-Level: 

As discussed in the bug log, apt's current behaviour seems reasonable and
correct.  Essential packages are the only ones which deserve a scary prompt.

-- 
 - mdz



Reply to: