*** This bug is a duplicate of bug 457247 ***
    https://bugs.launchpad.net/bugs/457247

I got the same error (likewise-open wouldn't uninstall), but it had
another cause, so I dispute the duplicate status. I got:

$ sudo apt-get remove likewise-open 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  likewise-open
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 8,069kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 299257 files and directories currently installed.)
Removing likewise-open ...
dpkg: error processing likewise-open (--remove):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 likewise-open
E: Sub-process /usr/bin/dpkg returned an error code (1)
$

Manually running through the prerm script steps from /var/lib/dpkg/info
/likewise-open.prerm I noticed that the following command failed:

$ sudo /usr/bin/domainjoin-cli configure --disable ssh

Error: Unable to find ssh binary [code 0x00002017]

A sshd config file was found at '/etc/ssh/sshd_config', which indicates that
sshd is installed on your system. However the sshd binary could not be found in
the search path
'/usr/sbin:/opt/ssh/sbin:/usr/local/sbin:/usr/bin:/opt/ssh/bin:/usr/local/bin:/u
sr/lib/ssh:/usr/openssh/sbin:/usr/openssh/bin:/opt/csw/sbin:/opt/csw/bin'. In
order to configure sshd, please either symlink the sshd binary into an existing
search path, or ask Likewise support to extend the search path.
$ which sshd
$

I had removed sshd, but didn't purge it, so the config was still left.
Renaming /etc/ssh/sshd_config to something else made that particular
command run successfully, and the prerm script ran fine. I also got the
[fail] while dpkg was running the prerm-script, but that didn't cause
the script to crash, so it was just a minor annoyance.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/452228

Title:
  package likewise-open5-netlogon 5.0.3991.1+krb5-0ubuntu2 failed to
  install/upgrade: subprocess new pre-removal script returned error exit
  status 1

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to