You are not logged in.

#26 2025-05-05 13:44:37

iq2luc
Member
Registered: 2012-11-19
Posts: 29

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Rolled back to Arch packages from 2025-04-29 and printing works again without any issues, with all printer / configuration options (https://hastebin.com/share/agujoyemip.console).

Here are the changed packages: https://hastebin.com/share/metayorere.console (from 2025-04-29 to 2025-05-05)

[~]> cat /etc/pacman.d/mirrorlist
Server = https://archive.archlinux.org/repos/2025/04/29/$repo/os/$arch

Last edited by iq2luc (2025-05-05 13:49:55)

Offline

#27 2025-05-05 13:55:02

seth
Member
Registered: 2012-09-03
Posts: 65,952

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Yeah, the big two ones are gcc(-libs) and libxml2 - gcc-libs being the more likely problem.
Do NOT try to stall either of those in isolation!

You'll have to either wait and hope for an updated canon driver rebuild (afaiu those are only available as binaries?) or try to get IPP everywhere working (where every indication is that this should work and will rid you of any dependency on proprietary canon drivers and such incompatiblitly issues)

Offline

#28 2025-05-05 14:07:32

themew
Member
Registered: 2023-02-23
Posts: 6

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

gps1539 wrote:
themew wrote:

Seeing the same thing.  Tried sending to the printer using LPD, IPP, and the original socket: that worked for years.  Always stuck with the "libcanon_pdlwrapper.c" error.   The printer was accessible prior the large daily update on 5-2 (or 5-1... it's all a blur) and the CNRDRVCUPS update from the AUR.

Also tried it on a Fedora machine -- exactly the same results.

Stuck with printing through our wired network using an Android phone after exhausting all options.

Looks like Cups was updated on Apr 11th according to the ALA. Did you update Arch after that date and print successfully?

Yup.  In fact, I had printed on 5-2 (or 5-1) literally an hour before the Arch update which resulted in what we're experiencing in this thread.

Offline

#29 2025-05-05 14:12:44

iq2luc
Member
Registered: 2012-11-19
Posts: 29

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Got it! :-)
The culprit is libxml2 (2.14.2-2).

Just downgrading it to libxml2 (2.13.8-1) (and its two dependencies libarchive (3.7.9-2 -> 3.7.9-1) and sane (1.3.1-3 -> 1.3.1-2) solves the problem.

Offline

#30 2025-05-05 14:17:38

seth
Member
Registered: 2012-09-03
Posts: 65,952

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Offline

#31 2025-05-05 14:19:13

themew
Member
Registered: 2023-02-23
Posts: 6

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

seth wrote:

Yeah, the big two ones are gcc(-libs) and libxml2 - gcc-libs being the more likely problem.
Do NOT try to stall either of those in isolation!

You'll have to either wait and hope for an updated canon driver rebuild (afaiu those are only available as binaries?) or try to get IPP everywhere working (where every indication is that this should work and will rid you of any dependency on proprietary canon drivers and such incompatiblitly issues)

Interestingly, I had a couple workstations using IPP everywhere with the MF232W which does light up the printer status window, but the printer log shows "connecting to printer" indefinitely or displays a completed job (printer shows no sign of activity) and Job Competed in the logs.

Funny, I posted this on Reddit https://www.reddit.com/r/ManjaroLinux/c … are_button about 4 years ago explaining how to use IPP.

Sidenote, using Arch for 10+ years and there's always been a way around issues -- we'll get there smile

Offline

#32 2025-05-05 14:24:10

iq2luc
Member
Registered: 2012-11-19
Posts: 29

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Yes, using the "legacy" package works around having to downgrade the libxml2 package (and its two dependencies).

Back in (printing) business again without having to downgrade anything (Arch is up to date + libxml2-legacy installed).

Thank you.

Offline

#33 2025-05-05 14:24:54

themew
Member
Registered: 2023-02-23
Posts: 6

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

iq2luc wrote:

Got it! :-)
The culprit is libxml2 (2.14.2-2).

Just downgrading it to libxml2 (2.13.8-1) (and its two dependencies libarchive (3.7.9-2 -> 3.7.9-1) and sane (1.3.1-3 -> 1.3.1-2) solves the problem.

Are you seeing any issues when downgrading libxml2?

seth wrote:

If the printer doesn't support IPP everywhere/airprint (preferable solution for sure) please see https://wiki.archlinux.org/title/CUPS/T … #Debug_log and post the log after attempting to print some file. 

On a wild guess, it's libxml2 but do NOT downgrade that!!
Post the cups debug log, we'll see on from there.

Offline

#34 2025-05-05 14:29:35

iq2luc
Member
Registered: 2012-11-19
Posts: 29

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

themew wrote:

Are you seeing any issues when downgrading libxml2?

No issues, but I only used that workaround for about 10 minutes, because I switched to libxml2-legacy package and everything works fine now without having to downgrade anything.

Offline

#35 2025-05-05 14:33:35

seth
Member
Registered: 2012-09-03
Posts: 65,952

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

iq2luc notably also downgraded its apparently two only consumers on that box, but that's not gonna be your average desktop system: https://archlinux.org/packages/core/x86_64/libxml2/

Offline

#36 2025-05-05 14:44:21

iq2luc
Member
Registered: 2012-11-19
Posts: 29

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

seth wrote:

iq2luc notably also downgraded its apparently two only consumers on that box, but that's not gonna be your average desktop system: https://archlinux.org/packages/core/x86_64/libxml2/

Not just two...

appstream  blender  clamav  cnrdrvcups-lb  docbook-xml  docbook-xsl  ebook-tools  ffmpeg  ffmpeg4.4  flatpak  fontforge  gdal  gettext  glusterfs  gst-plugins-bad  gst-plugins-good  gtksourceview4  gupnp  imagemagick  inkscape  kdoctools  kio  lib32-libxml2  libabw  libaccounts-glib  libakonadi
libarchive  libbluray  libcmis  libe-book  libetonyek  libgphoto2  libical  liblangtag  libnbd  libodfgen  libosinfo  libqalculate  libreoffice-fresh  librsvg  libsoup  libspatialite  libvirt  libvirt-glib  libvisio  libxkbcommon  libxml++2.6  libxslt  llvm-libs  netcdf  netpbm  openscad  phodav
podofo  python-feedparser  qgis  qt6-webengine  raptor  sane  scribus  shared-mime-info  shiboken6  tinysparql  vlc  vtk  wayland  xmlsec  xournalpp
graphicsmagick  hwloc  mlt

...but still, in my opinion your suggestion for installing libxml2-legacy should be the "official" workaround / solution for the time being.

Thanks again.

Offline

#37 2025-05-05 14:50:39

seth
Member
Registered: 2012-09-03
Posts: 65,952

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Yes, because otherwise you'd break all that stuff you listed wink

I'll re-iterate though that, also because cups has plans (don't ask me what thesy look like) to abandon printer drivers in favor of IPP Everywhere, you might still want to look into that vector (now in addition - just make sure that the log doesn't mention ufr2 when trying to print this way and have a look at the printers web interface for possible configuration settings/hints)

Going w/ themew's manjaro post, ipp://<IP_OR_DOMAIN>:631/ipp shall work on canon (it would have been nice if the url had been standardized and not be the root or /ipp or /print or /queue or whatever else vendors could come up with)

Offline

#38 2025-05-05 15:39:54

iq2luc
Member
Registered: 2012-11-19
Posts: 29

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

seth wrote:

Yes, because otherwise you'd break all that stuff you listed wink

I'll re-iterate though that, also because cups has plans (don't ask me what thesy look like) to abandon printer drivers in favor of IPP Everywhere, you might still want to look into that vector (now in addition - just make sure that the log doesn't mention ufr2 when trying to print this way and have a look at the printers web interface for possible configuration settings/hints)

Going w/ themew's manjaro post, ipp://<IP_OR_DOMAIN>:631/ipp shall work on canon (it would have been nice if the url had been standardized and not be the root or /ipp or /print or /queue or whatever else vendors could come up with)

Going with your suggestions I already tried that (IPP Everywhere route), but no luck on my side (just filled https://github.com/OpenPrinting/cups-filters/issues/635).

Last edited by iq2luc (2025-05-05 17:19:02)

Offline

#39 2025-05-05 18:11:41

-thc
Member
Registered: 2017-03-15
Posts: 934

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

seth wrote:

[...]also because cups has plans (don't ask me what thesy look like) to abandon printer drivers in favor of IPP Everywhere[...]

AFAIK that's part of a general migration to "driverless printing". Microsoft has similar plans. Looks like the industry is tired of (writing) crappy printer drivers wink .

Offline

#40 2025-05-05 18:38:03

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,957

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

I have changed the dep from libxml2 to libxml2-legacy, please test this PKGBUILD.

# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# Maintainer:  Lone_Wolf <lone_wolf@klaas-de-kat.nl>
# Contributor: Steven She <mintcoffee@gmail.com>
# Contributor: vbPadre <vbPadre@gmail.com>

pkgname='cnrdrvcups-lb'

# The download link changes with every version, try to keep changes in one place
# https://gdlp01.c-wss.com/gds/8/0100007658/27/linux-UFRII-drv-v550-m17n-00.tar.gz
# https://gdlp01.c-wss.com/gds/8/0100007658/30/linux-UFRII-drv-v560-m17n-08.tar.gz
# https://gdlp01.c-wss.com/gds/8/0100007658/33/linux-UFRII-drv-v570-m17n-11.tar.gz
# https://gdlp01.c-wss.com/gds/8/0100007658/35/linux-UFRII-drv-v570-m17n-18.tar.gz
# https://gdlp01.c-wss.com/gds/8/0100007658/38/linux-UFRII-drv-v580-m17n-04.tar.gz
# https://gdlp01.c-wss.com/gds/8/0100007658/40/linux-UFRII-drv-v590-m17n-03.tar.gz
# https://gdlp01.c-wss.com/gds/8/0100007658/41/linux-UFRII-drv-v600-m17n-00.tar.gz
# https://gdlp01.c-wss.com/gds/8/0100007658/45/linux-UFRII-drv-v610-m17n-01.tar.gz
_pkgver='6.10';  _dl='8/0100007658/45';_suffix1='m17n';_suffix2='01'

pkgver="${_pkgver}.1.${_suffix2}"
epoch=1
pkgrel=2
pkgdesc='CUPS Canon UFR II LIPSLX CARPS2 printer driver for LBP iR MF ImageCLASS ImageRUNNER Laser Shot i-SENSYS ImagePRESS ADVANCE printers and copiers'
arch=('x86_64' 'aarch64')
# Direct links to the download reference go bad on the next version. We want something that will persist for a while.
url='https://www.canon-europe.com/support/consumer/products/printers/i-sensys/mf-series/i-sensys-mf657cdw.html?type=drivers&language=EN&os=Linux%20(64-bit)'
license=('GPL-2.0-only' 'MIT' 'custom')
# parts of the code are GPL or MIT licensed, some parts have a custom license
makedepends=(jbigkit gzip gtk3)
depends=(libcups glibc gcc-libs libxml2-legacy glib2 hicolor-icon-theme)
optdepends=('libjpeg6-turbo: solves cpu hang on some color imageRUNNER/i-SENSYS LBP devices'
                        'jbigkit: solves some cpu hangs'
                        'ghostscript: necessary for printing on some devices'
                        'gtk3: for cnsetuputil2'
                        'at-spi2-core: for cnsetuputil2'
                        'gdk-pixbuf2: for cnsetuputil2'
                        'cairo: for cnsetuputil2'
                        'pango: for cnsetuputil2'
)


conflicts=(cndrvcups-lb cndrvcups-common-lb)
options=(emptydirs !strip !libtool !debug)

source=(  "http://gdlp01.c-wss.com/gds/${_dl}/linux-UFRII-drv-v${_pkgver//\./}-${_suffix1}-${_suffix2}.tar.gz"
                replace_incorrect_int_with_char.patch
)
md5sums=('ce4483bddf5a1a0ac3bc1fd8d742ca73'
         '8bc26ff46bf5877b5800b77685d5d917')
sha512sums=('8d993c2f37ee6103db46b4dccce7ca4378b1f0af854d586462a10b23d9faf80d9a8657ea108e4aa8e43a77caf3d3007e3dffb912bfa06b4a642eb73d173bf796'
            '1d118eeee1ce069b59db00cba5b534986ccbd1da3a9c4a4ba6892be4a478c2dac4bd83dae1b2dd28f0e58a145609c60940cd661fee87d025a12f856e161b1f65')


# Canon provides the sourcecode in a tarball within the dowload and we need to extract the code manually
# In order to keep the $srcdir structure tidy we put the extracted files in "extracted-${pkgname}-${_pkgver}" aka _srcdir
# the code itself is spread over many folders. 
# "cnrdrvcups-common-${_pkgver}" aka _common_dir & "cnrdrvcups-lb-${_pkgver}" aka _driver_dir
# are used to keep this manageable


_srcdir="extracted-${pkgname}-${_pkgver}"
_common_dir="cnrdrvcups-common-${_pkgver}"
_driver_dir="cnrdrvcups-lb-${_pkgver}"




prepare() {

    # extract sources
    mkdir "${_srcdir}"
    cd "${_srcdir}"
    bsdtar -xf "${srcdir}/linux-UFRII-drv-v${_pkgver//\./}-${_suffix1}/Sources/${pkgname}-${_pkgver}-1.${_suffix2}.tar.xz"

    local _specs=(cnrdrvcups-lb.spec)

    # the autogen.sh files from canon target an old automake/autoconf version
    # autoreconf converts them to a form compatible with archlinux autoconf/automake
    
    patch --directory="${srcdir}"/$_srcdir/$_driver_dir/cngplp/cngplpmod/ --forward --input="$srcdir"/replace_incorrect_int_with_char.patch
    
    pushd $_common_dir
    for i in "backend" "buftool" "cngplp" "cnjbig" "rasterfilter"
    do
        pushd "$i"
        autoreconf --force --install --warnings=none
        popd
    done
    popd
    pushd $_driver_dir
    for i in "cngplp/files" "cngplp" "cpca" "pdftocpca"
    do
        pushd "$i"
        autoreconf --force --install --warnings=none
        popd
    done
    popd

    # allgen.sh where available is not useful for packaging on archlinux
    # Canon provides methods to build deb & rpm packages.
    # The debian rules are not suited for archlinux. When the .spec-file is converted to shell the resulting arch package works. 
    # Chris Severach figured out a way to automate  this conversion.

    # Generate make from spec %setup, %build
    sed -n -e '/^%setup/,/^%install/ p' "${_specs[@]}" | \
    grep -v '^%' | \
    sed -e '# Convert spec %{VAR} to shell ${VAR}' \
        -e 's:%{:${:g' \
        -e '# Quote to allow _cflags to have spaces' \
        -e 's:${_cflags}:"${_cflags}":g' \
        -e '# Some autogen.sh commands in the spec file do not set  --prefix. More than one --prefix dont cause problems so we can add it to all of them.' \
        -e 's:^./autogen.sh:& --prefix=${_prefix}:g ' \
        > 'make.Arch'
     sed -i '1iset -e o pipefail' make.Arch
     
    # Generate make install from spec %install
    sed -n -e '/^%install/,/^%clean/ p' "${_specs[@]}" | \
    grep -v '^%' | \
    sed -e '# Convert spec %{VAR} to shell ${VAR}' \
        -e 's:%{:${:g' \
        -e '# Quote to handle path with spaces' \
        -e 's:${RPM_BUILD_ROOT}:"&":g' \
        > 'make.install.Arch'
    sed -i '1iset -e o pipefail' make.install.Arch
    
}

_setvars() {
    # variables used by the (generated) make.Arch &  make.install.Arch files
    # relative paths start at ${srcdir}/${_srcdir} 
    # _libsarch is architecture dependent
    
    local -A _libsarchfolder
    _libsarchfolder['x86_64']="libs64/intel"
    _libsarchfolder['aarch64']="libs64/arm"

    _vars=(
        _builddir="${srcdir}/${_srcdir}"
        common_dir="${_common_dir}"
        driver_dir="${_driver_dir}"
        utility_dir="cnrdrvcups-utility-${_pkgver}"
        RPM_BUILD_DIR="${srcdir}/${_srcdir}"
        _prefix="/usr"
        _machine_type="MACHINETYPE="$CARCH
        _cflags="CFLAGS=""$CFLAGS"
        _libdir="/usr/lib"
        _bindir="/usr/bin"
        locallibs="/usr/lib/"
        _includedir="/usr/include"
        b_lib_dir="${srcdir}/${_srcdir}/lib"
        b_include_dir="${srcdir}/${_srcdir}/include"
        _libsarch="${_libsarchfolder[$CARCH]}"
        nobuild=0
  )
}

build() {
  
    set -e o pipefail
    cd "${_srcdir}"
    local _vars; _setvars
    
    # Bash does not recognize var assigments hidden by array expansion so we use env.
    env "${_vars[@]}"  sh 'make.Arch'


}

package() {
    cd "${_srcdir}"

    local _vars; _setvars
    
    env "${_vars[@]}" \
    RPM_BUILD_ROOT="${pkgdir}" \
    sh 'make.install.Arch'
    
    # package creates several empy directories, but those in /etc are needed. remove others.
    rmdir "$pkgdir"/usr/include
    
    # copy icons 
    install -Dpm644 "cnrdrvcups-utility-${_pkgver}"/data/cngplp.png "${pkgdir}"/usr/share/icons/hicolor/128x128/apps/cngplp.png
    install -Dpm644 "cnrdrvcups-utility-${_pkgver}"/data/cnsetuputil.png "${pkgdir}"/usr/share/icons/hicolor/128x128/apps/cnsetuputil.png
    # copy .desktop files
    install -Dpm644 "cnrdrvcups-utility-${_pkgver}"/data/cngplp2.desktop "${pkgdir}"/usr/share/applications/cngplp2.desktop
    install -Dpm644 "cnrdrvcups-utility-${_pkgver}"/data/cnsetuputil2.desktop "${pkgdir}"/usr/share/applications/cnsetuputil2.desktop
    
    # licensing information is spread over multiple files and folders and has changed between versions
    # while they could be done in a loop iterating through dirs/files,
    # I feel that would obscure what happens and make troubleshooting harder
    # so each file gets its own install command
    
    pushd "${_common_dir}"
    install -Dpm644 "README" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/README"
    
    install -Dpm644 "backend/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/backend/LICENSE.txt"
    install -Dpm644 "backend/LICENSE.canon.txt" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/backend/LICENSE.canon.txt"
    install -Dpm644 "backend/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/backend/README"
    
    install -Dpm644 "buftool/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/buftool/LICENSE.txt"
    install -Dpm644 "buftool/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/buftool/README"

    install -Dpm644 "cngplp/LICENSE.canon.txt" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/cngplpl/LICENSE.canon.txt"
    install -Dpm644 "cngplp/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/cngplpl/README"
    
    install -Dpm644 "cnjbig/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/cnjbig/README"
    
    install -Dpm644 "rasterfilter/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_common_dir}/rasterfilter/README"

    popd
    pushd "${_driver_dir}"
    install -Dpm644 "README" "${pkgdir}/usr/share/licenses/${pkgname}/${_driver_dir}/README"
    
    install -Dpm644 "cngplp/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_driver_dir}/cngplp/README"
    install -Dpm644 "cngplp/files/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_driver_dir}/cngplp/files/README"
    
    install -Dpm644 "cpca/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_driver_dir}/cpca/README"
    install -Dpm644 "cpca/cnpklib/LICENSE.canon.txt" "${pkgdir}/usr/share/licenses/${pkgname}/${_driver_dir}/cpca/cnpklib/LICENSE.canon.txt"
    
    install -Dpm644 "pdftocpca/README" "${pkgdir}/usr/share/licenses/${pkgname}/${_driver_dir}/pdftocpca/README"
    popd 
    
    # documentation
    pushd "$srcdir/linux-UFRII-drv-v${_pkgver//\./}-m17n/Documents"
    
    install -Dpm644 deutsch/"README-ufr2-6.1xDE.html" "${pkgdir}/usr/share/doc/${pkgname}/README-ufr2-6.1xDE.html"
    install -Dpm644 espanol/"README-ufr2-6.1xSP.html" "${pkgdir}/usr/share/doc/${pkgname}/README-ufr2-6.1xSP.html"
    install -Dpm644 francais/"README-ufr2-6.1xFR.html" "${pkgdir}/usr/share/doc/${pkgname}/README-ufr2-6.1xFR.html"
    install -Dpm644 italiano/"README-ufr2-6.1xIT.html" "${pkgdir}/usr/share/doc/${pkgname}/README-ufr2-6.1xIT.html"
    install -Dpm644 korean/"README-ufr2-6.1xKR.html" "${pkgdir}/usr/share/doc/${pkgname}/README-ufr2-6.1xKR.html"
    install -Dpm644 simplified_chinese/"README-ufr2-6.1xSC.html" "${pkgdir}/usr/share/doc/${pkgname}/README-ufr2-6.1xSC.html"
    install -Dpm644 traditional_chinese/"README-ufr2-6.1xTC.html" "${pkgdir}/usr/share/doc/${pkgname}/README-ufr2-6.1xTC.html"
    install -Dpm644 uk_eng/"README-ufr2-6.1xUK.html" "${pkgdir}/usr/share/doc/${pkgname}/README-ufr2-6.1xUK.html"
    
    install -Dpm644 deutsch/"UsersGuide-ufr2-DE.html" "${pkgdir}/usr/share/doc/${pkgname}/UsersGuide-ufr2-DE.html"
    install -Dpm644 espanol/"UsersGuide-ufr2-SP.html" "${pkgdir}/usr/share/doc/${pkgname}/UsersGuide-ufr2-SP.html"
    install -Dpm644 francais/"UsersGuide-ufr2-FR.html" "${pkgdir}/usr/share/doc/${pkgname}/UsersGuide-ufr2-FR.html"
    install -Dpm644 italiano/"UsersGuide-ufr2-IT.html" "${pkgdir}/usr/share/doc/${pkgname}/UsersGuide-ufr2-IT.html"
    install -Dpm644 korean/"UsersGuide-ufr2-KR.html" "${pkgdir}/usr/share/doc/${pkgname}/UsersGuide-ufr2-KR.html"
    install -Dpm644 simplified_chinese/"UsersGuide-ufr2-SC.html" "${pkgdir}/usr/share/doc/${pkgname}/UsersGuide-ufr2-SC.html"
    install -Dpm644 traditional_chinese/"UsersGuide-ufr2-TC.html" "${pkgdir}/usr/share/doc/${pkgname}/UsersGuide-ufr2-TC.html"
    install -Dpm644 uk_eng/"UsersGuide-ufr2-UK.html" "${pkgdir}/usr/share/doc/${pkgname}/UsersGuide-ufr2-UK.html"
    
    install -Dpm644 deutsch/"LICENSE-DE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-DE.txt"
    install -Dpm644 espanol/"LICENSE-ES.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-ES.txt"
    install -Dpm644 francais/"LICENSE-FR.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-FR.txt"
    install -Dpm644 italiano/"LICENSE-IT.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-IT.txt"
    install -Dpm644 korean/"LICENSE-KO.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-KO.txt"
    install -Dpm644 simplified_chinese/"LICENSE-CN.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-CN.txt"
    install -Dpm644 traditional_chinese/"LICENSE-TW.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-TW.txt"
    install -Dpm644 uk_eng/"LICENSE-EN.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-EN.txt"
    popd
    
}

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#41 2025-05-06 13:03:30

smolloy
Member
Registered: 2024-03-07
Posts: 11

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Suffering from an almost identical problem.  I've been using a FollowMe printer at work for years with no issue, but it stopped working some time in the last week.

src=libcanon_pdlwrapper.c line = 514, err = 0¥nError Response:ReqNo=2,SeqNo=3,opvpErrorNo=-2

Installing libxml2-legacy has not helped.

I'd really appreciate any advice on how to investigate this or any solutions you might have.

Offline

#42 2025-05-06 14:10:12

iq2luc
Member
Registered: 2012-11-19
Posts: 29

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Lone_Wolf wrote:

I have changed the dep from libxml2 to libxml2-legacy, please test this PKGBUILD.

All good on my side, thank you.

[~]> pacman -Qi cnrdrvcups-lb
Name            : cnrdrvcups-lb
Version         : 1:6.10.1.01-2
Description     : CUPS Canon UFR II LIPSLX CARPS2 printer driver for LBP iR MF ImageCLASS ImageRUNNER Laser Shot i-SENSYS ImagePRESS ADVANCE printers and copiers
Architecture    : x86_64
URL             : https://www.canon-europe.com/support/consumer/products/printers/i-sensys/mf-series/i-sensys-mf657cdw.html?type=drivers&language=EN&os=Linux%20(64-bit)
Licenses        : GPL-2.0-only  MIT  custom
Groups          : None
Provides        : None
Depends On      : libcups  glibc  gcc-libs  libxml2-legacy  glib2  hicolor-icon-theme
Optional Deps   : libjpeg6-turbo: solves cpu hang on some color imageRUNNER/i-SENSYS LBP devices [installed]
                 jbigkit: solves some cpu hangs [installed]
                 ghostscript: necessary for printing on some devices [installed]
                 gtk3: for cnsetuputil2 [installed]
                 at-spi2-core: for cnsetuputil2 [installed]
                 gdk-pixbuf2: for cnsetuputil2 [installed]
                 cairo: for cnsetuputil2 [installed]
                 pango: for cnsetuputil2 [installed]
Required By     : None
Optional For    : None
Conflicts With  : cndrvcups-lb  cndrvcups-common-lb
Replaces        : None
Installed Size  : 166.38 MiB
Packager        : Unknown Packager
Build Date      : Tue 06 May 2025 17:02:10
Install Date    : Tue 06 May 2025 17:04:44
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

Offline

#43 2025-05-06 14:37:23

iq2luc
Member
Registered: 2012-11-19
Posts: 29

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

smolloy wrote:

[...] any advice on how to investigate this or any solutions you might have.

In my case, I rolled back to last system state that I knew it was working (as suggested by seth) and I compared what packages changed that may be related to the printing.
After that, I updated the "interesting" packages one by one, or group by group (it helps a bit of knowledge / "engineering flair" about which packages may be involved) and so I found that libxml2 was the culprit.

Also check the CUPS error_log, maybe it gives you some / more hints (maybe even put the CUPS log in debug mode by setting LogLevel debug  in /etc/cups/cupsd.conf and restarting cups.service).

And last but not least, this was my first experience with printing issues, so please also consider ideas from more experienced / knowledgeable people.

Offline

#44 2025-05-06 15:17:16

seth
Member
Registered: 2012-09-03
Posts: 65,952

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

@smolloy while I don't think that should be necessary, did you restart cups & the printer afterwards?
Which driver package do you use?

pacman -Ql cnrdrvcups-lb # assuming that's the package

Offline

#45 2025-05-06 15:51:03

themew
Member
Registered: 2023-02-23
Posts: 6

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Just installed 1:6.10.1.01-2 from the AUR.  Flawless.

Thank you all and Lone_Wolf -- The sweet sound of printing again...  I cannot thank you enough for fixing this.  smile

Offline

#46 2025-05-06 16:06:36

seth
Member
Registered: 2012-09-03
Posts: 65,952

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

I still don't get how IPPE/AirPrint doesn't work on those things - feel free to open a thread about that if you care…

Offline

#47 2025-05-07 07:36:41

smolloy
Member
Registered: 2024-03-07
Posts: 11

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

seth wrote:

@smolloy while I don't think that should be necessary, did you restart cups & the printer afterwards?

I rebooted my laptop.  The printer is a "FollowMe" printer at work, and I don't have permission to restart it.

seth wrote:

Which driver package do you use?

pacman -Ql cnrdrvcups-lb # assuming that's the package

I have been using cndrvcups-lb and cndrvcups-common-lb (note _not_ cnrdrvcups-lb -- notice the small difference).  I tried reinstalling it, but now it won't compile.

printerinfo.c:204:20: error: implicit declaration of function ‘cupsGetPPD’; did you mean ‘cupsGetFd’?

Something seems very broken...

Offline

#48 2025-05-07 07:40:14

smolloy
Member
Registered: 2024-03-07
Posts: 11

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

But taking the hint from your message and installing cnrdrvcups-lb seems to have fixed the problem.
Thank you!

Offline

#49 2025-05-07 07:48:51

seth
Member
Registered: 2012-09-03
Posts: 65,952

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

https://aur.archlinux.org/packages/cndr … ent-709694
@Lone_Wolf, maybe time to file a deletion request tongue

Offline

#50 2025-05-07 10:26:43

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,957

Re: Canon printer stopped working, seeing error in /var/log/cups/error_log

Good idea, I filed deletion requests for cndrvcups-lb and cndrvcups-common-lb.
Also removed the reference to them from the wiki.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB