Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: server packages errors

  1. #1
    Join Date
    Jun 2011
    Beans
    35

    server packages errors

    I recentled upgraded all the packages on my server and now I have an issue where I can't get any thing to install or uninstall do to errors, This is what I get:


    praetorian@praetorian:~$ ps ax | grep dpkg
    7330 pts/1 Ss+ 0:00 /usr/bin/dpkg --status-fd 21 --configure bind9 cups cups-bsd
    7331 pts/1 S+ 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/bind9.postinst configure 1:9.7.3.dfsg-1ubuntu2
    7814 pts/2 S+ 0:00 grep --color=auto dpkg
    praetorian@ praetorian:~$ sudo rm /var/lib/dpkg/lock
    praetorian@praetorian:~$ sudo dpkg --configure -a
    Setting up man-db (2.5.9-4) ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing man-db (--configure):
    subprocess installed post-installation script returned error exit status 1
    Setting up cups-bsd (1.4.6-5ubuntu1.1) ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing cups-bsd (--configure):
    subprocess installed post-installation script returned error exit status 1
    Setting up bind9 (1:9.7.3.dfsg-1ubuntu2.1) ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing bind9 (--configure):
    subprocess installed post-installation script returned error exit status 1
    Setting up cups (1.4.6-5ubuntu1.1) ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing cups (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    man-db
    cups-bsd
    bind9
    cups

  2. #2
    Join Date
    May 2007
    Location
    Nova Scotia, Canada
    Beans
    423
    Distro
    Ubuntu

    Re: server packages errors

    Locked ?

    Did you check for a lock file, or see if you have a browser window opened which is accessing synaptic ?

    You could see if anything is holding it open with fuser or lsof.

    Code:
    fuser dpkg
    lsof dpkg
    fuser | grep deb
    For example.

  3. #3
    Join Date
    Jun 2011
    Beans
    35

    Re: server packages errors

    yes it is showing a locked or unavalable part in teh report it is giving

    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable

    which before it was the dpkg lock file was locked so I did what I saw in another thread to remove it and then do the sudo dpkg -- configure -a to try and get it working which then brought up the new errors ..

    I am running 11.04 server

    This is a ubuntu only machine

  4. #4
    Join Date
    May 2007
    Location
    Nova Scotia, Canada
    Beans
    423
    Distro
    Ubuntu

    Re: server packages errors

    Did fuser of lsof find anything ?

  5. #5
    Join Date
    Jun 2011
    Beans
    35

    Re: server packages errors

    specified file name dpkg does not exist. is what fuser and lsof gave me

  6. #6
    Join Date
    May 2007
    Location
    Nova Scotia, Canada
    Beans
    423
    Distro
    Ubuntu

    Re: server packages errors

    No open synaptic windows, or zombies of it ?

    ps -aef | grep synaptic

  7. #7
    Join Date
    Jun 2011
    Beans
    35

    Re: server packages errors

    Quote Originally Posted by smurphy_it View Post
    No open synaptic windows, or zombies of it ?

    ps -aef | grep synaptic

    the responce I get from that is :

    1000 10041 7628 0 15:29 pts/2 00:00:00 grep --color=auto synaptic


    sry I am a noob when it comes to this everything I have learned I have done on my own via research or books. Just running into an issue that have had no luck with.

  8. #8
    Join Date
    Jun 2007
    Beans
    1,941

    Re: server packages errors

    Quote Originally Posted by thunder63cs View Post
    the responce I get from that is :

    1000 10041 7628 0 15:29 pts/2 00:00:00 grep --color=auto synaptic


    sry I am a noob when it comes to this everything I have learned I have done on my own via research or books. Just running into an issue that have had no luck with.
    You said this is a Server install, right? So no Synaptic, there's no GUI in the Server edition.

    Well, a quick&dirty way to see if it's just something holding a lock is to reboot.

    To narrow down what has a lock on the config.dat file,
    Code:
    lsof |grep config.dat

  9. #9
    Join Date
    Jun 2011
    Beans
    35

    Re: server packages errors

    Quote Originally Posted by arrrghhh View Post
    You said this is a Server install, right? So no Synaptic, there's no GUI in the Server edition.

    Well, a quick&dirty way to see if it's just something holding a lock is to reboot.

    To narrow down what has a lock on the config.dat file,
    Code:
    lsof |grep config.dat

    after I do that with out sudo I get nothing with sudo I get this:

    frontend 7331 root 4uW REG 251,0 60107 1966457 /var/cache/d ebconf/config.dat

  10. #10
    Join Date
    Jun 2007
    Beans
    1,941

    Re: server packages errors

    Quote Originally Posted by thunder63cs View Post
    after I do that with out sudo I get nothing with sudo I get this:

    frontend 7331 root 4uW REG 251,0 60107 1966457 /var/cache/d ebconf/config.dat
    Hrm. Well, root definitely has a lock on that file. I'm not familiar with 'frontend' tho. Doing a find on my system makes me think it's related to debconf.

    I'm not really sure how to proceed... I could have you kill that process, not sure of the repercussions. Have you tried simply rebooting?

Page 1 of 2 12 LastLast

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
  •