Bug#486454: Does not remove automatically installed packages with remove/purge

2009-03-12 Thread Marcus Blumhagen
Package: aptitude
Followup-For: Bug #486454

On Sat, 30 Aug 2008 21:25:43 -0700 Daniel Burrows wrote:
 I never figured out what's going on in #486454 [...]

Hi, I just came across this report while searching for more info on
another issue. This is actually not related to the problem I am having
at the moment but I believe I found an explanation for the behaviour
the OP experienced.

According to aptitude(8) the option --without-recommends does the
following:

  Do not treat recommendations as dependencies when installing new
packages (this overrides settings in /etc/apt/apt.conf and
~/.aptitude/config). Packages previously installed due to
recommendations will not be removed. [...]

The second sentence of the above quote might explain why, even if
--without-recommends is set, recommendations are not removed. The OP
installed emacs and aptitude took care of the dependencies which in
turn get marked as automatically installed. When emacs was purged
there were other packages still installed which recommend
emacs22-common. So aptitude looks at the auto flag and cannot
distinguish if it was set due to a recommendation or a dependency
since this information is not saved.


Just my 2¢, hope it helps.
Marcus

-- Package-specific info:
aptitude 0.4.11.11 kompiliert am Nov 20 2008 05:11:32
Compiler: g++ 4.3.2
Kompiliert gegen:
  apt-Version 4.6.0
  NCurses-Version: 5.7
  libsigc++-Version: 2.0.18
  Ept-Unterstützung aktiviert.

Aktuelle Bibliotheksversion:
  NCurses-Version: ncurses 5.7.20090228
  cwidget-Version: 0.5.12
  Apt-Version: 4.6.0
linux-vdso.so.1 =  (0x7fffa79ff000)
libapt-pkg-libc6.7-6.so.4.6 = /usr/lib/libapt-pkg-libc6.7-6.so.4.6 
(0x7f0b9f439000)
libncursesw.so.5 = /lib/libncursesw.so.5 (0x7f0b9f1ee000)
libsigc-2.0.so.0 = /usr/lib/libsigc-2.0.so.0 (0x7f0b9efe9000)
libcwidget.so.3 = /usr/lib/libcwidget.so.3 (0x7f0b9ed16000)
libept.so.0 = /usr/lib/libept.so.0 (0x7f0b9ea9d000)
libxapian.so.15 = /usr/lib/libxapian.so.15 (0x7f0b9e731000)
libz.so.1 = /usr/lib/libz.so.1 (0x7f0b9e51a000)
libpthread.so.0 = /lib/libpthread.so.0 (0x7f0b9e2ff000)
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x7f0b9dff3000)
libm.so.6 = /lib/libm.so.6 (0x7f0b9dd7)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x7f0b9db59000)
libc.so.6 = /lib/libc.so.6 (0x7f0b9d806000)
libutil.so.1 = /lib/libutil.so.1 (0x7f0b9d603000)
libdl.so.2 = /lib/libdl.so.2 (0x7f0b9d3ff000)
/lib64/ld-linux-x86-64.so.2 (0x7f0b9f6fa000)
Terminal: screen
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-amd64-k8-custom (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6. 0.7.20.2  Advanced front-end for dpkg
ii  libc6  2.9-4 GNU C Library: Shared libraries
ii  libcwidget30.5.12-4  high-level terminal interface libr
ii  libept00.5.26High-level library for managing De
ii  libgcc11:4.3.3-5 GCC support library
ii  libncursesw5   5.7+20090228-1shared libraries for terminal hand
ii  libsigc++-2.0-0c2a 2.0.18-2  type-safe Signal Framework for C++
ii  libstdc++6 4.3.3-5   The GNU Standard C++ Library v3
ii  libxapian151.0.10-2  Search engine library
ii  zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime

Versions of packages aptitude recommends:
ii  aptitude-doc-en [aptitude-do 0.4.11.11-1 English manual for aptitude, a ter
ii  libparse-debianchangelog-per 1.1.1-2 parse Debian changelogs and output

Versions of packages aptitude suggests:
ii  debtags   1.7.9  Enables support for package tags
pn  tasksel   none (no description available)

-- no debconf information



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



Bug#486454: Does not remove automatically installed packages with remove/purge

2008-09-17 Thread Teemu Likonen
Daniel Burrows wrote (2008-09-15 20:25 -0700):

 If you're still seeing this, I think it's probably a duplicate of
 #498566.  Could you please confirm that adding the line
 
 Apt::AutoRemove::RecommendsImportant false;
 
 to /etc/apt/apt.conf fixes the problem for you?

The issue I reported is still there but your apt.conf trick indeed fixes 
it, pretty much completely, it seems.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486454: Does not remove automatically installed packages with remove/purge

2008-06-17 Thread Daniel Burrows
On Mon, Jun 16, 2008 at 05:27:12PM +0300, Teemu Likonen [EMAIL PROTECTED] was 
heard to say:
 But I haven't configured aptitude to install recommended packages
 automatically. This is what reads in the settings:

  Hm, what are the contents of /etc/apt/apt.conf and ~/.aptitude/config?

  Daniel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486454: Does not remove automatically installed packages with remove/purge

2008-06-17 Thread Teemu Likonen
Daniel Burrows wrote (2008-06-17 06:03 -0700):

 On Mon, Jun 16, 2008 at 05:27:12PM +0300, Teemu Likonen
 [EMAIL PROTECTED] was heard to say:
  But I haven't configured aptitude to install recommended packages
  automatically. This is what reads in the settings:
 
   Hm, what are the contents of /etc/apt/apt.conf and
   ~/.aptitude/config?

File /etc/apt/apt.conf doesn't exist; directory /etc/apt/apt.conf.d/
contains files 01autoremove and 70debconf. I haven't touched on those.

File ~/.aptitude/config:


aptitude ;
aptitude::Recommends-Important false;
aptitude::Keep-Unused-Pattern ;
aptitude::Delete-Unused-Pattern ;
aptitude::Ignore-Recommends-Important true;
APT ;
APT::Install-Recommends false;



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486454: Does not remove automatically installed packages with remove/purge

2008-06-17 Thread Daniel Burrows
On Tue, Jun 17, 2008 at 04:30:53PM +0300, Teemu Likonen [EMAIL PROTECTED] was 
heard to say:
 Daniel Burrows wrote (2008-06-17 06:03 -0700):
 
  On Mon, Jun 16, 2008 at 05:27:12PM +0300, Teemu Likonen
  [EMAIL PROTECTED] was heard to say:
   But I haven't configured aptitude to install recommended packages
   automatically. This is what reads in the settings:
  
Hm, what are the contents of /etc/apt/apt.conf and
~/.aptitude/config?
 
 File /etc/apt/apt.conf doesn't exist; directory /etc/apt/apt.conf.d/
 contains files 01autoremove and 70debconf. I haven't touched on those.
 
 File ~/.aptitude/config:
 
 
 aptitude ;
 aptitude::Recommends-Important false;
 aptitude::Keep-Unused-Pattern ;
 aptitude::Delete-Unused-Pattern ;
 aptitude::Ignore-Recommends-Important true;
 APT ;
 APT::Install-Recommends false;

  Ok, that looks right.  Is it possible for you to run
aptitude-create-state-bundle and post the file somewhere that I can
download it?

Thanks,
  Daniel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486454: Does not remove automatically installed packages with remove/purge

2008-06-16 Thread Teemu Likonen
Package: aptitude
Version: 0.4.11.4-1
Severity: normal

Aptitude does not remove automatically installed packages with aptitude
remove. Files are marked as automatically installed, though. It tried
exactly the same thing in Etch and Sid:

  $ sudo aptitude install emacs

Metapackage emacs and all the depencencies get installed.

  $ sudo aptitude purge emacs

In Etch, all the automatically installed dependencies are removed; in
Sid, only the metapackage emacs is removed.


Here's the complete terminal log from my session in Sid:



(sid)[EMAIL PROTECTED]:~$ sudo aptitude install emacs
[sudo] password for dtw:


Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  emacs emacs22{a} emacs22-bin-common{a} emacs22-common{a} emacsen-common{a}
  liblockfile1{a} xaw3dg{a}
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/17,6MB of archives. After unpacking 61,8MB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Selecting previously deselected package liblockfile1.
(Reading database ... 47783 files and directories currently installed.)
Unpacking liblockfile1 (from .../liblockfile1_1.07-1_i386.deb) ...
Selecting previously deselected package emacsen-common.
Unpacking emacsen-common (from .../emacsen-common_1.4.17_all.deb) ...
Selecting previously deselected package emacs22-common.
Unpacking emacs22-common (from .../emacs22-common_22.2+2-2_all.deb) ...
Selecting previously deselected package emacs22-bin-common.
Unpacking emacs22-bin-common (from .../emacs22-bin-common_22.2+2-2_i386.deb) ...
Selecting previously deselected package xaw3dg.
Unpacking xaw3dg (from .../xaw3dg_1.5+E-15_i386.deb) ...
Selecting previously deselected package emacs22.
Unpacking emacs22 (from .../emacs22_22.2+2-2_i386.deb) ...
Selecting previously deselected package emacs.
Unpacking emacs (from .../emacs_22.2+2-2_all.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up liblockfile1 (1.07-1) ...
Setting up emacsen-common (1.4.17) ...
emacsen-common: Handling install of emacsen flavor emacs
Setting up emacs22-common (22.2+2-2) ...
Setting up emacs22-bin-common (22.2+2-2) ...
Setting up xaw3dg (1.5+E-15) ...
Setting up emacs22 (22.2+2-2) ...
emacs-install emacs22
install/dictionaries-common: Byte-compiling for emacsen flavour emacs22
Wrote /usr/share/emacs22/site-lisp/dictionaries-common/debian-ispell.elc
Wrote /usr/share/emacs22/site-lisp/dictionaries-common/ispell.elc
Wrote /usr/share/emacs22/site-lisp/dictionaries-common/flyspell.elc
emacsen-common: Handling install of emacsen flavor emacs22
emacsen-common: byte-compiling for emacs22
Loading /etc/emacs22/site-start.d/00debian-vars.el (source)...
No /etc/mailname. Reverting to default...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Loading /etc/emacs/site-start.d/50psvn.el (source)...
Wrote /etc/emacs22/site-start.d/00debian-vars.elc
Wrote /usr/share/emacs22/site-lisp/debian-startup.elc
Setting up emacs (22.2+2-2) ...
Processing triggers for menu ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done


(sid)[EMAIL PROTECTED]:~$ sudo aptitude purge emacs


Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
  emacs{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 45,1kB will be freed.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 49499 files and directories currently installed.)
Removing emacs ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done


(sid)[EMAIL PROTECTED]:~$



-- Package-specific info:
aptitude 0.4.11.4 compiled at Jun  8 2008 00:56:54
Compiler: g++ 4.3.1 20080523 (prerelease)
Compiled against:
  apt version 4.6.0
  NCurses version 5.6
  libsigc++ version: 2.0.18
  Ept support enabled.

Current library versions:
  NCurses version: ncurses 5.6.20080531
  cwidget version: 0.5.11
  Apt version: 4.6.0
linux-gate.so.1 =  (0xe000)

Bug#486454: Does not remove automatically installed packages with remove/purge

2008-06-16 Thread Daniel Burrows
On Mon, Jun 16, 2008 at 08:09:44AM +, Teemu Likonen [EMAIL PROTECTED] was 
heard to say:
 Aptitude does not remove automatically installed packages with aptitude
 remove. Files are marked as automatically installed, though. It tried
 exactly the same thing in Etch and Sid:
 
   $ sudo aptitude install emacs
 
 Metapackage emacs and all the depencencies get installed.
 
   $ sudo aptitude purge emacs
 
 In Etch, all the automatically installed dependencies are removed; in
 Sid, only the metapackage emacs is removed.
 
 
 Here's the complete terminal log from my session in Sid:
 
 
 
 (sid)[EMAIL PROTECTED]:~$ sudo aptitude install emacs
 [sudo] password for dtw:
 
 
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 Reading extended state information
 Initializing package states... Done
 Reading task descriptions... Done
 The following NEW packages will be installed:
   emacs emacs22{a} emacs22-bin-common{a} emacs22-common{a} emacsen-common{a}
   liblockfile1{a} xaw3dg{a}

  When you've removed emacs, what do you get from
aptitude why emacs22-common?

  Daniel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486454: Does not remove automatically installed packages with remove/purge

2008-06-16 Thread Teemu Likonen
Daniel Burrows wrote (2008-06-16 07:08 -0700):

   When you've removed emacs, what do you get from
 aptitude why emacs22-common?

Ah, there is a recommendation set by malaga-bin package:


$ aptitude why emacs22-common
i   malaga-bin Recommends info | info-browser
i A emacs22Provides   info-browser
i A emacs22Dependsemacs22-bin-common (= 22.2+2-2)
i A emacs22-bin-common Dependsemacs22-common (= 22.2+2-2)


But I haven't configured aptitude to install recommended packages
automatically. This is what reads in the settings:


--\ Dependency handling 
 
[X] Automatically resolve dependencies of a package when it is selected 
   
[X] Automatically fix broken packages before installing or removing 
   
[ ] Install recommended packages automatically  
   
[X] Remove unused packages automatically


I guess this bug is different from what I originally described. It seems
to be related to handling recommended packages.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]