LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2016, 11:03 PM   #16
crabbyfogey
Member
 
Registered: Sep 2016
Posts: 54

Original Poster
Rep: Reputation: Disabled

My SPM and SM both are showing libsane and sane-util as not being installed, plus there are no broken dependencies. However, the archives are still showing them on the list, so I suspect if I try to reinstall I'll create the same problem. Now what do I do?

Archive list section

/var/cache/apt/archives/libsane_1.0.23-3ubuntu3.1_amd64.deb
/var/cache/apt/archives/libsane-common_1.0.23-3ubuntu3.1_amd64.deb (this is installed)
/var/cache/apt/archives/lock
/var/cache/apt/archives/sane-utils_1.0.23-3ubuntu3.1_amd64.deb
 
Old 12-01-2016, 01:03 PM   #17
crazy-yiuf
Member
 
Registered: Nov 2015
Distribution: Debian Sid
Posts: 119

Rep: Reputation: 51
Now you could do an "apt-get purge libsane sane-utils" if you want to get rid of any configuration files they left around.

After that, assuming you actually want those packages for something (using a scanner or other dependencies), do an "apt-get update" and go ahead and install them "apt-get install libsane sane-utils". It should work this time if the stale configuration files were removed.

The "apt-get update" will always replace your stale packages in the cache. As mentioned, you can get rid of them with "apt-get clean" but it shouldn't change anything.
 
Old 12-03-2016, 04:31 AM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,237
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
crabbyfogey, did you solve it? with crazy-yiuf's advice?

from what i see you were always getting the same error, pointing to one file, and always aiming and shooting elsewhere.
hope you didn't thoroughly bork your system by now.
 
Old 12-03-2016, 07:04 AM   #19
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
the Package libsane can be removed via edit in /var/lib/dpkg/status
But that is an advanced topic that I will not cover here nor provide direction.

That's the how and what of it.
What SMP and PM shows, IDK, I don't rely on GUIs much.

Good Luck.

Code:
sudo dpkg-reconfigure libsane
may offer additional relief.
Ask your Doctor.

Last edited by Habitual; 12-03-2016 at 07:05 AM. Reason: half-installed edit +"/var/lib/dpkg/status"
 
Old 12-04-2016, 06:04 PM   #20
crabbyfogey
Member
 
Registered: Sep 2016
Posts: 54

Original Poster
Rep: Reputation: Disabled
Couple of questions:
Error: E: /var/cache/apt/archives/libsane_1.0.23-3ubuntu3.1_amd64.deb: trying to overwrite shared '/etc/sane.d/v4l.conf', which is different from other instances of package libsane:amd64
Doesn't this say that the error occurs while trying to overwrite v4l.conf? If that file is deleted will a different one be installed?

Contents of v4l.conf:
#
# In order to use the v4linux backend you have to give the device
# You can enable multiple lines if
# you really have multible v4l devices.

# Backends disabled, to re-enable unquote the following lines
# See https://bugs.launchpad.net/ubuntu/+s...nds/+bug/87312
#/dev/bttv0
#/dev/video0
#/dev/video1
#/dev/video2
#/dev/video3

What does that even do? Bug#87312 is from 2007, is about tv cards recognised as scanners and looks like it has been fixed.
 
Old 12-06-2016, 03:24 PM   #21
crazy-yiuf
Member
 
Registered: Nov 2015
Distribution: Debian Sid
Posts: 119

Rep: Reputation: 51
Quote:
Doesn't this say that the error occurs while trying to overwrite v4l.conf? If that file is deleted will a different one be installed?
That's exactly right, and that's what we want to happen. What's supposed to happen in this case is a nice prompt, something like "This package wants to replace a configuration file, is that ok?", but package maintainers make mistakes, and sometimes an upgrade path falls through the cracks.

Every line in that file is commented out - it does literally nothing. Its purpose is to allow you to uncomment the lines by removing the # at the beginning of the line. Then that line would be parsed by the program when it starts up.

You should remove /etc/sane.d/v4l.conf and let the new version replace it. You can either do it manually with the rm command or via the package manager with the command "sudo apt-get purge libsane".
 
Old 12-07-2016, 12:32 PM   #22
crabbyfogey
Member
 
Registered: Sep 2016
Posts: 54

Original Poster
Rep: Reputation: Disabled
Different file name this time:
(synaptic:5081): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed
(Reading database ... 177424 files and directories currently installed.)
Preparing to unpack .../libsane_1.0.23-3ubuntu3.1_amd64.deb ...
Unpacking libsane:amd64 (1.0.23-3ubuntu3.1) ...
dpkg: error processing archive /var/cache/apt/archives/libsane_1.0.23-3ubuntu3.1_amd64.deb (--unpack):
trying to overwrite shared '/etc/sane.d/snapscan.conf', which is different from other instances of package libsane:amd64
Errors were encountered while processing:
/var/cache/apt/archives/libsane_1.0.23-3ubuntu3.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of sane-utils:
sane-utils depends on libsane; however:
Package libsane:amd64 is not installed.

dpkg: error processing package sane-utils (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sane-utils

File Contents:
--------------------------
#------------------------------ General -----------------------------------

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
firmware /usr/share/sane/snapscan/your-firmwarefile.bin

# If not automatically found you may manually specify a device name.

# For USB scanners also specify bus=usb, e.g.
# /dev/usb/scanner0 bus=usb

# For SCSI scanners specify the generic device, e.g. /dev/sg0 on Linux.
# /dev/sg0

#---------------------------------------------------------------------------
# No changes should be necessary below this line
#---------------------------------------------------------------------------

#-------------------------- SCSI scanners ----------------------------------
# These SCSI devices will be probed automatically
scsi AGFA * Scanner
scsi COLOR * Scanner
scsi Color * Scanner
scsi ACERPERI * Scanner

#--------------------------- USB scanners -----------------------------------
# These USB devices will be probed automatically
# (This will currently work only on Linux)

# Benq/Acer/Vuego 310U
usb 0x04a5 0x1a20
usb 0x04a5 0x1a26

# Benq/Acer/Vuego 320U
usb 0x04a5 0x2022

# Benq/Acer/Vuego 620U / 620UT
usb 0x04a5 0x1a2a
usb 0x04a5 0x2040

# Benq/Acer/Vuego 640U
usb 0x04a5 0x2060

# Benq/Acer/Vuego 640BU
usb 0x04a5 0x207e

# Benq/Acer/Vuego 640BT
usb 0x04a5 0x20be

# Benq/Acer/Vuego 1240U
usb 0x04a5 0x20c0

# Benq/Acer/Vuego 3300 / 4300
usb 0x04a5 0x20b0

# Benq/Acer/Vuego 4300
usb 0x04a5 0x20de

# Benq 5000E / 5000U
usb 0x04a5 0x20f8

# Benq 5000
usb 0x04a5 0x20fc

# Benq/Acer 5300
usb 0x04a5 0x20fe

# Benq 5250C
usb 0x04a5 0x2137

# Agfa 1236U
usb 0x06bd 0x0002

# Agfa 1212U
usb 0x06bd 0x0001
usb 0x06bd 0x2061

# Agfa Snapscan e10
usb 0x06bd 0x2093

# Agfa Snapscan e20
usb 0x06bd 0x2091

# Agfa Snapscan e25
usb 0x06bd 0x2095

# Agfa Snapscan e26
usb 0x06bd 0x2097

# Agfa Snapscan e40
usb 0x06bd 0x208d

# Agfa Snapscan e42
usb 0x06bd 0x20ff

# Agfa Snapscan e50
usb 0x06bd 0x208f

# Agfa Snapscan e52
usb 0x06bd 0x20fd

# Epson Perfection 660
usb 0x04b8 0x0114

# Epson Perfection 1670
usb 0x04b8 0x011f

# Epson Perfection 2480
usb 0x04b8 0x0121

# Epson Perfection 3490
usb 0x04b8 0x0122

# Epson Stylus CX-1500
usb 0x04b8 0x080c

The scanner I want to use is not on the list, should I just remove this one, too? If I remove all the rest of the error files will sane-util reinstall new ones?
 
Old 12-08-2016, 12:04 PM   #23
crazy-yiuf
Member
 
Registered: Nov 2015
Distribution: Debian Sid
Posts: 119

Rep: Reputation: 51
Quote:
If I remove all the rest of the error files will sane-util reinstall new ones?
It should. Anything you didn't add manually will presumably be added when it reconfigures.

I recommend
Code:
apt-get purge libsane sane-utils
If you haven't already, to remove all of the stale configuration files at once.

If your scanner doesn't work afterwards, you can run the command recommended by Habitual:
Code:
sudo dpkg-reconfigure libsane
And if it still doesn't work you can start a new thread.
 
Old 12-11-2016, 07:28 PM   #24
crabbyfogey
Member
 
Registered: Sep 2016
Posts: 54

Original Poster
Rep: Reputation: Disabled
Eureka! Sane-util installed no broken anything! Now all I have to do is figure out how to test the scanner. That's a whole nuther smoke. Thanks so much for the digital hand holding.
 
Old 12-12-2016, 07:58 AM   #25
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by crabbyfogey View Post
Eureka! Sane-util installed no broken anything! Now all I have to do is figure out how to test the scanner. That's a whole nuther smoke. Thanks so much for the digital hand holding.
Good job and well done.
Feels good doesn't it?

Wouldn't be the first busted deb package that apt installed.
Ubuntu 16.04-based apache2 install used to "bark", then half-install, it was a mess.
Until...
Code:
### Fix apache install error on 'missing' /etc/apache2/conf.d/ ###
mkdir -pv /etc/apache2/conf.d/
and a serious edit described in post #19.

Like I said, I don't trust GUIs much.
But occasionally, they can be useful.

Last edited by Habitual; 12-12-2016 at 08:06 AM.
 
Old 12-12-2016, 10:37 AM   #26
crabbyfogey
Member
 
Registered: Sep 2016
Posts: 54

Original Poster
Rep: Reputation: Disabled
Feeling kind of proud of myself. Getting the scanner to work will probably end that. I'm not as nervous using the terminal, but still think I need a magic decoder ring. Anyway, it's all good.
 
Old 12-12-2016, 12:14 PM   #27
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
plug in scanner.
Turn it on.
Run xsane.

Easy peasy, mac-n-cheesy
 
Old 12-12-2016, 03:56 PM   #28
crabbyfogey
Member
 
Registered: Sep 2016
Posts: 54

Original Poster
Rep: Reputation: Disabled
I think where I'm going to run into trouble is that it's a copier/printer/scanner combo. Fired it up and the copier/printer work fine, haven't tackled the scanner yet. Everything I've read online is outdated and complicated, so I'm doing some homework first. Finding it hard to believe all that online stuff is necessary. The sane docs say I should install sane-back-end first (pixma 0.17.23)- can't find it to look at it??
 
Old 12-12-2016, 04:19 PM   #29
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by crabbyfogey View Post
I think where I'm going to run into trouble is that it's a copier/printer/scanner combo. Fired it up and the copier/printer work fine, haven't tackled the scanner yet. Everything I've read online is outdated and complicated, so I'm doing some homework first.
"outdated" based on "publication date"?

copier/printer might be the best you get since it's
Quote:
Originally Posted by crabbyfogey View Post
not on the list
this pixma 0.17.23

SANE - Installing a scanner that isn't auto-detected

and look at "pixma 0.17.23" over on http://www.sane-project.org/sane-mfgs.html#SCANNERS

We'll likely need more info and I advise starting a new thread for that.
Don't do anything but look and read/bookmark

Last edited by Habitual; 12-12-2016 at 04:29 PM.
 
Old 12-12-2016, 09:15 PM   #30
crabbyfogey
Member
 
Registered: Sep 2016
Posts: 54

Original Poster
Rep: Reputation: Disabled
Checked the sane support list before I bought it, so it's on there. The only thing I've done so far is do a sane-find-scanner. Looks like it can see it but can't get there from here.

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x0bda [Generic], product=0x0129 [USB2.0-CRW]) at libusb:001:003
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

While rummaging thru other forums, someone said that you shouldn't install xsane before the back-end??? Anyway, as you say, that's another thread. As soon as I figure out what questions to ask.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Manager , Synaptic package manager & dpkg: warning error massage sa3paleasm Linux - Software 1 08-07-2013 04:45 PM
[SOLVED] Synaptic package manager won't open due to faulty package nine9nine Linux - Software 7 09-15-2011 07:30 PM
[SOLVED] Difference Between Synaptic Package Manager and Update Manager nasser019 Linux - Software 1 07-20-2010 07:12 AM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration