[Bug 173904] Re: (un)markauto tries to remove packages unnecessarily
Daniel Hartwig
mandyke at gmail.com
Mon Jul 28 03:20:29 UTC 2014
** Bug watch added: Debian Bug tracker #142699
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=142699
** Also affects: aptitude (Debian) via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=142699
Importance: Unknown
Status: Unknown
** No longer affects: aptitude (Debian)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptitude in Ubuntu.
https://bugs.launchpad.net/bugs/173904
Title:
(un)markauto tries to remove packages unnecessarily
Status in “aptitude” package in Ubuntu:
Triaged
Bug description:
Binary package hint: aptitude
On gutsy, using aptitude unmarkauto or aptitude markauto, to change the automatically installed status of a package
that does not have any other packages dependent on it, causes aptitude to remove the package.
For example:
$ aptitude search ~neukleides
i A eukleides - Euclidean geometry drawing language
i xeukleides - System for drawing and viewing Euclidean geometry figures
xeukleides depends on eukleides, I can mark eukleides as not automatically installed without any problems:
$ sudo aptitude unmarkauto eukleides
[...]
$ aptitude search ~neukleides
i eukleides - Euclidean geometry drawing language
i xeukleides - System for drawing and viewing Euclidean geometry figures
And I can mark eukleides as automatically installed again:
$ sudo aptitude unmarkauto eukleides
[...]
$ aptitude search ~neukleides
i A eukleides - Euclidean geometry drawing language
i xeukleides - System for drawing and viewing Euclidean geometry figures
No packages depend on xeukleides. When I try to mark xeukleides as automatically installed, aptitude wants to remove xeukleides:
$ aptitude -s markauto xeukleides
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
eukleides xeukleides
0 packages upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 872kB will be freed.
Do you want to continue? [Y/n/?]
Would download/install/remove packages.
I now remove xeukleides:
$ sudo apt-get remove xeukleides
[...]
The following packages were automatically installed and are no longer required:
eukleides
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
xeukleides
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 254kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 160896 files and directories currently installed.)
Removing xeukleides ...
Now no packages depend on eukleides, I try to mark eukleides as not automatically installed and aptitude wants to remove it:
$ aptitude -s unmarkauto eukleides
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
eukleides
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 618kB will be freed.
Do you want to continue? [Y/n/?]
Would download/install/remove packages.
I'm using aptitude version 0.4.6.1:
$ aptitude --version
aptitude 0.4.6.1 compiled at Sep 15 2007 09:21:46
Compiler: g++ 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)
NCurses version: 5.6
libsigc++ version: 2.0.17
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/173904/+subscriptions
More information about the foundations-bugs
mailing list