Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: apt-get is confused by brscan2 partial fail- won't install anything

  1. #1
    Join Date
    May 2014
    Beans
    31

    apt-get is confused by brscan2 partial fail- won't install anything

    Background: Running kubuntu 14.04, using kdm. I have a Brother MFC7280N, and installed the brscan2 package. Nevertheless I have never been able to scan, since the device is never found. I removed (I thought) brscan2 in hopes of reinstalling.


    I had installed Kompozer, and had to remove it when it started to display funky video. I have tried to reinstall it but without success. I haven't edited any config files, except to add a repository for Kompozer (failed), or done anything other than run apt-get and the software center. That is, I haven't tried any strange (to me) commands to install, remove, or modify the installed software.

    I did try to install Kompozer from a .deb file and also from two tarballs. Because I really, really need Kompozer and couldn't get it to work right on this machine.


    Now I can't install or remove any software using apt-get or the Ubuntu Software Center. Here's an example:
    <<

    bill@LEX:/home/bill# sudo apt-get purge kompozer:i386
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    brscan2 kompozer:i386*
    0 upgraded, 0 newly installed, 2 to remove and 338 not upgraded.
    2 not fully installed or removed.
    After this operation, 26.4 MB disk space will be freed.
    Do you want to continue? [Y/n] y
    (Reading database ... 325451 files and directories currently installed.)
    Removing brscan2 (0.2.5-1) ...
    rmdir: failed to remove ‘/usr/local/Brother/sane/GrayCmData/ALL’: No such file or directory
    rmdir: failed to remove ‘/usr/local/Brother/sane/GrayCmData/AL’: No such file or directory
    rmdir: failed to remove ‘/usr/local/Brother/sane/GrayCmData’: No such file or directory
    rmdir: failed to remove ‘/usr/local/Brother/sane/models2’: No such file or directory
    rmdir: failed to remove ‘/usr/local/Brother/sane’: No such file or directory
    rmdir: failed to remove ‘/usr/local/Brother’: No such file or directory
    dpkg: error processing package brscan2 (--remove):
    subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
    brscan2
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    <<

    It's as-if wheatever I am trying to install or remove, apt-get finds that it had a problem with brscan2 and tries to remove it, giving up when it fails because it had partially succeeded before. Then it just ignores anything else (like Kompozer, or anything I want to install or remove, even when using the -f option). This is so strange that I don't have any notion of what to make of it. So I need some expert guidance. Many thanks!


    Last edited by linbu2; June 6th, 2014 at 09:50 PM. Reason: composition

  2. #2
    Join Date
    Jan 2014
    Location
    Netherlands
    Beans
    188
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: apt-get is confused by brscan2 partial fail- won't install anything

    apt-get remove brscan2

    what shows the output

  3. #3
    Join Date
    May 2014
    Beans
    31

    Re: apt-get is confused by brscan2 partial fail- won't install anything

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package brscan2

  4. #4
    Join Date
    Jan 2014
    Location
    Netherlands
    Beans
    188
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: apt-get is confused by brscan2 partial fail- won't install anything


  5. #5
    Join Date
    Jan 2014
    Location
    Netherlands
    Beans
    188
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: apt-get is confused by brscan2 partial fail- won't install anything

    your brother driver seems to be removed

    pls install the drivers first, and make sure you can print and scan

    after that i will guide you in to the process of installation of Kompozer

  6. #6
    Join Date
    May 2014
    Beans
    31

    Re: apt-get is confused by brscan2 partial fail- won't install anything

    I can't install anything either (including brscan2). I do appreciate your guidance. It says brscan2 is already the latest version, but yet my scanner is never found. I've tried xsane, simple scan, and gwenview for scanning.

    # apt-get install brscan2
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    brscan2 is already the newest version.
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    kompozer:i386 : Depends: libatk1.0-0:i386 (>= 1.9.0) but it is not going to be installed
    Depends: libcairo2:i386 (>= 1.0.2-2) but it is not going to be installed
    Depends: libgtk2.0-0:i386 (>= 2.8.0) but it is not going to be installed
    Depends: libidl0:i386 but it is not going to be installed
    Depends: libpango1.0-0:i386 (>= 1.12.3) but it is not going to be installed
    Depends: libxft2:i386 (> 2.1.1) but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

  7. #7
    Join Date
    May 2014
    Beans
    31

    Re: apt-get is confused by brscan2 partial fail- won't install anything

    BTW: I've tried 'apt-get -f install' with no packages

  8. #8
    Join Date
    Jan 2014
    Location
    Netherlands
    Beans
    188
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: apt-get is confused by brscan2 partial fail- won't install anything

    dpkg -s brscan2

    pls post the output

  9. #9
    Join Date
    May 2014
    Beans
    31

    Re: apt-get is confused by brscan2 partial fail- won't install anything

    Package: brscan2
    Status: deinstall ok half-installed
    Maintainer: Brother Industries, Ltd.
    Architecture: amd64
    Version: 0.2.5-1
    Config-Version: 0.2.5-1
    Provides: brscan
    Description: Brother Scanner Driver
    Copyright: 2003 Brother Industries, Ltd. All Rights Reserved
    Brother sane backend Driver

  10. #10
    Join Date
    Sep 2011
    Location
    Pennsylvania, U.S.A.
    Beans
    3,068
    Distro
    Ubuntu Development Release

    Re: apt-get is confused by brscan2 partial fail- won't install anything

    Quote Originally Posted by linbu2 View Post
    I can't install anything either (including brscan2). I do appreciate your guidance. It says brscan2 is already the latest version, but yet my scanner is never found. I've tried xsane, simple scan, and gwenview for scanning.
    If brscan2 is installed, have you done the 2 additional steps required for Brother scanners to be recognized by normal users?

    One involves this edit:
    Copy the following files under /usr/lib64/ to /usr/lib/.

    For brscan2 Users:
    /usr/lib64/libbrscandec2.so.1.0.0
    /usr/lib64/sane/libsane-brother2.so.1.0.7
    /usr/lib64/sane/libsane-brother2.so.1
    /usr/lib64/sane/libsane-brother2.so
    /usr/lib64/libbrcolm2.so.1.0.1
    /usr/lib64/libbrcolm2.so
    /usr/lib64/libbrscandec2.so.1
    /usr/lib64/libbrscandec2.so
    /usr/lib64/libbrcolm2.so.1

    reference: http://support.brother.com/g/s/id/li...rect=on#f00101


    The second issue involves a situation where the scanner works using SUDO but not as a non-privileged user:

    Ubuntu 9.10, 10.04, 10.10, 11.4, 11.10, 12.04, 12.10 (versions later than 12.10 aren't mentioned but I've needed to do these steps with each new install)

    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 ..."):
    If there is "LABEL="libsane_rules_end"", add the following 2 lines before "LABEL="libsane_rules_end"".

    The lines to be added---------------------------
    # Brother scanners
    ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

    3. Restart the OS.

    reference: http://support.brother.com/g/s/id/li...&redirect=on#6

    I hope this will get your Brother working.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •