Fix Broken package – Ubuntu


Sometimes a corrupt installation package can corrupt your package management system leaving your Linux unable to install or on remove any packages (Software). Here is the message error I got from apt-get after trying to install ndas-admin for Ubuntu.

$sudo apt-get install mplayer   (or any package)
Reading package lists… Done
Building dependency tree      
Reading state information… Done
E: The package ndas-admin needs to be reinstalled, but I can’t find an archive for it.   (this is the error)

I tried : $ sudo apt-get install -f  , to try to fix the problem but got the same error. The only option I had was to edit the dpkg status file manually.

  1. $ sudo gedit /var/lib/dpkg/status    (if you prefer you can use vi instead of gedit)
  2. Locate the corrupt package, and remove the whole block of information about it and save the file. Mine looked like this:
  • Package: ndas-admin
    Status: deinstall reinstreq half-configured
    Priority: extra
    Section: alien
    Installed-Size: 100
    Maintainer: root <root@ubuntu510>
    Architecture: i386
    Version: 1.0.2-24
    Depends: libc6 (>= 2.3.4-1)
    Description: Administration toosl for XIMETA,Inc NDAS device driver for Linux operating system
     ndas-admin – This program allows the user to register/enable/disable/unregister the XIMETA NDAS hard disk.
     .
     (Converted from a rpm package by alien version 8.53.)

Fixed. Hope this helps someone else.

Technorati Tags: , , ,

Related Posts

, , ,

Android Apple Blog Books Broadband browser Browser Security Development Facebook Firefox Google GZIP HOSTNAME IFCONFIG Internet Explorer iPhone Linux Linux Man Pages Mac Microsoft Mobile Mozilla Novell OpenOffice OpenSource Open Source OpenSUSE OpenSUSE 11.1 PHP Programming Search Security SENDMAIL SEO Social Networking Sun Suse Linux Ubuntu usermod Virtualization Windows Windows 7 Wordpress Yahoo Zypper
  1. #1 by Hylton - February 5th, 2009 at 15:13

    So appreciate this post. Was about to kill someone courtesy of googleearth. Now happy again! You rock!

  2. #2 by Tyler - May 27th, 2009 at 05:44

    Thank you so much! I was almost doomed.

  3. #3 by LJ - June 18th, 2009 at 10:13

    You sir, are a hero. I love you.

  4. #4 by SymJ - September 23rd, 2009 at 10:14

    I just couldn’t thank you enough, i thought of doing a fresh install, but you saved me.

    Thank you very much.

  5. #5 by Chyess - October 18th, 2009 at 17:05

    Thanks! This worked perfectly.

  6. #6 by Kerrey - October 19th, 2009 at 09:54

    I can never thank you enough, I been pulling my hair out trying to fix my problem, finally after hours of searching I found this post. You really saved me a Full install of the whole system

  7. #7 by ace - November 11th, 2009 at 03:08

    Yeah men, you are our saver !!!

    Thanks !

  8. #8 by Hari Krishnan - November 17th, 2009 at 19:10

    Man,
    You are Great. I can’t leave this page without appreciating You. You Rocks man. Really Thanks… Keep giving useful tips for newbies like Me……

    Thanz again…..

  9. #9 by m3ld0n - January 17th, 2010 at 02:51

    OMG I LOVE YOU SO MUCH !!! THANK YOU !!

  10. #10 by Bob - May 4th, 2010 at 21:49

    This is just what I needed. Thanks!

  11. #11 by Saul - May 28th, 2010 at 18:11

    Well I sure help me! I was about to go back to windows, not a pretty option.

(will not be published)