Bug#402903: openssh-server: trying to overwrite `/etc/init.d/ssh', which is,also in package ssh
*** Please type your report below this line ***
Upgrading from the current sarge ssh package in a dist-upgrade to etch
caused ssh to break.
Here is a segment of the apt-get dist-upgrade output:
Unpacking openssh-client (from .../openssh-client_1%3a4.3p2-7_i386.deb) ...
Transferring ownership of conffile /etc/ssh/moduli ...
Transferring ownership of conffile /etc/ssh/ssh_config ...
dpkg: error processing
trying to overwrite `/etc/ssh/ssh_config', which is also in package ssh
Aborting ownership transfer of conffile /etc/ssh/moduli ...
Aborting ownership transfer of conffile /etc/ssh/ssh_config ...
Preparing to replace ssh 1:3.8.1p1-8.sarge.6 (using
Unpacking replacement ssh ...
dpkg: warning - unable to delete old directory `/etc/ssh': Directory not
Selecting previously deselected package openssh-server.
Unpacking openssh-server (from .../openssh-server_1%3a4.3p2-7_i386.deb) ...
Transferring ownership of conffile /etc/init.d/ssh ...
Transferring ownership of conffile /etc/pam.d/ssh ...
dpkg: error processing
trying to overwrite `/etc/init.d/ssh', which is also in package ssh
Aborting ownership transfer of conffile /etc/init.d/ssh ...
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Aborting ownership transfer of conffile /etc/pam.d/ssh ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Also breaks the openssh-client package
I was able to resolve by:
apt-get remove ssh && apt-get install openssh-client openssh-server
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.26
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages openssh-server depends on:
ii adduser 3.100 Add and remove users and groups
ii debconf 1.5.8 Debian configuration
ii dpkg 1.13.24 package maintenance system
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libcomer 1.39+1.40-WIP-2006.11.14+dfsg-1 common error description
ii libkrb53 1.4.4-4 MIT Kerberos runtime libraries
ii libpam-m 0.79-4 Pluggable Authentication
ii libpam-r 0.79-4 Runtime support for the PAM
ii libpam0g 0.79-4 Pluggable Authentication
ii libselin 1.32-3 SELinux shared libraries
ii libssl0. 0.9.8c-4 SSL shared libraries
ii libwrap0 7.6.dbs-11 Wietse Venema's TCP
ii openssh- 1:4.3p2-7 Secure shell client, an
ii zlib1g 1:1.2.3-13 compression library - runtime
openssh-server recommends no packages.
-- debconf information:
* ssh/use_old_init_script: true