[Samba] Upgrading from Debian Stretch to Buster, Van Belle package

L.P.H. van Belle belle at bazuin.nl
Fri Dec 20 07:48:41 UTC 2019


Hai, 

Ok, for me so i know where you now at. 
Looks like your in the middle of the dist-upgrade in buster. 

Rowland is correct, looks like bind is upgrading and samba-libs is not yet installed. 
If samba-libs is installed, lookup this line in you bind config. 

include "/var/lib/samba/bind-dns/named.conf"; 

Open "/var/lib/samba/bind-dns/named.conf" and verify if its set to 
/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so	 <<   11 not 10 .

Other steps are : 

sudo apt-get update --fix-missing 
sudo apt-get install -f
sudo dpkg --configure -a

It looks like you did hit an old bug. 
You can add this : 

systemctl edit bind9
# that opens this file : 
# /etc/systemd/system/bind9.service.d/override.conf
# Add : 
[Service]
ExecReload=

# To prevent bind from crashing on reload with bind9_dlz.so enabled.

If all above is not working, 
Then disable this line : include "/var/lib/samba/bind-dns/named.conf";  
And repeat the apt-get steps from above. 


Greetz, 

Louis


> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Lmloge via samba
> Verzonden: donderdag 19 december 2019 19:15
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Upgrading from Debian Stretch to 
> Buster, Van Belle package
> 
> Hello Louis,
> 
> Sorry for my late answer.
> I couldn't work on that earlier.
> 
> So I did steps:
> stretch-samba48
> stretch-samba49
> stretch-samba410
> Then when your at 4.10 you can safe upgrade to buster to
> buster-samba410
> 
> At last step, apt-get dist-upgrade, bind9 failed:
> --------------------------------------------------------------
> -------------------------------------------------
> Installing new version of config file /etc/network/if-down.d/bind9 ...
> Installing new version of config file /etc/network/if-up.d/bind9 ...
> Installing new version of config file /etc/ppp/ip-down.d/bind9 ...
> Installing new version of config file /etc/ppp/ip-up.d/bind9 ...
> bind9-pkcs11.service is a disabled or a static unit not 
> running, not starting it.
> bind9-resolvconf.service is a disabled or a static unit not 
> running, not starting it.
> Job for bind9.service failed because the control process 
> exited with error code.
> See "systemctl status bind9.service" and "journalctl -xe" for details.
> invoke-rc.d: initscript bind9, action "restart" failed.
> ??? bind9.service - BIND Domain Name Server
>     Loaded: loaded (/lib/systemd/system/bind9.service; 
> enabled; vendor preset: enabled)
>     Active: failed (Result: exit-code) since Thu 2019-12-19 
> 18:58:04 CET; 7ms ago
>       Docs: man:named(8)
>    Process: 4847 ExecStart=/usr/sbin/named $OPTIONS 
> (code=exited, status=1/FAILURE)
>    Process: 4840 ExecStop=/usr/sbin/rndc stop (code=exited, 
> status=0/SUCCESS)
>   Main PID: 4795 (code=exited, status=0/SUCCESS)
> 
> Dec 19 18:58:04 leonora named[4848]: listening on IPv4 
> interface enp2s0, 192.168.3.4#53
> Dec 19 18:58:04 leonora named[4848]: generating session key 
> for dynamic DNS
> Dec 19 18:58:04 leonora named[4848]: sizing zone task pool 
> based on 5 zones
> Dec 19 18:58:04 leonora named[4848]: Loading 'AD DNS Zone' 
> using driver dlopen
> Dec 19 18:58:04 leonora named[4848]: dlz_dlopen failed to 
> open library 
> '/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so' - 
> /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so: cannot 
> open shared object file: No such file or directory
> Dec 19 18:58:04 leonora named[4848]: dlz_dlopen of 'AD DNS 
> Zone' failed
> Dec 19 18:58:04 leonora systemd[1]: bind9.service: Control 
> process exited, code=exited status=1
> Dec 19 18:58:04 leonora systemd[1]: Failed to start BIND 
> Domain Name Server.
> Dec 19 18:58:04 leonora systemd[1]: bind9.service: Unit 
> entered failed state.
> Dec 19 18:58:04 leonora systemd[1]: bind9.service: Failed 
> with result 'exit-code'.
> dpkg: error processing package bind9 (--configure):
>   installed bind9 package post-installation script subprocess 
> returned error exit status 1
> 
> [...]
> 
> Errors were encountered while processing:
>   bind9
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> W: Operation was interrupted before it could finish
> --------------------------------------------------------------
> -------------------------------------------------
> 
> Can you help?
> Best regards,
> --
> Léa
> 
> 
> ==============================================================
> =================================================
> Hai Léa,
> 
> If you on debian stretch now, i suggest you do the following.
> 
> First upgrade samba on debian stretch, upto 4.10.10.
> 
> >/Is it this line that I will have to put in 
> />/"/etc/apt/sources.list.d/van-belle.list": />/deb 
> http://apt.van-belle.nl/debian buster-samba411 main 
> />/contrib non-free /
> Yes, but as said, i suggest, use small steps in the upgrade.
> 
> stretch-samba48
> stretch-samba49
> stretch-samba410
> Then when your at 4.10 you can safe upgrade to buster to
> buster-samba410
> buster-samba411
> 
> When upgrading use : apt-get dist-upgrade --autoremove
> Which is needed to replace and remove optional samba packages.
> In the step from 4.10 to 4.11 the upgrade might stop.
> Then use: apt --fix-broken install
> That should remove libldb1 and upgrade contineus with 
> installing libldb2.
> 
> So far,
> 
> 
> Greetz,
> 
> Louis
> 
> 
> ==============================================================
> =================================================
> 
> On 04/12/2019 10:48 AM, Lmloge wrote:
> > Hello,
> >
> > I am preparing for upgrading from Debian Stretch to Buster.
> > I am using Louis Van Belle's Samba packages.
> >
> > My current Samba version is:
> > # smbstatus --version
> > Version 4.7.7-Debian
> >
> > I can see that the Samba version that will be installed, when I 
> > upgrade from Stretch to Buster, will be the 4.11 since this is the 
> > current stable release...
> >
> > I would like to know if there are major changes between those two 
> > versions.
> > (This is because in the past, I had to face the passage 
> from Samba3 to 
> > Samba4 without having been prepared to it and my system was broken 
> > down for several weeks before I could set up, thanks to 
> Rowland Penny, 
> > a proper system.)
> >
> > Is it this line that I will have to put in 
> > "/etc/apt/sources.list.d/van-belle.list":
> > deb http://apt.van-belle.nl/debian buster-samba411 main 
> contrib non-free
> >                                   /\/\/\/\/\/\/\/\
> > Thank you for your help.
> > Best regards,
> > -- 
> > Léa
> >
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 




More information about the samba mailing list