OK, here goes the step-by-step:
- install equivs:
sudo apt install equivs
- Create a control file (just copy this using the icon in the top right of the code block, and paste it into a terminal window by pressing CtrlShiftV, then press Enter):
cat >~/libxml2.ctl <<EOF
Section: misc
Priority: optional
Standards-Version: 3.9.2
Package: libxml2
Version: 2.15
Depends: libxml2-16
Description: Dummy package to satisfy dependencies
Some 3rd party packages need this.
.
This is just a dummy package without actual content.
EOF
- Build the package:
equivs-build ~/libxml2.ctl
That should produce a file named ~/libxml2_2.15_all.deb.
- Install that dummy package:
sudo dpkg -i ~/libxml2_2.15_all.deb
That’s it. If all went well you should now be able to install that driver package from Canon, with its dependencies met. If not, please provide the (properly preformatted) terminal output.
P.S.: Testing was done on Ubuntu 24.04, which still has a genuine libxml2 package, hence the 2.15 version (without the “long tail”), to satisfy dependencies on my end; a somewhat proper version number shouldn’t hurt, though.