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

Thread: [SOLVED] Having some package error issue.

  1. #1
    Join Date
    Oct 2015
    Beans
    14

    [SOLVED] Having some package error issue.

    I'm having some package error issue and I can't seem to figure out what it is, I cannot resolve it with apt-get install -f.


    Here is my

    command result
    Code:
    sudo dpkg --configure -a

    Code:
    dpkg: dependency problems prevent configuration of linux-image-generic-lts-vivid: linux-image-generic-lts-vivid depends on linux-image-3.19.0-51-generic; however:
      Package linux-image-3.19.0-51-generic is not installed.
    
    
    dpkg: error processing package linux-image-generic-lts-vivid (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-image-extra-3.19.0-51-generic:
     linux-image-extra-3.19.0-51-generic depends on linux-image-3.19.0-51-generic; however:
      Package linux-image-3.19.0-51-generic is not installed.
    
    
    dpkg: error processing package linux-image-extra-3.19.0-51-generic (--configure):
     dependency problems - leaving unconfigured
    Setting up phpmyadmin (4:4.0.10-1) ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing package phpmyadmin (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of linux-generic-lts-vivid:
     linux-generic-lts-vivid depends on linux-image-generic-lts-vivid (= 3.19.0.51.36); however:
      Package linux-image-generic-lts-vivid is not configured yet.
    
    
    dpkg: error processing package linux-generic-lts-vivid (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     linux-image-generic-lts-vivid
     linux-image-extra-3.19.0-51-generic
     phpmyadmin
     linux-generic-lts-vivid

    and

    for
    Code:
    sudo apt-get install -f
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
      dkms esound-common libaudiofile1 libesd0 libgraphicsmagick3 libnatpmp1
      librabbitmq1 libsoxr0 libsvga1 libtar0 libvidstab1.0 libvncclient0
      libvorbisidec1 libx265-59 libxine1-bin libxine1-ffmpeg libxine1-gnome
      libxine1-misc-plugins libxine1-plugins libxine1-x linux-headers-3.13.0-66
      linux-headers-3.13.0-66-generic linux-headers-3.13.0-71
      linux-headers-3.13.0-71-generic linux-headers-3.19.0-25
      linux-headers-3.19.0-25-generic linux-headers-3.19.0-31
      linux-headers-3.19.0-31-generic linux-headers-3.19.0-39
      linux-headers-3.19.0-39-generic linux-image-3.19.0-25-generic
      linux-image-3.19.0-31-generic linux-image-3.19.0-39-generic
      linux-image-extra-3.19.0-25-generic linux-image-extra-3.19.0-31-generic
      linux-image-extra-3.19.0-39-generic psensor-common python-amqp
      python-anyjson python-billiard python-cl python-dateutil python-kombu
      python-mailer python-memcache python-pyparsing python-tz python-yaml
      transmission-common vlc-plugin-pulse
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
      linux-image-3.19.0-51-generic
    Suggested packages:
      fdutils linux-lts-vivid-tools
    The following NEW packages will be installed
      linux-image-3.19.0-51-generic
    0 to upgrade, 1 to newly install, 0 to remove and 2 not to upgrade.
    4 not fully installed or removed.
    Need to get 0 B/16.8 MB of archives.
    After this operation, 47.5 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    (Reading database ... 584743 files and directories currently installed.)
    Preparing to unpack .../linux-image-3.19.0-51-generic_3.19.0-51.57~14.04.1_amd64.deb ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing archive /var/cache/apt/archives/linux-image-3.19.0-51-generic_3.19.0-51.57~14.04.1_amd64.deb (--unpack):
     subprocess new pre-installation script returned error exit status 1
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.19.0-51-generic /boot/vmlinuz-3.19.0-51-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.19.0-51-generic /boot/vmlinuz-3.19.0-51-generic
    Errors were encountered while processing:
     /var/cache/apt/archives/linux-image-3.19.0-51-generic_3.19.0-51.57~14.04.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Thank you
    Last edited by shahzaibmuneeb; February 24th, 2016 at 08:54 AM.

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Having some package error issue.

    shahzaibmuneeb; Hello;

    The advisory :
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    (Reading database ..
    is a new one on me, and has my interest and attention.
    Let's see if we can find out what has the lock on the file.
    What returns :
    Code:
    lsof /var/cache/debconf/config.dat
    ps -aux |grep /var/cache/debconf/config.dat
    and for a safety net, what kernel is presently booted ? - must not mess around with this one !
    Code:
    uname -r
    See then what it will take to get the -3.19.0-51 kernel installed.

    inquiring minds want to know
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Oct 2015
    Beans
    14

    Re: Having some package error issue.



    Thank you for looking into this

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Having some package error issue.

    shahzaibmuneeb; Hummmm ..

    That says that presently there is noting with a lock on the control file .
    What now results:
    Code:
    sudo apt update
    sudo apt upgrade
    please put these outputs between code tags. promotes readability and maintaining the formatting :
    code tag tutorial:
    http://ubuntuforums.org/showthread.p...8#post12776168

    as a place to start looking further.

    it's a process
    we can get the better of it
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  5. #5
    Join Date
    Oct 2015
    Beans
    14

    Re: Having some package error issue.

    update was fine.

    upgrade did this:

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run ‘apt-get -f install’ to correct these.
    The following packages have unmet dependencies.
     linux-image-extra-3.19.0-51-generic : Depends: linux-image-3.19.0-51-generic but it is not installed
     linux-image-generic-lts-vivid : Depends: linux-image-3.19.0-51-generic but it is not installed
    E: Unmet dependencies. Try using -f.

  6. #6
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Having some package error issue.

    shahzaibmuneeb; Uh huh ...

    Let's see what results with giving the package manager a gentle push .
    Code:
    sudo apt install linux-image-3.19.0-51-generic
    Depending on what the package manager says/does is what we do next .

    maybe all there is to it
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  7. #7
    Join Date
    Oct 2015
    Beans
    14

    Re: Having some package error issue.



    Code:
    shahzaib@thinkpad:~$ sudo apt install linux-image-3.19.0-51-generic
    [sudo] password for shahzaib: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      dkms esound-common libaudiofile1 libesd0 libgraphicsmagick3 libnatpmp1
      librabbitmq1 libsoxr0 libsvga1 libtar0 libvidstab1.0 libvncclient0
      libvorbisidec1 libx265-59 libxine1-bin libxine1-ffmpeg libxine1-gnome
      libxine1-misc-plugins libxine1-plugins libxine1-x linux-headers-3.13.0-66
      linux-headers-3.13.0-66-generic linux-headers-3.13.0-71
      linux-headers-3.13.0-71-generic linux-headers-3.19.0-25
      linux-headers-3.19.0-25-generic linux-headers-3.19.0-31
      linux-headers-3.19.0-31-generic linux-headers-3.19.0-39
      linux-headers-3.19.0-39-generic linux-image-3.19.0-25-generic
      linux-image-3.19.0-31-generic linux-image-3.19.0-39-generic
      linux-image-extra-3.19.0-25-generic linux-image-extra-3.19.0-31-generic
      linux-image-extra-3.19.0-39-generic psensor-common python-amqp
      python-anyjson python-billiard python-cl python-dateutil python-kombu
      python-mailer python-memcache python-pyparsing python-tz python-yaml
      transmission-common vlc-plugin-pulse
    Use 'apt-get autoremove' to remove them.
    Suggested packages:
      fdutils linux-lts-vivid-tools
    The following NEW packages will be installed
      linux-image-3.19.0-51-generic
    0 to upgrade, 1 to newly install, 0 to remove and 2 not to upgrade.
    4 not fully installed or removed.
    Need to get 0 B/16.8 MB of archives.
    After this operation, 47.5 MB of additional disk space will be used.
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    (Reading database ... 584743 files and directories currently installed.)
    Preparing to unpack .../linux-image-3.19.0-51-generic_3.19.0-51.57~14.04.1_amd64.deb ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing archive /var/cache/apt/archives/linux-image-3.19.0-51-generic_3.19.0-51.57~14.04.1_amd64.deb (--unpack):
     subprocess new pre-installation script returned error exit status 1
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.19.0-51-generic /boot/vmlinuz-3.19.0-51-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.19.0-51-generic /boot/vmlinuz-3.19.0-51-generic
    Errors were encountered while processing:
     /var/cache/apt/archives/linux-image-3.19.0-51-generic_3.19.0-51.57~14.04.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  8. #8
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Having some package error issue.

    shahzaibmuneeb; Yuk !

    I hate when this happens, but I do not know !
    If there is no pressing need for a resolution, let's sit here a spell and see what others here can advise.
    I just can not fathom where that lock condition could originate from.

    Else, well I do have a dirty thought.

    what to do,
    what to do
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  9. #9
    Join Date
    Oct 2015
    Beans
    14

    Re: Having some package error issue.

    I can't really install anything else with this issue at hand and I'm a developer so it's pretty pressing! I think it surfaced during a part way installation of phpmyadmin (which you can see from my original post as a result of my command sudo dpkg --configure -a).

    Why can I not remain with kernel 49 without this error?



  10. #10
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: Having some package error issue.

    I have on occasion had to use this
    Code:
    sudo \rm -v /var/cache/debconf/*.dat
    But wait for Bashing-om to see.

Page 1 of 2 12 LastLast

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
  •