package openssh-client 1:6.6p1-2ubuntu2.8 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1

Bug #1682817 reported by saurabh sati
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Fix Released
Low
Colin Watson

Bug Description

/etc/init.d/ssh restart
stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.203" (uid=1000 pid=9912 comm="stop ssh ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.204" (uid=1000 pid=9903 comm="start ssh ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: openssh-client 1:6.6p1-2ubuntu2.8
ProcVersionSignature: Ubuntu 4.4.0-72.93~14.04.1-generic 4.4.49
Uname: Linux 4.4.0-72-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.23
Architecture: amd64
Date: Fri Apr 14 18:08:27 2017
DuplicateSignature: package:openssh-client:1:6.6p1-2ubuntu2.8:subprocess installed post-removal script returned error exit status 1
ErrorMessage: subprocess installed post-removal script returned error exit status 1
InstallationDate: Installed on 2016-01-30 (440 days ago)
InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
RelatedPackageVersions:
 ssh-askpass N/A
 libpam-ssh N/A
 keychain N/A
 ssh-askpass-gnome N/A
SSHClientVersion: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8, OpenSSL 1.0.1f 6 Jan 2014
SourcePackage: openssh
Title: package openssh-client 1:6.6p1-2ubuntu2.8 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
saurabh sati (saurabh703) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Robie Basak (racb) wrote :

From log:

Removing openssh-client (1:6.6p1-2ubuntu2.8) ...
Purging configuration files for openssh-client (1:6.6p1-2ubuntu2.8) ...
rmdir: failed to remove ‘/etc/ssh’: No such file or directory
dpkg: error processing package openssh-client (--purge):
 subprocess installed post-removal script returned error exit status 1

Revision history for this message
Robie Basak (racb) wrote :

Thank you for your report.

This looks like a local configuration problem, rather than a bug in Ubuntu.

You can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Since we use this bug tracker to track bugs in Ubuntu, rather than configuration problems, I'm marking this bug as Invalid. This helps us to focus on fixing bugs in Ubuntu.

If you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

Changed in openssh (Ubuntu):
status: New → Invalid
Revision history for this message
Colin Watson (cjwatson) wrote :

Well, I don't know. Sure, it's a bit weird that /etc/ssh is already gone by that point, but it's the desired state so the postrm shouldn't fail. I'll fix that in Debian.

Changed in openssh (Ubuntu):
status: Invalid → Fix Committed
importance: Undecided → Low
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openssh - 1:7.5p1-3

---------------
openssh (1:7.5p1-3) experimental; urgency=medium

  * Fix debian/adjust-openssl-dependencies to account for preferring
    libssl1.0-dev.
  * Adjust OpenSSL dependencies for openssh-client-ssh1 too.
  * Fix purge failure when /etc/ssh has already somehow been removed
    (LP: #1682817).
  * Ensure that /etc/ssh exists before trying to create /etc/ssh/sshd_config
    (LP: #1685022).

 -- Colin Watson <email address hidden> Tue, 02 May 2017 13:51:27 +0100

Changed in openssh (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.