Lmloge
2019-Dec-04 09:48 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
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
L.P.H. van Belle
2019-Dec-04 11:49 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
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-freeYes, 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> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Lmloge via samba > Verzonden: woensdag 4 december 2019 10:49 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Upgrading from Debian Stretch to Buster, > Van Belle package > > 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 > >
Lmloge
2019-Dec-19 18:15 UTC
[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 >
Rowland penny
2019-Dec-19 18:38 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
On 19/12/2019 18:15, Lmloge via samba wrote:> 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 directoryIs the samba-libs package installed ? That is where the missing .so is from. Rowland
L.P.H. van Belle
2019-Dec-20 07:48 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
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 > >
Lmloge
2019-Dec-20 10:09 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Hello, > Looks like your in the middle of the dist-upgrade in buster. Yes indeed. > looks like bind is upgrading and samba-libs is not yet installed. Indeed, I think it is not: # dpkg -L samba-libs dpkg-query: package 'samba-libs' is not installed Also the following directories no longer exist: - /usr/lib/x86_64-linux-gnu/samba/ - /var/lib/samba/bind-dns/ > apt-get update --fix-missing OK > apt-get install -f -------------- Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up bind9 (1:9.11.5.P4+dfsg-5.1) ... 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 Fri 2019-12-20 10:36:41 CET; 9ms ago ???? Docs: man:named(8) ? Process: 3313 ExecStart=/usr/sbin/named $OPTIONS (code=exited, status=1/FAILURE) Dec 20 10:36:41 MACHINE named[3314]: Loading 'AD DNS Zone' using driver dlopen Dec 20 10:36:41 MACHINE named[3314]: 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 20 10:36:41 MACHINE named[3314]: dlz_dlopen of 'AD DNS Zone' failed Dec 20 10:36:41 MACHINE named[3314]: SDLZ driver failed to load. Dec 20 10:36:41 MACHINE named[3314]: DLZ driver failed to load. Dec 20 10:36:41 MACHINE named[3314]: loading configuration: failure Dec 20 10:36:41 MACHINE named[3314]: exiting (due to fatal error) Dec 20 10:36:41 MACHINE systemd[1]: bind9.service: Control process exited, code=exited, status=1/FAILURE Dec 20 10:36:41 MACHINE systemd[1]: bind9.service: Failed with result 'exit-code'. Dec 20 10:36:41 MACHINE systemd[1]: Failed to start BIND Domain Name Server. 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) -------------- I should stop here, but I also tried the other things you suggested, just in case.> systemctl edit bind9 > # that opens this file : > # /etc/systemd/system/bind9.service.d/override.conf > # Add : > [Service] > ExecReloadI did that. > 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. Is it in the file "/etc/bind/named.conf.local" that I should make that comment? What I have in this file is: include "/var/lib/samba/private/named.conf" not: include "/var/lib/samba/bind-dns/named.conf" I commented the line that I have and re-launched the three commands: apt-get update --fix-missing apt-get install -f dpkg --configure -a They do not fail anymore but when I try to start bind, it fails. With the same error as before: 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 (By the way, I have no "sudo" command.) Best regards, -- L?a On 20/12/2019 8:48 AM, L.P.H. van Belle wrote:> 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": >>> debhttp://apt.van-belle.nl/debian buster-samba411 main contrib non-free >>> ????????????????????????????????? /\/\/\/\/\/\/\/\ >>> Thank you for your help. >>> Best regards, >>> -- >>> L?a
L.P.H. van Belle
2019-Dec-20 10:27 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Ok, thanks for the output's these are very usefull for me. Can you try this first.> Is it in the file "/etc/bind/named.conf.local" that I should make that comment? > What I have in this file is: > include "/var/lib/samba/private/named.conf" > not: include "/var/lib/samba/bind-dns/named.conf"Ok, these patch will change ( this started in samba 4.9.x ) Will do that later on, first finish the upgrade and then we make samba running again. disable this line in the bind config, if not done. //include "/var/lib/samba/private/named.conf" Ok, so you already did taht, but here i forgot to mention. After that change stop bind start bind, it thats ok. systemctl stop bind9 systemctl start bind9 Then run again: apt-get install -f Can you try that. Greetz, Louis ________________________________ Van: Lmloge [mailto:lmloge at orange.fr] Verzonden: vrijdag 20 december 2019 11:10 Aan: L.P.H. van Belle; samba at lists.samba.org Onderwerp: Re: [Samba] Upgrading from Debian Stretch to Buster, Van Belle package Hello, > Looks like your in the middle of the dist-upgrade in buster. Yes indeed. > looks like bind is upgrading and samba-libs is not yet installed. Indeed, I think it is not: # dpkg -L samba-libs dpkg-query: package 'samba-libs' is not installed Also the following directories no longer exist: - /usr/lib/x86_64-linux-gnu/samba/ - /var/lib/samba/bind-dns/ > apt-get update --fix-missing OK > apt-get install -f -------------- Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up bind9 (1:9.11.5.P4+dfsg-5.1) ... 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 Fri 2019-12-20 10:36:41 CET; 9ms ago Docs: man:named(8) Process: 3313 ExecStart=/usr/sbin/named $OPTIONS (code=exited, status=1/FAILURE) Dec 20 10:36:41 MACHINE named[3314]: Loading 'AD DNS Zone' using driver dlopen Dec 20 10:36:41 MACHINE named[3314]: 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 20 10:36:41 MACHINE named[3314]: dlz_dlopen of 'AD DNS Zone' failed Dec 20 10:36:41 MACHINE named[3314]: SDLZ driver failed to load. Dec 20 10:36:41 MACHINE named[3314]: DLZ driver failed to load. Dec 20 10:36:41 MACHINE named[3314]: loading configuration: failure Dec 20 10:36:41 MACHINE named[3314]: exiting (due to fatal error) Dec 20 10:36:41 MACHINE systemd[1]: bind9.service: Control process exited, code=exited, status=1/FAILURE Dec 20 10:36:41 MACHINE systemd[1]: bind9.service: Failed with result 'exit-code'. Dec 20 10:36:41 MACHINE systemd[1]: Failed to start BIND Domain Name Server. 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) -------------- I should stop here, but I also tried the other things you suggested, just in case. > systemctl edit bind9 > # that opens this file : > # /etc/systemd/system/bind9.service.d/override.conf > # Add : > [Service] > ExecReload I did that. > 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. Is it in the file "/etc/bind/named.conf.local" that I should make that comment? What I have in this file is: include "/var/lib/samba/private/named.conf" not: include "/var/lib/samba/bind-dns/named.conf" I commented the line that I have and re-launched the three commands: apt-get update --fix-missing apt-get install -f dpkg --configure -a They do not fail anymore but when I try to start bind, it fails. With the same error as before: 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 (By the way, I have no "sudo" command.) Best regards, -- L?a On 20/12/2019 8:48 AM, L.P.H. van Belle wrote: 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 [ MailScanner heeft een e-mail met mogelijk een poging tot fraude gevonden van "lists.samba.org" mailto:samba-bounces at lists.samba.org <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
Stefan G. Weichinger
2020-Jun-19 15:11 UTC
[Samba] Upgrading from Debian Stretch to Buster, Van Belle package
Am 19.12.19 um 19:15 schrieb Lmloge via samba:> 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.hijacking this older thread now: Did an upgrade from Debian 9.12 to Buster now ... libldb2 is not found in any repo, so only get samba-4.9.5 from debian repos: # apt-cache policy samba samba: Installiert: 2:4.9.5+dfsg-5+deb10u1 Installationskandidat: 2:4.9.5+dfsg-5+deb10u1 Versionstabelle: 2:4.10.15+dfsg-0.1buster1 500 500 http://apt.van-belle.nl/debian buster-samba410/main amd64 Packages *** 2:4.9.5+dfsg-5+deb10u1 990 990 http://security.debian.org buster/updates/main amd64 Packages 100 /var/lib/dpkg/status # apt-cache policy libldb2 N: Paket libldb2 kann nicht gefunden werden. Tried rm-ing samba, winbind, libldb1 ... some "--autoremove" and "--distupgrade" ... hmm, hints welcome. After 4.10 I'd like to go to 4.11.x as well. Greets, Stefan
Reasonably Related Threads
- Upgrading from Debian Stretch to Buster, Van Belle package
- Upgrading from Debian Stretch to Buster, Van Belle package
- Upgrading from Debian Stretch to Buster, Van Belle package
- Upgrading from Debian Stretch to Buster, Van Belle package
- Upgrading from Debian Stretch to Buster, Van Belle package