LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   dpkg return error :post installation script return an error code (1) (https://www.linuxquestions.org/questions/debian-26/dpkg-return-error-post-installation-script-return-an-error-code-1-a-753631/)

grimfold 09-08-2009 02:19 PM

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 :post 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.

estabroo 09-09-2009 08:35 AM

Have you tried just starting lshd before doing apt-get -f install?

grimfold 09-10-2009 01:55 PM

Reply
 
Quote:

Originally Posted by estabroo (Post 3675812)
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.


All times are GMT -5. The time now is 09:39 PM.