Please help, the situation may involve just a package that is broken (python-ldb) or it also at this point because of some other maneuvers could involve turning back on the correct repositories!!! Oops.
When I go to install the package that is what it says,
Code: Select all
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-ldb : Depends: libldb1 (= 2:1.1.27-1+b1) but 2:1.1.27-1+deb9u1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Actually a "funny" thing this occurs at the same time I completely destroyed my windows partition on the same laptop, but I am 100% that it has nothing to do with this. At least I hope not. I believe there is something in the chain of dependencies now as well because of the packages depending on this python library. Not sure which of these packages none of them seem to be showing any obvious signs of problem. I would ignore the problem but I don't like the consistent warnings and error messages from the package manager.
How would I proceed to diagnose the package manager's claims that this package is broken if it may or may not really be?
Here's the output to the above command if I try to use apt --fix-broken-install...
Code: Select all
root@JRlinux1:/var/log/apt# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libgegl-0.3-0 libllvm3.9
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
python-ldb
The following packages will be upgraded:
python-ldb
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
6 not fully installed or removed.
Need to get 0 B/34.8 kB of archives.
After this operation, 1,024 B disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 346216 files and directories currently installed.)
Preparing to unpack .../python-ldb_2%3a1.1.27-1+deb9u1_amd64.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-ldb_2%3a1.1.27-1+deb9u1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/python-ldb_2%3a1.1.27-1+deb9u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Select all
E: system-config-samba: subprocess installed pre-removal script returned error exit status 1
E: python-samba: subprocess installed pre-removal script returned error exit status 1
E: python-ldb: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
https://pastebin.com/5RWuECfx