Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
krisbeeOffline
15 Post subject: mdadm problem after D-U  PostPosted: 30.05.2012, 11:37



Joined: 2011-04-25
Posts: 49
Location: London
Status: Offline
I have mdadm package problem a D-U (Start-Date: 2012-05-30 10:14:22) has thrown this up.

      Code:
Preparing to replace mdadm 3.2.4-1 (using .../mdadm_3.2.5-1_amd64.deb) ...
/etc/init.d/mdadm: 428: /lib/lsb/init-functions: FANCYTTY: parameter not set
invoke-rc.d: initscript mdadm, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
/etc/init.d/mdadm: 428: /lib/lsb/init-functions: FANCYTTY: parameter not set
invoke-rc.d: initscript mdadm, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/mdadm_3.2.5-1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 2
/etc/init.d/mdadm: 428: /lib/lsb/init-functions: FANCYTTY: parameter not set
invoke-rc.d: initscript mdadm, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2




The D-U included mdadm :amd64 (3.2.4-1, 3.2.5-1) and stopped with: Error: Sub-process /usr/bin/dpkg returned an error code (1)


      Code:
apt-get -f dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-headers-aptosid-amd64 linux-image-aptosid-amd64 tesseract-ocr-eng tesseract-ocr-osd
The following packages will be upgraded:
  ffmpeg libavcodec54 libavdevice54 libavfilter2 libavformat54 libavresample0 libavutil51 libpostproc52 libswresample0
  libswscale2 mdadm
11 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
215 not fully installed or removed.
Need to get 0 B/5,838 kB of archives.
After this operation, 151 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
(Reading database ... 135268 files and directories currently installed.)
Preparing to replace mdadm 3.2.4-1 (using .../mdadm_3.2.5-1_amd64.deb) ...
/etc/init.d/mdadm: 428: /lib/lsb/init-functions: FANCYTTY: parameter not set
invoke-rc.d: initscript mdadm, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
/etc/init.d/mdadm: 428: /lib/lsb/init-functions: FANCYTTY: parameter not set
invoke-rc.d: initscript mdadm, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/mdadm_3.2.5-1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 2
insserv: warning: current start runlevel(s) (empty) of script `mdadm' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mdadm' overwrites defaults (0 1 6).
/etc/init.d/mdadm-raid: 428: /lib/lsb/init-functions: FANCYTTY: parameter not set
invoke-rc.d: initscript mdadm-raid, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/mdadm_3.2.5-1_amd64.debE: Sub-process /usr/bin/dpkg returned an error code (1)


and

      Code:
apt-get purge mdadm
Reading package lists... Done                                                                                                                               
Building dependency tree                                                                                                                                     
Reading state information... Done                                                                                                                           
The following packages will be REMOVED:                                                                                                                     
  mdadm*                                                                                                                                                     
0 upgraded, 0 newly installed, 1 to remove and 14 not upgraded.                                                                                             
215 not fully installed or removed.                                                                                                                         
After this operation, 1,072 kB disk space will be freed.                                                                                                     
Do you want to continue [Y/n]? Y                                                                                                                             
dpkg: error processing mdadm (--purge):                                                                                                                     
 Package is in a very bad inconsistent state - you should                                                                                                   
 reinstall it before attempting a removal.                                                                                                                   
Errors were encountered while processing:                                                                                                                   
 mdadm                                                                                                                                                       
E: Sub-process /usr/bin/dpkg returned an error code (1)






I can neither reinstall, remove, or temporary downgrade mdadm to testing.

Not sure what to do now, so help would be appreciated.
 
 View user's profile Send private message  
Reply with quote Back to top
towoOffline
Post subject: RE: mdadm problem after D-U  PostPosted: 30.05.2012, 11:48



Joined: 2010-09-13
Posts: 499
Location: Pößneck / Thüringen
Status: Offline
echo 'FANCYTTY=1' >> /etc/default/rcS && apt-get -f install
 
 View user's profile Send private message  
Reply with quote Back to top
krisbeeOffline
Post subject: RE: mdadm problem after D-U  PostPosted: 30.05.2012, 14:20



Joined: 2011-04-25
Posts: 49
Location: London
Status: Offline
Thanks for the fix towo. D-U completed now and all OK.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio