ssh preinst script returns exit status 10
Yesterday I was using dselect to update my system (unstable packages). It was
generating the en_US locales when the machine spontaneously rebooted. After
the machine booted back up, debconf's database was corrupt. This prevented
dselect from installing the last few packages, which included ssh. I used the
fix_db.pl script, which seemed to fix the problem; I was able to update
everything but ssh. When "apt-get --reinstall install ssh" didn't work, I
tries to purge, then install the package. Needless to say, that didn't work
either. Now when I try to install ssh, I get the following output...
lukahn:/home/dvogel# apt-get install ssh
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
ssh-askpass
The following NEW packages will be installed:
ssh
0 packages upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/645kB of archives.
After unpacking 1507kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 66200 files and directories currently installed.)
Unpacking ssh (from .../ssh_1%3a3.6.1p2-5_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/ssh_1%3a3.6.1p2-5_i386.deb
(--unpack):
subprocess pre-installation script returned error exit status 10
Errors were encountered while processing:
/var/cache/apt/archives/ssh_1%3a3.6.1p2-5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
There is no /var/lib/dpkg/info/ssh.preinst (or any ssh script, for that
matter) to add "-x" to, so I tried increasing debconf's debugging level...
lukahn:/home/dvogel# apt-get install ssh
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
ssh-askpass
The following NEW packages will be installed:
ssh
0 packages upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/645kB of archives.
After unpacking 1507kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 66200 files and directories currently installed.)
Unpacking ssh (from .../ssh_1%3a3.6.1p2-5_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/ssh_1%3a3.6.1p2-5_i386.deb
(--unpack):
subprocess pre-installation script returned error exit status 10
Errors were encountered while processing:
/var/cache/apt/archives/ssh_1%3a3.6.1p2-5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
debconf (developer): --> 0 ok
(Reading database ... 66200 files and directories currently installed.)
Unpacking ssh (from .../ssh_1%3a3.6.1p2-5_i386.deb) ...
debconf (developer): frontend started
debconf (developer): frontend running, package name is ssh
debconf (developer): starting /var/lib/dpkg/tmp.ci/config configure
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- SET ssh/use_old_init_script true
debconf (developer): --> 10 ssh/use_old_init_script doesn't exist
debconf (developer): <-- FSET ssh/use_old_init_script seen true
debconf (developer): --> 10 ssh/use_old_init_script doesn't exist
debconf (developer): <-- INPUT medium ssh/protocol2_only
debconf (developer): --> 10 "ssh/protocol2_only" doesn't exist
debconf (developer): <-- INPUT high ssh/privsep_tell
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium ssh/SUID_client
debconf (developer): --> 10 "ssh/SUID_client" doesn't exist
debconf (developer): <-- SET ssh/run_sshd true
debconf (developer): --> 10 ssh/run_sshd doesn't exist
debconf (developer): <-- INPUT medium ssh/run_sshd
debconf (developer): --> 10 "ssh/run_sshd" doesn't exist
debconf (developer): <-- INPUT low ssh/forward_warning
debconf (developer): --> 10 "ssh/forward_warning" doesn't exist
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): starting /var/lib/dpkg/tmp.ci/preinst install
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- GET ssh/use_old_init_script
debconf (developer): --> 10 ssh/use_old_init_script doesn't exist
dpkg: error processing /var/cache/apt/archives/ssh_1%3a3.6.1p2-5_i386.deb
(--unpack):
subprocess pre-installation script returned error exit status 10
Errors were encountered while processing:
/var/cache/apt/archives/ssh_1%3a3.6.1p2-5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Anyone on this list know how I might solve this problem? Helpful hints? If you
do, be sure to CC me, as I'm not subscribed to the list.
Regards,
Drew Vogel
-------------------------------------------------
Reply to: