Ubuntu

Failed to open device `brother3:bus1;dev1': Invalid argument

Reported by Brian J. Murrell on 2010-05-11
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
xsane (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: xsane

When I try to run xsane as a regular use, a dialog pops up with "Failed to open device `brother3:bus1;dev1': Invalid argument" in it and the only option is to close it.

If I run xsane as root (i.e. sudo xsane) everything works properly.

Of course, having to run xsane as root is just a dangerous hack and should not be necessary.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xsane 0.996-2ubuntu1.1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Mon May 10 23:14:16 2010
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: xsane

joshyg6 (josheg) wrote :

Bump.. Anyone know?

robbychen (robbychen2008) wrote :

I also wrote a post about it: http://blog.robbychen.com/2010/03/25/brother-scanner-driver-installation-in-ubuntu/. However, the solution in the post only works on Ubuntu 9.10. I tried similar steps on Ubuntu 10.04 with no success. It still shows "Invalid argument" error when I run it in the non-root environment. The warning message displayed each time I run xsane in the root account is a good explanation why we shouldn't run xsane as root. Hope this bug will fix soon.

Why hasn't anyone come up with the solution for this yet?

On Tue, Aug 31, 2010 at 11:58 PM, robbychen <email address hidden>wrote:

> I also wrote a post about it: http://blog.robbychen.com/2010/03/25
> /brother-scanner-driver-installation-in-ubuntu/. However, the solution
> in the post only works on Ubuntu 9.10. I tried similar steps on Ubuntu
> 10.04 with no success. It still shows "Invalid argument" error when I
> run it in the non-root environment. The warning message displayed each
> time I run xsane in the root account is a good explanation why we
> shouldn't run xsane as root. Hope this bug will fix soon.
>
> --
> Failed to open device `brother3:bus1;dev1': Invalid argument
> https://bugs.launchpad.net/bugs/578620
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “xsane” package in Ubuntu: New
>
> Bug description:
> Binary package hint: xsane
>
> When I try to run xsane as a regular use, a dialog pops up with "Failed to
> open device `brother3:bus1;dev1': Invalid argument" in it and the only
> option is to close it.
>
> If I run xsane as root (i.e. sudo xsane) everything works properly.
>
> Of course, having to run xsane as root is just a dangerous hack and should
> not be necessary.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 10.04
> Package: xsane 0.996-2ubuntu1.1
> ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
> Uname: Linux 2.6.32-22-generic i686
> NonfreeKernelModules: nvidia
> Architecture: i386
> Date: Mon May 10 23:14:16 2010
> ProcEnviron:
> PATH=(custom, user)
> LANG=en_CA.utf8
> SHELL=/bin/bash
> SourcePackage: xsane
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/578620/+subscribe
>

I had the same problem with my Brother DCP-145C on Ubuntu 10.04 when I upgraded and I just found a SOLUTION.

The post referred to by robbychen (http://blog.robbychen.com/2010/03/25/brother-scanner-driver-installation-in-ubuntu/) almost works, but the lines of coded needed to be added are slightly different, and I found the solution at http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_scn1c.html#u9.10

SOLUTION for Ubuntu 10.04 (despite it referring to 9.10 with the same solution) is the following (taken from the page I just linked to):
"
    1. Open "/lib/udev/rules.d/40-libsane.rules" file.
    2.Add the following two lines to the end of the device list. (Before the line "# The following rule will disable ..."):

    The lines to be added---------------------------

    # Brother scanners
    ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

    3. Restart the OS. "

Hope this helps.

rowez (info-rowez) wrote :

Alastair: look on https://bugs.launchpad.net/bugs/72321 for the real solution. You need GROUP and MODE.

Denis Walrave (deniswalrave) wrote :

I tried everything without success until:
sudo adduser <user> lp

Then it worked again.

Denis

Ubuntu 10.10
Brother DCP7010L Printer/Scanner

Hans Deragon (deragon) wrote :

I confirm having this problem with Ubuntu 08.04 Hardy Heron. However, none of the solution proposed apply to 08.04 and therefore running xsane from root remains the only solution.

tags: added: 08.04 heron
Jeruvy (jeruvy) wrote :

I'm going to update this to confirmed as many folks have reported it and I can confirm it also.

Changed in xsane (Ubuntu):
status: New → Confirmed
joshyg6 (josheg) wrote :

Check the brother website itself for linux directions.. They WORK!

On Mon, Feb 7, 2011 at 2:31 PM, Jeruvy <email address hidden> wrote:

> I'm going to update this to confirmed as many folks have reported it and
> I can confirm it also.
>
>
> ** Changed in: xsane (Ubuntu)
> Status: New => Confirmed
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/578620
>
> Title:
> Failed to open device `brother3:bus1;dev1': Invalid argument
>
> Status in “xsane” package in Ubuntu:
> Confirmed
>
> Bug description:
> Binary package hint: xsane
>
> When I try to run xsane as a regular use, a dialog pops up with
> "Failed to open device `brother3:bus1;dev1': Invalid argument" in it
> and the only option is to close it.
>
> If I run xsane as root (i.e. sudo xsane) everything works properly.
>
> Of course, having to run xsane as root is just a dangerous hack and
> should not be necessary.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 10.04
> Package: xsane 0.996-2ubuntu1.1
> ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
> Uname: Linux 2.6.32-22-generic i686
> NonfreeKernelModules: nvidia
> Architecture: i386
> Date: Mon May 10 23:14:16 2010
> ProcEnviron:
> PATH=(custom, user)
> LANG=en_CA.utf8
> SHELL=/bin/bash
> SourcePackage: xsane
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/578620/+subscribe
>

On Mon, 2011-02-07 at 19:50 +0000, joshyg6 wrote:
> Check the brother website itself for linux directions.. They WORK!

For various (and less than satisfactory) values of "WORK". The Brother
implementation is a total hack. They clearly lack any understanding of
filesystem standards and general operation of real-world Linux systems.

Additionally, my next printer purchase will preclude vendors which give
me difficult to follow, half-baked recipes to making their printer work
and any new printer will be chosen from a vendor that officially
supports the open printing standards.

Once this printer I have stops working, I am soooooo done with Brother.
I just wish I'd have taken it back while I had the chance instead of
wasting a piece of my life I will never get back on it.

Michel Briand (michelbriand) wrote :

On Debian squeeze I've found something interesting :

# ls -dl /usr/lib64
drwxr-x--- 4 root root 4096 Oct 31 16:48 /usr/lib64

The permissions are too restrictive for non-root user to load the libsane.so backend.

Something went wrong when the package brscan3 was installed ????

Jayneil Dalal (jayneil-dalal) wrote :

I am still having this problem in Xubuntu 13.04. Any solutions? Tried everything but no luck

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers