Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #739469

Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals"

From Vincent Lefevre <vincent@vinc17.net>
Newsgroups linux.debian.bugs.dist
Subject Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals"
Date 2016-05-18 11:50 +0200
Message-ID <rA6h3-ix-1@gated-at.bofh.it> (permalink)
References (2 earlier) <ryEwz-6u9-27@gated-at.bofh.it> <rzCM1-6Ve-3@gated-at.bofh.it> <rzXGN-3dg-7@gated-at.bofh.it> <rzYWe-3Tq-5@gated-at.bofh.it> <rA5El-8tT-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2016-05-18 10:04:50 +0100, Manuel A. Fernandez Montecelo wrote:
> 2016-05-18 2:53 GMT+01:00 Vincent Lefevre <vincent@vinc17.net>:
> > On 2016-05-18 01:26:45 +0100, Manuel A. Fernandez Montecelo wrote:
> >> 2016-05-17 3:15 GMT+01:00 Vincent Lefevre <vincent@vinc17.net>:
> >> > But note that I use SolutionCost "safety, removals", so that it should
> >> > avoid packages from experimental or remove packages.
> >>
> >> aptitude never did that... and never will.
> >
> > I don't see why.
> 
> Because aptitude also (or dare I say, *mostly*) caters for people who
> want these solutions to be offered, and because I am not going to
> spend time implementing solutions that complicate more the resolver
> just to avoid those cases.

People who want these solutions to be offered will obviously not use
SolutionCost "safety, removals".

> I explained this to you in previous occasions already.
> 
> Apart from that, this problem is not about "unadvertently upgrading to
> experimental", it's a simple conflicts of multi-arch packages not in
> sync.  I don't see why you keep bringing the same issue in all bug
> reports and conflating things, it's quite annoying.

I understand that this is a conflict, but the solution to solve a
conflict with SolutionCost "safety, removals" should be: keep all
the related packages at their current versions.

> >> You can surely guide the resolver to a solution that amounts to not
> >> upgrade any package.
> >
> > How?
> 
> With approvals and rejects:
> 
>   http://aptitude.alioth.debian.org/doc/en/ch02s03s03.html

Perhaps this could work. But this is still annoying to have to reject
removals manually.

> Or marking all packages to keep (":") in the root of the Upgradable tree.

But this prevents any upgrade.

> If aptitude is asked to mark all upgradable packages to upgrade and
> finds conflicts, it's quite natural than then it reports conflicts and
> that you have to pick the upgrades one by one (or use the resolver
> effectively).

But what I seek is to resolve conflicts by keeping all the related
packages at their current version.

> So I understand why you find it inconvenient/annoying, but aptitude
> cannot magically fix things for you, specially since you using stable,
> unstable and experimental at the same time, and multi-arch with out of
> sync packages.

Again, this is not magic. This is very easy to do manually (but
tedious):

  For each package proposed for upgrade:
  1. Type '+'.
  2. If there is any removal, cancel.
  3. Otherwise, choose to upgrade.

Everything that is possible to do manually with a predetermined
decision should be possible to do automatically.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" Vincent Lefevre <vincent@vinc17.net> - 2016-05-10 16:40 +0200
  Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com> - 2016-05-14 12:00 +0200
    Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" Vincent Lefevre <vincent@vinc17.net> - 2016-05-17 04:20 +0200
      Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com> - 2016-05-18 02:40 +0200
        Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" Vincent Lefevre <vincent@vinc17.net> - 2016-05-18 04:00 +0200
          Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com> - 2016-05-18 11:10 +0200
            Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" Vincent Lefevre <vincent@vinc17.net> - 2016-05-18 11:50 +0200
              Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com> - 2016-05-18 13:20 +0200
                Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" Vincent Lefevre <vincent@vinc17.net> - 2016-05-18 14:50 +0200
            Bug#823928: aptitude wants to remove manually installed packages with SolutionCost "safety, removals" "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com> - 2016-05-18 11:50 +0200

csiph-web