On 01/31/2013 02:58 PM, Colin Watson wrote:
On Thu, Jan 31, 2013 at 01:51:08PM -0500, Brian Szymański wrote:After building a newer version of openssh-client from source, I noticed that openssh-server requires an exact version of openssh-client. Surely, this can be replaced with a >= dependency?Maybe. Wouldn't it be kind of weird if you upgraded just openssh-client and now /usr/share/doc/openssh-server/changelog.Debian.gz claimed a newer version, though? (To avoid wasting space, /usr/share/doc/openssh-server is a symlink to openssh-client.) I'm not implacably opposed to changing this, but since it would cause slight oddities like this I'd need a reason. What practical problem is this causing?
Sorry. I should have mentioned that! The reason I noticed this at all is that I ran into the below situation when installing openssh-client built on 10.04 but from 12.04's debsrc:
ski@mandela:~$ sudo apt-get -f install #just used as a status check Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.ski@mandela:~$ sudo dpkg -i openssh-client_5.9p1-5ubuntu1_amd64---built-from-precise-source-with-lucid-libraries-2013-01-31-by-ski.deb
(Reading database ... 91316 files and directories currently installed.)Preparing to replace openssh-client 1:5.3p1-3ubuntu7 (using openssh-client_5.9p1-5ubuntu1_amd64---built-from-precise-source-with-lucid-libraries-2013-01-31-by-ski.deb) ...
Unpacking replacement openssh-client ...
Setting up openssh-client (1:5.9p1-5ubuntu1) ...
Configuration file `/etc/ssh/ssh_config'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** ssh_config (Y/I/N/O/D/Z) [default=N] ? n
Processing triggers for man-db ...
ski@mandela:~$ dpkg -l | grep openssh-
ii openssh-client 1:5.9p1-5ubuntu1
secure shell (SSH) client, for secure access
ii openssh-server 1:5.3p1-3ubuntu7
secure shell (SSH) server, for secure access
ski@mandela:~$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run `apt-get -f install' to correct these. The following packages have unmet dependencies:openssh-server: Depends: openssh-client (= 1:5.3p1-3ubuntu7) but 1:5.9p1-5ubuntu1 is installed
E: Unmet dependencies. Try using -f. ski@mandela:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED: openssh-server 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 819kB disk space will be freed. Do you want to continue [Y/n]? ^C Thanks, Brian Szymanski