Results 1 to 4 of 4

Thread: dpkg problems

  1. #1
    Join Date
    Jun 2006
    Beans
    206

    dpkg problems

    During an update (after installing Hardy 8.04), my computer crashed (I had an APIC error), which seems to have corrupted dpkg.

    When I go to System > Management > Update-Manager, I get a warning telling me to run
    PHP Code:
    dpkg --configure -
    because dpkg was interrupted.

    When I run that command, I get the following output:
    PHP Code:
    dpkgparse errorin file `/var/lib/dpkg/updates/0052' near line 1:
     nieuwe regel in veldnaam 
    `padding
    I then tried
    PHP Code:
    sudo dpkg --clear-avail 
    , that seemed to work (no output).

    Next, I ran
    PHP Code:
    sudo apt-get update 
    and got (after a list of repositories):
    PHP Code:
    Edpkg was interruptedyou must manually run 'dpkg --configure -a' to correct the problem
    So I'm kind of in an infinite loop here Suggestions are welcome.

  2. #2
    Join Date
    Jun 2006
    Beans
    206

    Re: dpkg problems

    Wow, problem solved
    I simply deleted
    PHP Code:
    /var/lib/dpkg/updates/0052 

  3. #3
    Join Date
    Jul 2007
    Beans
    1

    Re: dpkg problems

    Quote Originally Posted by Mathiasdm View Post
    Wow, problem solved
    I simply deleted
    PHP Code:
    /var/lib/dpkg/updates/0052 
    I'm a real newbe!
    could you please tell me how and where you placed the PHP Code.
    I'm having the same problem and need to use the code.

  4. #4
    Join Date
    Aug 2006
    Location
    Yellowknife
    Beans
    878

    Re: dpkg problems

    It's not actually PHP Code, it's just marked as such.

    To do these things, go to Applications>Accessories>Terminal

    Assuming you're having this problem, my suggestion would be to try the following commands, one after the other

    Code:
    sudo dpkg --configure -a
    sudo apt-get -f install
    sudo apt-get update
    sudo apt-get dist-upgrade
    Just so you are aware, prefacing the commands with 'sudo' will ask for your password, just like the Update Manager does when you install packages. In the terminal your password is not echoed back to you, even as little dots. Just type it and press Enter.

    That should get you cleaned up and back on the right track. Personally, I've never had to delete one of these update files, and I'd rather not tell you to 'sudo rm' anything as even an innocent typo can cause damage with the rm (remove/delete) command.

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
  •