package openssh-server 1:7.6p1-4ubuntu0.1 failed to install/upgrade: installed openssh-server package post-installation script subprocess returned error exit status 127

Bug #1802644 reported by jhecn
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Automatically created.

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: openssh-server 1:7.6p1-4ubuntu0.1
ProcVersionSignature: Ubuntu 4.15.0-38.41-generic 4.15.18
Uname: Linux 4.15.0-38-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
Date: Sat Nov 10 14:22:59 2018
DuplicateSignature:
 package:openssh-server:1:7.6p1-4ubuntu0.1
 Setting up openssh-server (1:7.6p1-4ubuntu0.1) ...
 awk: symbol lookup error: /usr/local/lib/libreadline.so.7: undefined symbol: UP
 dpkg: error processing package openssh-server (--configure):
  installed openssh-server package post-installation script subprocess returned error exit status 127
ErrorMessage: installed openssh-server package post-installation script subprocess returned error exit status 127
Python3Details: /usr/bin/python3.6, Python 3.6.6, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2.1
 apt 1.6.6
SourcePackage: openssh
Title: package openssh-server 1:7.6p1-4ubuntu0.1 failed to install/upgrade: installed openssh-server package post-installation script subprocess returned error exit status 127
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
jhecn (jpegubuntu) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
your log is rather short so I can't be sure, but I see this issue:
  Setting up openssh-server (1:7.6p1-4ubuntu0.1) ...
  awk: symbol lookup error: /usr/local/lib/libreadline.so.7: undefined symbol: UP

That in turn does not reproduce for me so it has to be some config/setup on your machine and I wonder what it is.

I checked for similar cases and found a few where people had alternative (self-built/tarball install) libreadline*.so files in /lib or /usr/local/
Obviously if those are preferred by the linker and not matching what awk is built against it might fail.

Please take a look if you have any alien libreadline shared objects and remove them.
Then this should work as it is supposed to work.

I'd expect that awk fails all the time for you.
If it does you might check with:
  ldd /usr/bin/awk
where it resolves it's libreadline from

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Since it seems likely to me that this is a local configuration problem, rather than a bug in Ubuntu, I'm marking this bug as Incomplete.

If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Or 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 → Incomplete
Revision history for this message
jhecn (jpegubuntu) wrote :

Hi,
thanks for the analysis. Indeed I had installed a custom version of libreadline and it caused many troubles (even preventing Ubuntu to start).
I do not have enough knowledge so I could not link it to this bug I reported because Ubuntu proposed me to report it.
I will change the status as "Invalid". If you think that this is not correct, please change.

Changed in openssh (Ubuntu):
status: Incomplete → Invalid
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.