Debian: Bullseye needs Depends on python3-cryptodome
1.7.20210509 on Debian Bullseye fails to satisfy dependencies because python3-crypto
was deprecated and removed from Debian. It is replaced by python3-cryptodome
The following packages have unmet dependencies:
flectra : Depends: python3-crypto but it is not installable
E: Unable to correct problems, you have held broken packages.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972184
The Depends:
needs modifying to support recent versions with a logical OR dependency of the form python3-crypto | python3-cryptodome
I manually added this to DEBIAN/control
to get around the problem.
That is done by:
apt-get install --download-only flectra
mkdir flectra
cd flectra
dpkg-deb --raw ../flectra_*_all.deb .
sed -i 's/\(python3-crypto\)$/\1 | python3-cyptodome/' DEBIAN/control
dpkg-deb --build . ../flectra_latest_all.deb