You are not logged in.

#1 2013-02-09 15:29:33

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

CUPS can't locate network printer

I don't know if this is a network issue, or a PKGBUILD issue.

I have a Brother printer that is not one of the ones for which there is an AUR package already. So I just copied a PKGBUILD and .install from a similar model's AUR package. Here they are:

PKGBUILD:

# Based on brother-mfc-j625dw package from AUR

_model="j435w"
pkgname="brother-mfc-$_model"
pkgver="3.0.0"
pkgrel=1
_revision=1
pkgdesc="LPR and CUPS driver for the Brother MFC-J435W"
url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
arch=('i686' 'x86_64')
license='unknown'
install="brother-mfc-${_model}.install"
depends=('tcsh' 'deb2targz' 'perl' 'a2ps')
if test "$CARCH" == x86_64; then
   depends+=(lib32-glibc)
fi
source=("http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}lpr-${pkgver}-${_revision}.i386.deb"
        "http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}cupswrapper-${pkgver}-${_revision}.i386.deb")

build() {
    deb2targz *.deb >/dev/null || return 1
    rm -f *.deb || return 1
    cd $srcdir || return 1
    [ -d "mfc${_model}" ] || (mkdir mfc${_model} || return 1)
    for i in *.tar.gz;do tar xfz $i -C mfc${_model};done || return 1
    cd mfc${_model} || return 1
    cd opt/brother/Printers/mfc${_model} || return 1
    perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${_model} || return 1
    perl -i -pe 's#printcap\.local#printcap#g' $srcdir/mfc${_model}/opt/brother/Printers/mfc${_model}/inf/setupPrintcapij || return 1
    cp -rf $srcdir/mfc${_model}/usr/ $pkgdir/ || return 1
    cp -rf $srcdir/mfc${_model}/opt/ $pkgdir/ || return 1
}
md5sums=('7f891cbaddc07a1b86902c9c67cbcccb'
         '8756f5964a9f9f811cc1b855f7593c2f')

brother-mfc-j435w.install:

 post_install() {
	post_upgrade;
}

post_upgrade() {
	/opt/brother/Printers/mfcj435w/cupswrapper/cupswrappermfcj435w >/dev/null
	if [ "$?" -eq 0 ]; then
		printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m Done. The printer should be visible now via the CUPS-webinterface (http://localhost:631)\n"
	else
		printf "\033[1m\032[32m\x3d\x3d\x3e\033\1330m Something went wrong...\n"
	fi
}

So, then I open up the CUPS web interface and voila, I see MFCJ435W ready to go! So, I print a test page and it fails with "Unable to locate printer "BRN0080928DFDD8.local"."

I have no idea what to do to diagnose and fix my problem. Help?

Offline

#2 2013-02-09 17:17:31

debijan
Member
Registered: 2010-09-14
Posts: 37

Re: CUPS can't locate network printer

Do you have a mdns service configured? I am not sure if this is related, but zeroconf/avahi's .local domains get resolved by a multicast dns infrastructure:
https://wiki.archlinux.org/index.php/Avahi

oh found this: https://bbs.archlinux.org/viewtopic.php?id=127964

Offline

Board footer

Powered by FluxBB