efahi,
I located the .deb associated with python3-samba deb file and ran the dpkg-deb --info against it. The results are shown below:
datapioneer@ferenOS-MainPC:~$ dpkg-deb --info /var/cache/apt/archives/python3-samba_2%3a4.13.14+dfsg-0ubuntu0.20.04.3_amd64.deb
new Debian package, version 2.0.
size 2612168 bytes: control archive=11064 bytes.
1192 bytes, 20 lines control
35839 bytes, 373 lines md5sums
252 bytes, 12 lines * postinst #!/bin/sh
401 bytes, 12 lines * prerm #!/bin/sh
5391 bytes, 67 lines shlibs
120 bytes, 3 lines triggers
Package: python3-samba
Source: samba
Version: 2:4.13.14+dfsg-0ubuntu0.20.04.3
Architecture: amd64
Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com
Installed-Size: 20338
Depends: python3-crypto, python3-ldb (>= 2:2.1.0), python3-tdb, samba-libs (= 2:4.13.14+dfsg-0ubuntu0.20.04.3), python3 (<< 3.9), python3 (>= 3.8~), python3:any, libbsd0 (>= 0.0), libc6 (>= 2.14), libgnutls30 (>= 3.6.10), libldb2 (>= 2:2.2.3~), libpython3.8 (>= 3.8.2), libtalloc2 (>= 2.3.1~), libtevent0 (>= 0.10.2~), libwbclient0 (= 2:4.13.14+dfsg-0ubuntu0.20.04.3), python3-talloc (>= 2.3.1~)
Recommends: python3-gpg
Provides: python3.8-samba
Section: python
Priority: optional
Homepage: http://www.samba.org
Description: Python 3 bindings for Samba
Samba is an implementation of the SMB/CIFS protocol for Unix systems,
providing support for cross-platform file sharing with Microsoft Windows, OS X,
and other Unix systems. Samba can also function as a domain controller
or member server in both NT4-style and Active Directory domains.
.
This package contains Python 3 bindings for most Samba libraries.
Original-Maintainer: Debian Samba Maintainers pkg-samba-maint@lists.alioth.debian.org
Repeating this process for the ubuntu-advantage-tools deb file, I received the following stdout:
datapioneer@ferenOS-MainPC:~$ dpkg-deb --info /var/cache/apt/archives/ubuntu-advantage-tools_27.4.2~20.04.1_amd64.deb new Debian package, version 2.0.
size 858628 bytes: control archive=8660 bytes.
302 bytes, 7 lines conffiles
413 bytes, 14 lines * config #!/bin/sh
782 bytes, 16 lines control
5603 bytes, 65 lines md5sums
20848 bytes, 541 lines * postinst #!/bin/sh
3636 bytes, 111 lines * postrm #!/bin/sh
965 bytes, 17 lines * preinst #!/bin/sh
1950 bytes, 58 lines * prerm #!/bin/sh
199 bytes, 6 lines templates
Package: ubuntu-advantage-tools
Version: 27.4.2~20.04.1
Architecture: amd64
Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com
Installed-Size: 3166
Depends: debconf (>= 0.5) | debconf-2.0, python3-yaml, python3:any, libapt-pkg6.0 (>= 0.8.0), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libstdc++6 (>= 9), python3-apt, python3-pkg-resources, distro-info (>= 0.18ubuntu0.18.04.1)
Section: misc
Priority: important
Homepage: https://buy.ubuntu.com
Description: management tools for Ubuntu Advantage
Ubuntu Advantage is the professional package of tooling, technology
and expertise from Canonical, helping organisations around the world
manage their Ubuntu deployments.
.
Subscribers to Ubuntu Advantage will find helpful tools for accessing
services in this package.
Hope you can learn something from the output that is helpful.
Need to let you know that this morning I did a workaround to remove the broken package: python3-samba which I have been unable to fix in Synaptic Package Manager or otherwise, install or remove, etc. What I did was change directory to /var/lib/dpkg/info/ and edit the file python3-samba.prerm, adding “set -x” on line 2 and commenting out the line after that, which was “set -e”. After performing this, I ran the command: dpkg -r --force-all /var/lib/dpkg/info/python3-samba . After performing this action in the Terminal, I ran a sudo apt update followed by sudo apt upgrade and it completed successfully (NO ERRORS). I then navigated to Synaptic Package Manager to check whether the python3-samba package was still broken only to discover that it was NO LONGER BROKEN. I thought that the issue had been resolved, so I ran a Timeshift backup manually. When I returned to the Terminal and ran the command: sudo apt remove htop, to remove that package, it completed successfully and htop was not found. However, when I ran the command: sudo apt install htop, the dpkg-split Error returned and htop was not installed.