L. van Belle
2022-Jun-10 11:36 UTC
[Samba] Debian Bullseye Samba 4.16.1 is online (amd64/i386/armhf/arm64/sources)
Greatings people around the world.. So it's finaly done.. The 4.16.x line is online on my repo. What happened? why did it take this long? what is/was going on. !! Well, Debian has a new Samba maintainer and lots of changes where made, lots of improvements. I mentioned this already few times. Debian is now using more of the original samba source on its build depends for example. While this process was going on, I couldn?t do much then wait this out and watch on the changes. Since Debian Samba is now way more up2date, it also makes my builds more easy. The instructions on site will be changed bit later on so here you do with the new setup instructions.. So you now have choices in Debian Bullseye. 1) Debian Samba (stable) : 2:4.13.13+dfsg-1~deb11u3 2) Debian Samba (stable-backports) : 2:4.16.1+dfsg-8~bpo11+1 3) Debian Samba VanBelle repo : 2:4.16.1+dfsg-8.1nmu1~deb11+1 So whats the difference now between my version and the backports version, which now are minimal. Current changes: samba (2:4.16.1+dfsg-8.1nmu1~deb11+1) bullseye; urgency=medium . * Non-maintainer upload. * Rebuild from Debian Salsa for Bulleye. * d/controle, re-added libtracker-sparql-2.0-dev in build depends to support Gnome Trackers Backend * Refreshed patches So all I really changed here is, I added libtracker-sparql-2.0-dev for Gnome Tracker support. Resulting, if you don?t use Gnome Tracker, you can use debian-backports also. Im not hurt is you do so, I'm still here and doing some packaging and helping out where I can. Please read before you start.: https://backports.debian.org/Instructions/ I quote from that page: All backports are deactivated by default so that the normal operation of a stable installation will not be compromised with potentially disruptive changes (such as incompatible configuration schema). Release files make this possible, and all backported packages are pinned to priority 100 via ButAutomaticUpgrades: yes now, due to that, not all package might be upgraded or installed when you use this command. apt install -t bullseye-backports <packages> Pin priorities. 500 debian-stable 100 debian-backports 500 VanBelle repo. info in pinning : https://wiki.debian.org/AptConfiguration and I do suggest you read it. I'm working on this; Generate the pinning file for only the samba packages *( and it depends). Done by example from above AptConfiguration link. I currently have this script. Im open for ideas or improvments. ##---- #!/bin/bash # Tested only on Debian Bullseye. # The OS Distro release name. PIN_RELEASE="bullseye" # All samba packages and depends *( might not have all in here, if you added more, please CC me.) PIN_PACKAGES="ctdb ctdb-dbgsym ldb-tools ldb-tools-dbgsym libldb2 libldb2-dbgsym libldb-dev libnss-winbind libnss-winbind-dbgsym libpam-winbind libpam-winbind-dbgsym libsmbclient libsmbclient-dbgsym libsmbclient-dev libwbclient0 libwbclient0-dbgsym libwbclient-dev python3-ldb python3-ldb-dbgsym python3-ldb-dev python3-samba python3-samba-dbgsym registry-tools registry-tools-dbgsym samba samba-common samba-common-bin samba-common-bin-dbgsym samba-dbgsym samba-dev samba-dsdb-modules samba-dsdb-modules-dbgsym samba-libs samba-libs-dbgsym samba-testsuite samba-testsuite-dbgsym samba-vfs-modules samba-vfs-modules-dbgsym smbclient smbclient-dbgsym winbind winbind-dbgsym libtevent0 libtdb1 libtalloc2" # Not really needed to change this, but you can change it. PIN_FILENAME="/etc/apt/preferences.d/80-${PIN_RELEASE}-backports-samba" # Reset the pinning file> "${PIN_FILENAME}"{ echo "#############################################" echo "# Never prefer packages from the Debian Backports deb.debian.org repository" echo "# info : https://wiki.debian.org/AptConfiguration" echo echo "Package: *" echo "Pin: release o=Debian Backports,a=${PIN_RELEASE}-backports" echo "Pin: origin deb.debian.org" echo "Pin-Priority: 1" echo echo "#############################################" echo "# The Samba packages list starts here" echo } > "${PIN_FILENAME}" # Big list of the samba packages and it depends. for x in ${PIN_PACKAGES} do { echo "Package: ${x}" echo "Pin: release o=Debian Backports,a=${PIN_RELEASE}-backports" echo "Pin: origin deb.debian.org" echo "Pin-Priority: 500" echo } >> "${PIN_FILENAME}" done ##---- The setup for this. ### Setting up Apt. # Install whats needed for apt and https apt-get install apt-transport-https gnupg # Get my GPG Key wget -O- https://apt.van-belle.nl/louis-van-belle.gpg-key.asc |\ gpg --dearmor | sudo tee /usr/share/keyrings/louis-van-belle.gpg > /dev/null # Adding a header in the .list file. echo "# AptVanBelle repo for Samba 4.16 and up." | sudo tee -a /etc/apt/sources.list.d/van-belle.list echo "# You need Debian Bullseye Backports also for the depends on Samba. " | sudo tee -a /etc/apt/sources.list.d/van-belle.list # Adding the repo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/louis-van-belle.gpg] http://apt.van-belle.nl/debian/ $(lsb_release -sc)-samba416 main" |\ sudo tee -a /etc/apt/sources.list.d/van-belle.list # Adding Debian Bullseye Backports ! without it my packages wont install.. !! # We need the Samba dependecies from it. deb http://deb.debian.org/debian bullseye-backports main ##### Settings for apt end here. !! You might already have backports in /etc/apt/sources.list Please check that and disable it. We now have these setup/options. 1) Debian Samba (stable) : 2:4.13.13+dfsg-1~deb11u3 2) Debian Samba (stable-backports) : 2:4.16.1+dfsg-8~bpo11+1 3) Debian Samba VanBelle repo : 2:4.16.1+dfsg-8.1nmu1~deb11+1 So, how now and what to watch for. The sources file is setup. you want to install samba. Normaly you do : apt install samba winbind. which will result in : apt install samba winbind Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: samba : Depends: python3-samba but it is not installable Depends: samba-common-bin (= 2:4.16.1+dfsg-8.1nmu1~deb11+1) but it is not installable winbind : Depends: samba-common-bin (= 2:4.16.1+dfsg-8.1nmu1~deb11+1) but it is not installable E: Unable to correct problems, you have held broken packages. The "correct" way to install is. apt install -t bullseye-backports samba winbind *( extra packages here if needed, depending on what you using from samba) Removing samba to go back to a previous release, use : apt remove --autoremove samba winbind Disable the needed lines in the sources-list files and install samba back as normaly. !! DON?T use --purge, that purges config files and you don?t want that. With above config, this pulls in my packages from my repo and its depends from debian-backports. if you don?t want my packagse but only the backported samba version, then just disable the apt line of my repo. apt update apt remove --autoremove samba winbind (* optional extra packages here) apt install samba winbind (* optional extra packages here) if you get a report that its missing a depend as not installable, add that package to the : apt install -t bullseye-backports samba winbind [extra_missingPackage] Im looking for a way to make this install process more easy, we just have a lot of depends on samba.. If you have tips, hints let me know. Im looking now into reposync so I can pull in the debian backports depends for samba into my repo without having to re-compile them. I you know a package/setup that can do this, a mail with a link is very appriciated.. Enjoy, questions on this, You have 3.5hour untill the weekend starts for me. ? Greetz, Louis
spindles seven
2022-Jun-10 18:07 UTC
[Samba] Debian Bullseye Samba 4.16.1 is online (amd64/i386/armhf/arm64/sources)
On 10 June 2022 12:37 L. van Belle wrote:> > if you get a report that its missing a depend as not installable, add that package to > the : apt install -t bullseye-backports samba winbind [extra_missingPackage] Im > looking for a way to make this install process more easy, we just have a lot of > depends on samba.. >Hi Louis, Many thanks for all your hard work, much appreciated. I was running samba-4.15.7 (from Louis repo) on debian bullseye on a raspberrypi. After updating the /etc/apt/sources.list.d/van-belle.list file with these lines (btw I had to install the lsb-release package first, which hadn't been installed by default) and disabling the samba415 line: # AptVanBelle repo for Samba 4.16 and up. # You need Debian Bullseye Backports also for the depends on Samba. deb [arch=arm64 signed-by=/usr/share/keyrings/louis-van-belle.gpg] http://apt.van-belle.nl/debian/ bullseye-samba416 main # Adding Debian Bullseye Backports ! without it my packages wont install.. # We need the Samba dependecies from it. deb http://deb.debian.org/debian bullseye-backports main and running: $ sudo apt-get update $ sudo apt-get dist-upgrade I get the following failed update: Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed: liburing1 The following packages will be upgraded: cifs-utils dpkg ldb-tools libcups2 libldb2 libnss-winbind libpam-winbind libtalloc2 libtdb1 libtevent0 libwbclient0 python3-ldb python3-samba python3-talloc python3-tdb rsyslog samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools winbind 24 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 16.7 MB/16.7 MB of archives. After this operation, 3,130 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://security.debian.org/debian-security bullseye-security/main arm64 dpkg arm64 1.20.10 [2,513 kB] Get:2 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 libpam-winbind arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [159 kB] Get:3 http://deb.debian.org/debian bullseye-backports/main arm64 libtalloc2 arm64 2.3.3-4~bpo11+1 [27.9 kB] Get:4 http://deb.debian.org/debian bullseye-backports/main arm64 python3-talloc arm64 2.3.3-4~bpo11+1 [17.6 kB] Get:5 http://deb.debian.org/debian bullseye-backports/main arm64 python3-tdb arm64 1.4.6-3~bpo11+1 [21.4 kB] Get:6 http://deb.debian.org/debian bullseye-backports/main arm64 libtdb1 arm64 1.4.6-3~bpo11+1 [49.6 kB] Get:7 http://deb.debian.org/debian bullseye-backports/main arm64 libtevent0 arm64 0.11.0-1~bpo11+1 [35.9 kB] Get:8 http://deb.debian.org/debian bullseye-backports/main arm64 tdb-tools arm64 1.4.6-3~bpo11+1 [31.6 kB] Get:9 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 python3-ldb arm64 2:2.5.0+smb4.16.1-8.1nmu1~deb11+1 [147 kB] Get:10 http://security.debian.org/debian-security bullseye-security/main arm64 rsyslog arm64 8.2102.0-2+deb11u1 [681 kB] Get:11 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 libldb2 arm64 2:2.5.0+smb4.16.1-8.1nmu1~deb11+1 [238 kB] Get:12 http://security.debian.org/debian-security bullseye-security/main arm64 libcups2 arm64 2.3.3op2-3+deb11u2 [335 kB] Get:13 http://security.debian.org/debian-security bullseye-security/main arm64 cifs-utils arm64 2:6.11-3.1+deb11u1 [87.8 kB] Get:14 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 samba-dsdb-modules arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [378 kB] Get:15 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 python3-samba arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [2,705 kB] Get:16 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 samba-vfs-modules arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [482 kB] Get:17 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 libnss-winbind arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [144 kB] Get:18 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 winbind arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [461 kB] Get:19 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 samba-common all 2:4.16.1+dfsg-8.1nmu1~deb11+1 [169 kB] Get:20 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 samba arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [1,812 kB] Get:21 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 samba-common-bin arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [673 kB] Get:22 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 libwbclient0 arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [140 kB] Get:23 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 samba-libs arm64 2:4.16.1+dfsg-8.1nmu1~deb11+1 [5,249 kB] Get:24 http://apt.van-belle.nl/debian bullseye-samba416/main arm64 ldb-tools arm64 2:2.5.0+smb4.16.1-8.1nmu1~deb11+1 [143 kB] Fetched 16.7 MB in 5s (3,513 kB/s) Preconfiguring packages ... (Reading database ... 31582 files and directories currently installed.) Preparing to unpack .../dpkg_1.20.10_arm64.deb ... Unpacking dpkg (1.20.10) over (1.20.9) ... Setting up dpkg (1.20.10) ... (Reading database ... 31591 files and directories currently installed.) Preparing to unpack .../00-rsyslog_8.2102.0-2+deb11u1_arm64.deb ... Unpacking rsyslog (8.2102.0-2+deb11u1) over (8.2102.0-2) ... Preparing to unpack .../01-libtalloc2_2.3.3-4~bpo11+1_arm64.deb ... Unpacking libtalloc2:arm64 (2.3.3-4~bpo11+1) over (2.3.3-0.1bullseye1) ... Preparing to unpack .../02-python3-talloc_2.3.3-4~bpo11+1_arm64.deb ... Unpacking python3-talloc:arm64 (2.3.3-4~bpo11+1) over (2.3.3-0.1bullseye1) ... Preparing to unpack .../03-libpam-winbind_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking libpam-winbind:arm64 (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Preparing to unpack .../04-python3-tdb_1.4.6-3~bpo11+1_arm64.deb ... Unpacking python3-tdb (1.4.6-3~bpo11+1) over (1.4.5-0.1bullseye1) ... Preparing to unpack .../05-libtdb1_1.4.6-3~bpo11+1_arm64.deb ... Unpacking libtdb1:arm64 (1.4.6-3~bpo11+1) over (1.4.5-0.1bullseye1) ... Preparing to unpack .../06-libtevent0_0.11.0-1~bpo11+1_arm64.deb ... Unpacking libtevent0:arm64 (0.11.0-1~bpo11+1) over (0.11.0-0.1bullseye1) ... Preparing to unpack .../07-python3-ldb_2%3a2.5.0+smb4.16.1-8.1nmu1~deb11+1_arm64.deb ... Unpacking python3-ldb (2:2.5.0+smb4.16.1-8.1nmu1~deb11+1) over (2:2.4.2-0.1bullseye1) ... Preparing to unpack .../08-libldb2_2%3a2.5.0+smb4.16.1-8.1nmu1~deb11+1_arm64.deb ... Unpacking libldb2:arm64 (2:2.5.0+smb4.16.1-8.1nmu1~deb11+1) over (2:2.4.2-0.1bullseye1) ... Preparing to unpack .../09-samba-dsdb-modules_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking samba-dsdb-modules:arm64 (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Preparing to unpack .../10-python3-samba_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking python3-samba (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Replacing files in old package samba-libs:arm64 (2:4.15.7+dfsg-0.1bullseye1) ... Replacing files in old package samba (2:4.15.7+dfsg-0.1bullseye1) ... Preparing to unpack .../11-samba-vfs-modules_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking samba-vfs-modules:arm64 (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Preparing to unpack .../12-libnss-winbind_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking libnss-winbind:arm64 (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Preparing to unpack .../13-winbind_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking winbind (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... dpkg: error processing archive /tmp/apt-dpkg-install-BfQSOl/13-winbind_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb (--unpack): trying to overwrite '/usr/lib/aarch64-linux-gnu/samba/krb5/async_dns_krb5_locator.so', which is also in package samba-libs:arm64 2:4.15.7+dfsg-0.1bullseye1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Preparing to unpack .../14-samba-common_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_all.deb ... Unpacking samba-common (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Preparing to unpack .../15-samba_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking samba (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... dpkg: error processing archive /tmp/apt-dpkg-install-BfQSOl/15-samba_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb (--unpack): trying to overwrite '/usr/share/man/man8/samba-bgqd.8.gz', which is also in package samba-libs:arm64 2:4.15.7+dfsg-0.1bullseye1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service already masked) Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory nmbd.service is a disabled or a static unit not running, not starting it. samba-ad-dc.service is a disabled or a static unit not running, not starting it. Preparing to unpack .../16-samba-common-bin_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking samba-common-bin (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Preparing to unpack .../17-libwbclient0_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking libwbclient0:arm64 (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Preparing to unpack .../18-samba-libs_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb ... Unpacking samba-libs:arm64 (2:4.16.1+dfsg-8.1nmu1~deb11+1) over (2:4.15.7+dfsg-0.1bullseye1) ... Selecting previously unselected package liburing1:arm64. Preparing to unpack .../19-liburing1_0.7-3_arm64.deb ... Unpacking liburing1:arm64 (0.7-3) ... Preparing to unpack .../20-tdb-tools_1.4.6-3~bpo11+1_arm64.deb ... Unpacking tdb-tools (1.4.6-3~bpo11+1) over (1.4.5-0.1bullseye1) ... Preparing to unpack .../21-libcups2_2.3.3op2-3+deb11u2_arm64.deb ... Unpacking libcups2:arm64 (2.3.3op2-3+deb11u2) over (2.3.3op2-3+deb11u1) ... Preparing to unpack .../22-cifs-utils_2%3a6.11-3.1+deb11u1_arm64.deb ... Unpacking cifs-utils (2:6.11-3.1+deb11u1) over (2:6.11-3.1) ... Preparing to unpack .../23-ldb-tools_2%3a2.5.0+smb4.16.1-8.1nmu1~deb11+1_arm64.deb ... Unpacking ldb-tools (2:2.5.0+smb4.16.1-8.1nmu1~deb11+1) over (2:2.4.2-0.1bullseye1) ... Errors were encountered while processing: /tmp/apt-dpkg-install-BfQSOl/13-winbind_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb /tmp/apt-dpkg-install-BfQSOl/15-samba_2%3a4.16.1+dfsg-8.1nmu1~deb11+1_arm64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) roy at pi4b:~$ I have reverted to the previous version for now. Let me know if you need more info. What did I do wrong? best regards, Roy Eastwood
Stefan G. Weichinger
2022-Jun-13 10:07 UTC
[Samba] Debian Bullseye Samba 4.16.1 is online (amd64/i386/armhf/arm64/sources)
Am 10.06.22 um 13:36 schrieb L. van Belle via samba:> Enjoy, questions on this, > You have 3.5hour untill the weekend starts for me. ?phew, the instructions sound scary ... I installed 4.16.1 a week ago from your repos and didn't hit a problem. Do I also have to do that pinning now? Sorry for asking too much, I still have to re-read and process that announcement. thanks for your work, Stefan