- If any of the steps above fails, examine the entire output carefully line by line for error information about any possible missing packages, e.g. "Check if the 'dpkg-dev' package is installed". Simply use "sudo apt-get install <package>" to install anything that is missing.
- Unless you lock the libsane1 package in apt ("sudo apt-mark hold <package>") and in Synaptic (Synaptic >> Package >> Lock Version), your next automated or manual Ubuntu update might re-install the original, unpatched libsane1 package. Those two package maintenance systems use independent locking mechanisms that are not synchronized.
Slightly updated patch instructions from above.
--- CUT HERE ---
sudo apt-get install dpkg-dev fakeroot
# in Synaptic, Ubuntu Settings >> Repositories, enable "Source code"
apt-get source libsane1
# eyeball first for any error messages 1.0.27/ backend/ genesys. c --dry-run < genesys.c.diff
patch sane-backends-
# if the above was successful 1.0.27/ backend/ genesys. c < genesys.c.diff
patch sane-backends-
sudo apt-get build-dep libsane1 1.0.27
cd sane-backends-
./configure
dpkg-buildpackage -rfakeroot -uc -b
cd ..
sudo rm /usr/share/ doc/libsane1/ changelog. Debian. gz 1.0.27- 1~experimental3 ubuntu2_ amd64.deb
sudo dpkg -i libsane1_
# reboot
--- CUT HERE ---
Also:
- If any of the steps above fails, examine the entire output carefully line by line for error information about any possible missing packages, e.g. "Check if the 'dpkg-dev' package is installed". Simply use "sudo apt-get install <package>" to install anything that is missing.
- Unless you lock the libsane1 package in apt ("sudo apt-mark hold <package>") and in Synaptic (Synaptic >> Package >> Lock Version), your next automated or manual Ubuntu update might re-install the original, unpatched libsane1 package. Those two package maintenance systems use independent locking mechanisms that are not synchronized.