LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-08-2009, 02:19 PM   #1
grimfold
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
dpkg return error :post installation script return an error code (1)


Hi,it seems that dpkg got stocked somewhere with a package ,when i try to do apt-get upgrade ,to general upgrade some package i have installed on Debian Squeeze ,i got this ugly error ost installation script return an error code (1),and doesn't let me to do some install ,it seems that lsh server can't start ,this is the error sorry is not in english but you'll figure out :


Code:
Se pregătește īnlocuirea lui lsh-server 2.0.4-dfsg-3 (folosind .../lsh-server_2.0.4-dfsg-4_i386.deb) ...
Gracefully stopping secure shell v2 server: lshd failed!
invoke-rc.d: initscript lsh-server, action "stop" failed.
dpkg: warning: script pre-removal vechi returned error exit status 1
dpkg - īncerc scriptul din noul pachet īn loc ...
Gracefully stopping secure shell v2 server: lshd failed!
invoke-rc.d: initscript lsh-server, action "stop" failed.
dpkg: eroare la procesarea /var/cache/apt/archives/lsh-server_2.0.4-dfsg-4_i386.deb (--unpack):
 subprocesul script pre-removal nou returnează starea de eroare la ieșire 1
Starting secure shell v2 server: lshd failed!
invoke-rc.d: initscript lsh-server, action "start" failed.
dpkg: eroare īn timpul curățării:
 subprocesul installed post-installation script returnează starea de eroare la ieșire 1
I try to do apt-get -f install lsh-server but the error return again:

I read on web a Debian site (i don't remember) i got it when sysv-rc configure to migrate to dependency based boot system:I had do it first "apt-get upgrade"
and that's why sysv-rc configure:

Code:
Unable to migrate to dependency based boot system 

Tests have determined that problems in the boot system exist which prevent migration to dependency based boot sequencing. It is recommended to migrate for the following reasons:

* the order of boot and shutdown is calculated dynamically, using dependency information declared within each init.d script, which ensures optimum and correct boot sequence for the set of installed packages ,   * protection against problems introduced by new or upgraded packages by preserving the boot sequence when problems are detected; the boot     sequence is only modified if it is safe to do so



If the reported problem is a local modification it needs to be fixed manually.  If it's a bug in the package it should be reported to the BTS and fixed in the package. See http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot for more information about how to fix the problems preventing migration. To reattempt the migration process after the  problems have been fixed, run 'dpkg-reconfigure sysv-rc'.





The following problems were detected: package jackd left obsolete init.d script behind, package aumix-common removed  by not purged, package dhcdbd removed by not purged, package fam removed by not purged, package lisa removed by not  purged, package nvidia-glx removed by not purged, package postgresql-8.3 removed by not purged, package samba removed  by not purged, package wdm removed by not purged, package winbind removed by not purged, insserv: script xfstt service xfs already provided!, insserv: script xfstt: service xfstt already provided!, insserv: script  postgresql-8.4: service postgresql already provided!, insserv: script postgresql-8.4: service postgresql-8.4 already  provided!,
.


So now i'm lost, i had follow the website provided in this log http://wiki.debian.org/LSBInitScript...dencyBasedBoot but the error i'm talking it didn't disappear .
Thank you and sorry for the big log.
 
Old 09-09-2009, 08:35 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,127
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Have you tried just starting lshd before doing apt-get -f install?
 
Old 09-10-2009, 01:55 PM   #3
grimfold
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Reply

Quote:
Originally Posted by estabroo View Post
Have you tried just starting lshd before doing apt-get -f install?
Yes i try this,and doesnt let me to start the lshd lsh-server return error which i found and now my system is running fine of course if i need to test again sysv-rc i will do it but now it's ok.
 
  


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
Aptitude return no error code qriopeur Linux - Newbie 2 02-17-2009 01:15 PM
SCSI error : <1 0 0 0> return code = 0x8000002 tovohery Linux - General 1 08-05-2008 03:31 PM
SCSI error: return code = 800002 darknight1726 Linux - Distributions 0 05-02-2008 05:26 AM
SCSI error : <0 2 0 0> return code = 0x40000 antunin Linux - Hardware 3 12-11-2007 12:21 PM
SCSI error : <0 0 0 0> return code = 0x70000 kkyriacou Linux - Hardware 2 09-19-2007 01:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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