<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>761</bug_id>
          
          <creation_ts>2002-03-29 20:13:53 +0300</creation_ts>
          <short_desc>apt-get remove request doesn\&apos;t resolve in a removal of the specified package</short_desc>
          <delta_ts>2009-01-10 01:55:26 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>apt</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="imz">vanyaz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>721</commentid>
    <comment_count>0</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2002-03-29 20:13:53 +0300</bug_when>
    <thetext>The following pkgs are installed: apt-0.3.19cnc55-alt3,
emacs-common-21.1-alt13
emacsen-startscripts-0.0.1-alt2
emacs-mode-auctex-11.11-alt1
emacs-nox-21.1-alt13
maxima-5.6-alt2
TeXmacs-1.0-alt1

maxima depends on emacs (virtual) and emacs-mode-auctex; emacs is provided by either emacs-nox or (not installed) emacs-X11. And they both depend on emacs-common.

When running `apt-get remove emacs-common\&apos;, I expect the whole group of emacs related packages to be removed; at least, I expect that the specified package \&apos;emacs-common\&apos; is actually removed. But here is how apt-get resolves this request:

$ apt-get -o Debug::pkgProblemResolver=yes remove emacs-common
Processing File Dependencies... Done
Reading Package Lists... Done
Building Dependency Tree... Done
Starting
Starting 2
Package emacs-nox has broken dep on emacs-common
  Considering emacs-common 10001 as a solution to emacs-nox 2
  Removing emacs-nox rather than change emacs-common
Package emacs-mode-auctex has broken dep on emacs
  Considering emacs-nox 2 as a solution to emacs-mode-auctex 7
  Considering emacs-X11 0 as a solution to emacs-mode-auctex 7
  Fixing emacs-mode-auctex via install of emacs-X11
Done
The following extra packages will be installed:
  emacs-X11
The following packages will be REMOVED:
  emacs-nox
The following NEW packages will be installed:
  emacs-X11
0 packages upgraded, 1 newly installed, 1 to remove(replace) and 23 not upgraded.
Need to get 0B/1489kB of archives. After unpacking 372kB will be used.
Do you want to continue? [Y/n]

So the requested removal is not performed.





---

---
Adding more arguments makes what I wanted:

$ apt-get -o Debug::pkgProblemResolver=yes remove emacs-common emacs-mode-auctex emacsen-startscripts
Processing File Dependencies... Done
Reading Package Lists... Done
Building Dependency Tree... Done
Starting
Starting 2
Package maxima has broken dep on emacs-mode-auctex
  Considering emacs-mode-auctex 10001 as a solution to maxima 5
  Removing maxima rather than change emacs-mode-auctex
Package emacs-nox has broken dep on emacs-common
  Considering emacs-common 10001 as a solution to emacs-nox 2
  Removing emacs-nox rather than change emacs-common
Package TeXmacs has broken dep on maxima
  Considering maxima 5 as a solution to TeXmacs 2
  Removing TeXmacs rather than change maxima
Done
The following packages will be REMOVED:
  TeXmacs emacs-common emacs-mode-auctex emacs-nox emacsen-startscripts maxima
0 packages upgraded, 0 newly installed, 6 to remove(replace) and 23 not upgraded.
Need to get 0B of archives. After unpacking 53,6MB will be freed.
Do you want to continue? [Y/n]

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3443</commentid>
    <comment_count>1</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2002-03-29 20:22:55 +0300</bug_when>
    <thetext>The case can be simplified.

Consider only three emacs-related pkgs installed: emacs-common, emacs-nox,  emacsen-startscripts.

`apt-get remove emacs-common\&apos; doesn\&apos;t remove it actually (the same behaviour as in the report).
`apt-get remove emacs-common emacsen-startscripts\&apos; removes all the three pkgs as expected.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6808</commentid>
    <comment_count>2</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2002-03-29 20:22:55 +0300</bug_when>
    <thetext>The case can be simplified.

Consider only three emacs-related pkgs installed: emacs-common, emacs-nox,  emacsen-startscripts.

`apt-get remove emacs-common\&apos; doesn\&apos;t remove it actually (the same behaviour as in the report).
`apt-get remove emacs-common emacsen-startscripts\&apos; removes all the three pkgs as expected.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35306</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-01-30 22:33:26 +0300</bug_when>
    <thetext>Не воспроизводится: 
# apt-get remove emacs-common 
Reading Package Lists... Done 
Building Dependency Tree... Done 
Selecting emacs21-common for &apos;emacs-common&apos; 
The following packages will be REMOVED: 
  emacs-cedet emacs-cedet-speedbar emacs-mode-auctex emacs-preview-latex 
  emacs-preview-latex-el emacs21-X11 emacs21-common lincvs 
0 upgraded, 0 newly installed, 8 removed and 0 not upgraded. 
Need to get 0B of archives. 
After unpacking 39.5MB disk space will be freed. 
Do you want to continue? [Y/n] 
 
Надо либо обновить testcase, либо закрыть как решённое. 
Речь шла о том, что при удалении одной альтернативы APT подставляет другую, 
тогда как человек хочет просто удалить и всё? </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84143</commentid>
    <comment_count>4</comment_count>
    <who name="Mikhail Gusarov">dottedmag</who>
    <bug_when>2009-01-10 01:27:05 +0300</bug_when>
    <thetext>Баг всё ещё актуален, или можно закрывать как worksforme?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84153</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2009-01-10 01:55:26 +0300</bug_when>
    <thetext>Видимо, за несколько лет исправилось...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>