[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh: upgrades from sarge stop due to conffile changes - Re: Bug#339978: marked as done ()



On Thu, Dec 07, 2006 at 06:24:14PM -0500, Justin Pryzby wrote:
> Did you also purge ssh{-{client,server}} and rm -fr /etc/ssh?

No, of course not.

> In my tests regarding conffiles/transition names, I had to dpkg -i
> both the transitional package and the new package name one in the same
> run (in your case, ssh and ssh-server, both of the new version):
>   http://lists.debian.org/debian-printing/2006/01/msg00058.html
> (it isn't clear to me why).

Well, as I recall the bug was due to dpkg corrupting one of its linked
lists, so it's allowed to be counter-intuitive. :-)

> So: dpkg -i ssh_old.deb && dpkg -i ssh{,-{client,server}}_new.deb

Ah, that was the problem: I hadn't been upgrading ssh, but only
installing openssh-client and openssh-server (which caused ssh to be
removed, although not purged).

I can now reproduce the problem by upgrading to 1:4.3p2-6 in testing.

I can confirm that the bug is fixed in 1:4.3p2-7 in unstable by
upgrading in the same manner. When upgrading without touching any
conffiles, I get:

  (Reading database ... 8904 files and directories currently installed.)
  Preparing to replace ssh 1:3.8.1p1-8.sarge.4 (using .../ssh_1%3a4.3p2-7_all.deb) ...
  Unpacking replacement ssh ...
  dpkg: warning - unable to delete old file `/etc/ssh': Directory not empty
  Selecting previously deselected package openssh-server.
  Unpacking openssh-server (from .../openssh-server_1%3a4.3p2-7_powerpc.deb) ...
  Transferring ownership of conffile /etc/default/ssh ...
  Transferring ownership of conffile /etc/init.d/ssh ...
  Transferring ownership of conffile /etc/pam.d/ssh ...
  Selecting previously deselected package openssh-client.
  Unpacking openssh-client (from .../openssh-client_1%3a4.3p2-7_powerpc.deb) ...
  Transferring ownership of conffile /etc/ssh/moduli ...
  Transferring ownership of conffile /etc/ssh/ssh_config ...
  Setting up openssh-client (4.3p2-7) ...
  
  Setting up openssh-server (4.3p2-7) ...
  Restarting OpenBSD Secure Shell server: sshd
  Warning: Fake start-stop-daemon called, doing nothing
  
  Warning: Fake start-stop-daemon called, doing nothing
  .
  
  Setting up ssh (4.3p2-7) ...
  

... while if I make spurious edits to /etc/ssh/ssh_config and
/etc/init.d/ssh first, I get:

  (Reading database ... 8904 files and directories currently installed.)
  Preparing to replace ssh 1:3.8.1p1-8.sarge.4 (using .../ssh_1%3a4.3p2-7_all.deb) ...
  Unpacking replacement ssh ...
  dpkg: warning - unable to delete old file `/etc/ssh': Directory not empty
  Selecting previously deselected package openssh-server.
  Unpacking openssh-server (from .../openssh-server_1%3a4.3p2-7_powerpc.deb) ...
  Transferring ownership of conffile /etc/default/ssh ...
  Transferring ownership of conffile /etc/pam.d/ssh ...
  Selecting previously deselected package openssh-client.
  Unpacking openssh-client (from .../openssh-client_1%3a4.3p2-7_powerpc.deb) ...
  Transferring ownership of conffile /etc/ssh/moduli ...
  Setting up openssh-client (4.3p2-7) ...
  
  Configuration file `/etc/ssh/ssh_config'
   ==> File on system created by you or by a script.
   ==> File also in package provided by package maintainer.
     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] ? y
  Installing new version of config file /etc/ssh/ssh_config ...
  
  Setting up openssh-server (4.3p2-7) ...
  
  Configuration file `/etc/init.d/ssh'
   ==> File on system created by you or by a script.
   ==> File also in package provided by package maintainer.
     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 (Y/I/N/O/D/Z) [default=N] ?
  Restarting OpenBSD Secure Shell server: sshd
  Warning: Fake start-stop-daemon called, doing nothing
  
  Warning: Fake start-stop-daemon called, doing nothing
  .
  
  Setting up ssh (4.3p2-7) ...
  

I think that the release team should feel confident about including this
in etch provided that the ssh-krb5 changes seem to be working out OK.

Thanks for your help!

-- 
Colin Watson                                       [cjwatson@debian.org]



Reply to: