LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2017, 12:01 PM   #1
anmol26s
LQ Newbie
 
Registered: May 2017
Posts: 3

Rep: Reputation: Disabled
Errors were encountered while processing: /var/cache/apt/archives/sane-utils_1.0.24-8+deb8u2_amd64.deb


I am getting error while installing the sane-utils package. I was unable to use scanner on the network , so I messed things up.

Code:
(Reading database ... 103521 files and directories currently installed.)
Preparing to unpack .../sane-utils_1.0.24-8+deb8u2_amd64.deb ...
Failed to stop saned.service: Unit saned.service not loaded.
Warning: Stopping saned.service, but it can still be activated by:
  saned.socket
invoke-rc.d: initscript saned, action "stop" failed.
/var/lib/dpkg/info/sane-utils.prerm: 5: /var/lib/dpkg/info/sane-utils.prerm: saned_eh: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
Failed to stop saned.service: Unit saned.service not loaded.
Warning: Stopping saned.service, but it can still be activated by:
  saned.socket
invoke-rc.d: initscript saned, action "stop" failed.
/var/lib/dpkg/tmp.ci/prerm: 5: /var/lib/dpkg/tmp.ci/prerm: saned_eh: not found
dpkg: error processing archive /var/cache/apt/archives/sane-utils_1.0.24-8+deb8u2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
Deep recursion on subroutine "main::get_link_closure" at /usr/bin/deb-systemd-helper line 200, <$fh> line 14.
Segmentation fault
Deep recursion on subroutine "main::get_link_closure" at /usr/bin/deb-systemd-helper line 200, <$fh> line 14.
/usr/bin/deb-systemd-helper: error: unable to read /etc/systemd/system/saned.socket
Failed to start saned.service: Unit saned.service failed to load: Invalid argument.
invoke-rc.d: initscript saned, action "start" failed.
saned couldn't start; check your inetd configuration and README.Debian
Errors were encountered while processing:
 /var/cache/apt/archives/sane-utils_1.0.24-8+deb8u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 05-09-2017, 02:00 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Hi anmol26s and welcome to LQ.

I feel you should add some more information here to have others be able to help you.

What distribution and version are you trying to install this on?

What are the system specifications you are trying to perform this with?
 
Old 05-09-2017, 02:28 PM   #3
anmol26s
LQ Newbie
 
Registered: May 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi rtmistler
Thanks for you reply.

I have Debian Jessie and this error comes when I try to update with apt-get update or try to install this package manually with apt-get install sane-utils. On service saned restart I get:
Failed to restart saned.service: Unit saned.service failed to load: Invalid argument.

systemctl status saned show:
● saned.service
Loaded: not-found (Reason: Invalid argument)
Active: inactive (dead)
 
Old 05-09-2017, 08:16 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
OK, that's a problem with the package itself. /var/cache/apt/archives is where Debian stores downloaded package files before installing them. It looks like sysv-init and systemd are kind of duking it out.

I would use the reportbug program to report the situation. You run it from the command line. Then, after a few days it should work. For now, you can remove the offending package.
 
Old 05-10-2017, 02:45 AM   #5
anmol26s
LQ Newbie
 
Registered: May 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have reported a bug as you suggested. https://bugs.debian.org/cgi-bin/bugr...cgi?bug=862241
Please advise if I need to send additional information.
Thanks
 
  


Reply



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
[SOLVED] How to clean up /var/cache/apt/archives Ztcoracat Debian 4 10-02-2012 10:22 PM
error processing /var/cache/apt/archives/cnijfilter-common_3.50-2ubuntu3_amd64.deb docklc Linux - Software 1 08-02-2011 02:40 PM
/var/cache/apt/archives/udvev-151-3-i386.deb ERROR Antiz Linux - Newbie 15 04-05-2010 02:19 PM
How to prevent apt from deleting packages in /var/cache/apt/archives ? abc.linux Debian 11 11-07-2009 11:46 AM
Where are my .deb packages from /var/cache/apt/archives? bruno buys Debian 3 02-13-2005 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 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