Can't upgrade samba-common-bin: undefined symbol: smb_strtoul

Bug #1876622 reported by Peter de Kraker
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I upgraded my 18.04 system to 20.04 a week ago. Today I did a apt-get dist-upgrade and new Samba version where there, and I tried upgrading. However, I got the following error:

Setting up samba-common-bin (2:4.11.6+dfsg-0ubuntu1.1) ...
Checking smb.conf with testparm
testparm: symbol lookup error: /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0: undefined symbol: smb_strtoul, version SAMBA_UTIL_0.0.1
dpkg: error processing package samba-common-bin (--configure):
 installed samba-common-bin package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of samba:
 samba depends on samba-common-bin (= 2:4.11.6+dfsg-0ubuntu1.1); however:
  Package samba-common-bin is not configured yet.

dpkg: error processing package samba (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 samba-common-bin
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems to fail at testparm of smb.conf, so I reverted that one temporarily to the standard smb.conf, not my own customized one. Still it always fails.
I removed all samba and smb packages, and reinstalled, same issue.

Description: Ubuntu 20.04 LTS
Release: 20.04

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

You may have had an old samba from 18.04 still installing, as a result of your release upgrade. Could you please run this command and show the output?

dpkg -l | grep -E "(samba|smb|registry-tools|winbind|libwbclient|ctdb)"

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Paride Legovini (paride) wrote :

Hello Peter and thanks for this bug report. Could you please copy and paste the output of the following command:

  dpkg -l 'samba*'

ran on the affected system? I can't reproduce the problem, so I'd like to see which arch you are using and the exact versions of all the samba* packages.

Does it crash if you just run 'testparm' manually?

I'm marking this report as Incomplete for the moment. Please change the status back to New after commenting back. Thanks!

Revision history for this message
Peter de Kraker (peterdekraker) wrote :

dpkg -l | grep -E "(samba|smb|registry-tools|winbind|libwbclient|ctdb)"
ii libsmbclient:amd64 2:4.11.6+dfsg-0ubuntu1.1 amd64 shared library for communication with SMB/CIFS servers
ii libsmbios-c2 2.4.3-1 amd64 Provide access to (SM)BIOS information -- dynamic library
ii libwbclient0:amd64 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba winbind client library
ii python3-samba 2:4.11.6+dfsg-0ubuntu1.1 amd64 Python 3 bindings for Samba
iU samba 2:4.11.6+dfsg-0ubuntu1.1 amd64 SMB/CIFS file, print, and login server for Unix
ii samba-common 2:4.11.6+dfsg-0ubuntu1.1 all common files used by both the Samba server and client
iF samba-common-bin 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba common files used by both the server and the client
ii samba-dsdb-modules:amd64 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba Directory Services Database
ii samba-libs:amd64 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba core libraries
ii samba-vfs-modules:amd64 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba Virtual FileSystem plugins

dpkg -l 'samba*'
Gevraagd=(U)onbekend/(I)nstalleren/ve(R)wijderen/(P)wissen/(H)ouden
| Status=Niet/Inst/Conf/Uitgep/halF-geconf/Halfgeïnst/verWacht-trig/Trig-bezig
|/ Fout?=(geen)/heRinst. nodig/ (Status,Fout: hoofdletter=ernstig)
||/ Naam Versie Architectuur Omschrijving
+++-========================-========================-============-================================>
iU samba 2:4.11.6+dfsg-0ubuntu1.1 amd64 SMB/CIFS file, print, and login >
ii samba-common 2:4.11.6+dfsg-0ubuntu1.1 all common files used by both the Sa>
iF samba-common-bin 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba common files used by both >
ii samba-dsdb-modules:amd64 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba Directory Services Database
ii samba-libs:amd64 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba core libraries
un samba-testsuite <geen> <geen> (geen beschrijving beschikbaar)
ii samba-vfs-modules:amd64 2:4.11.6+dfsg-0ubuntu1.1 amd64 Samba Virtual FileSystem plugins

I don't see any issues in that list.

I remember vaguely that I installed a self built Samba back then to use the OSX timemachine support. Maybe that is conflicting/still exists somewhere.

I did ran testparm myself, and got no issues.

Thanks for getting back to me!

Revision history for this message
Peter de Kraker (peterdekraker) wrote :

Ok, I found a install in /usr/lib and the source package in my home's tmp dir. I ran a make uninstall, and that removed everything samba related from /usr. I now can get past the error. Still some issues, but those seem to be not related to the Ubuntu package itself.

Thanks!

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Yeah, that was probably the cause. To finish fixing your system regarding the samba packages, you should be able to run these now:

sudo apt update
sudo apt -f install

Play close attention to what the last one tells you ("-f" stands for "fix"). If it doesn't look unreasonable and it's asking you to proceed, you may do so. In the end, the dpkg -l list should only contain "ii" or "rc" packages, not iU or iF which indicates problems.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Sorry, "Pay close attention", not "Play" :)

Revision history for this message
Peter de Kraker (peterdekraker) wrote :

Thanks, issues are solved and after a reboot everything worked.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks for getting back to us. I'll close the bug.

Changed in samba (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.