[Aptitude-devel] Bug#702561: aptitude: resolver hints (Aptitude::ProblemResolver::Hints=reject openssh-server :UNINST) being ignored
Axel Beckert
abe at debian.org
Fri Mar 8 13:37:01 UTC 2013
Hi,
Axel Beckert wrote:
> I tried to make the following command (which is a stripped-down version
> of a command that aptitude-robot would execute) not removing
> openssh-server under any circumstances:
>
> # aptitude full-upgrade '~U' openssh-client+ openssh-server:
> The following packages will be REMOVED:
> libbsd0{u} libedit2{u} openssh-client{u}
> 0 packages upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
> Need to get 0 B of archives. After unpacking 2665 kB will be freed.
> The following packages have unmet dependencies:
> openssh-server : Depends: openssh-client (= 1:6.0p1-3) but it is not
> going to be installed.
> The following actions will resolve these dependencies:
>
> Remove the following packages:
> 1) openssh-server
>
>
>
> Accept this solution? [Y/n/q/?] ^C
JFTR: Using hold instead of keep ("=" instead of ":") results in the
wanted solution (but hinders a later manual upgrade by the admin).
# aptitude -P full-upgrade '~U' openssh-client+ openssh-server=
The following packages have been kept back:
openssh-server{b}
The following packages will be REMOVED:
libbsd0{u} libedit2{u} openssh-client{u}
0 packages upgraded, 0 newly installed, 3 to remove and 1 not
upgraded.
Need to get 0 B of archives. After unpacking 2665 kB will be freed.
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:6.0p1-3) but it is not
going to be installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libbsd0 [0.4.2-1 (now, testing)]
2) libedit2 [2.11-20080614-5 (now, testing)]
3) openssh-client [1:6.0p1-3 (now)]
Accept this solution? [Y/n/q/?] ^C
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
More information about the Aptitude-devel
mailing list