Results 1 to 9 of 9

Thread: Apt-get broken

  1. #1
    Join Date
    Oct 2007
    Location
    Paris
    Beans
    91

    Question Apt-get broken

    Hi,
    My apt get is not listing any software installed anymore, and when I want to install something I get:

    E: Internal Error, Could not perform immediate configuration (2) on libattr1
    My /var/lib/dpkg/status file is empty, Is there anyway I can rebuild the index?

  2. #2
    Join Date
    May 2008
    Location
    Cluj, Romania
    Beans
    1,292

    Re: Apt-get broken

    Try:

    In a terminal:

    sudo apt-get update

  3. #3
    Join Date
    May 2008
    Location
    Cluj, Romania
    Beans
    1,292

    Re: Apt-get broken

    But i dont think it will help...

    How did you get in this situation?

  4. #4
    Join Date
    May 2009
    Location
    North West England
    Beans
    2,676
    Distro
    Ubuntu Development Release

    Re: Apt-get broken

    Quote Originally Posted by mnml View Post
    Hi,
    My apt get is not listing any software installed anymore, and when I want to install something I get:



    My /var/lib/dpkg/status file is empty, Is there anyway I can rebuild the index?

    Hi, and ouch .....

    when i had my apt-get hosed i did this ...

    Code:
    cd /var/lib/dpkg
    sudo mv status status.bak
    sudo mv status-old status
    sudo apt-get update
    It is from this thread --> http://ubuntuforums.org/showthread.php?t=1352725

    It got me out of 'jail' Hope it as successful for you.

    Regards,

    Phill.

  5. #5
    Join Date
    May 2008
    Location
    Cluj, Romania
    Beans
    1,292

    Re: Apt-get broken

    But read here:

    https://answers.launchpad.net/ubuntu...question/12093

    Its about rebuilding a blank status file. There are some scripts there that seemed to work for that guy.

  6. #6
    Join Date
    May 2008
    Location
    Cluj, Romania
    Beans
    1,292

    Re: Apt-get broken

    Quote Originally Posted by phillw View Post
    Hi, and ouch .....

    when i had my apt-get hosed i did this ...

    Code:
    cd /var/lib/dpkg
    sudo mv status status.bak
    sudo mv status-old status
    sudo apt-get update
    It is from this thread --> http://ubuntuforums.org/showthread.php?t=1352725

    It got me out of 'jail' Hope it as successful for you.

    Regards,

    Phill.
    IF he has status-old.

  7. #7
    Join Date
    Oct 2007
    Location
    Paris
    Beans
    91

    Re: Apt-get broken

    thanks for the help apparently status-old is empty too and I have no clue how it happened

  8. #8
    Join Date
    May 2009
    Location
    North West England
    Beans
    2,676
    Distro
    Ubuntu Development Release

    Re: Apt-get broken

    Quote Originally Posted by gradinaruvasile View Post
    IF he has status-old.
    Which he hasn't

    The other option in that thread is along the lines of how to recover a really messed up flash installation - Brute force.

    But, I'd do a +1 for the method that you posted for trying to recover & will update my link that I use.

    Thanks for the additional info,

    Phill.

  9. #9
    Join Date
    Oct 2007
    Location
    Paris
    Beans
    91

    Re: Apt-get broken

    I found it in /var/backups , solved, I have no clue how It got there
    thanks for the help guys

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •