Results 1 to 4 of 4

Thread: Cannot re-install or remove tomcat6

  1. #1
    Join Date
    Apr 2012
    Beans
    4

    Cannot re-install or remove tomcat6

    Hi!

    Please help me clean uninstall tomcat6.

    I am installing tomcat6 using synaptic manager in ubuntu 11.10 and it was unsuccessful. So i tried to reinstall it still in synaptic manager but it returns an error:

    E: man-db: subprocess installed post-installation script returned error exit status 1
    E: tomcat6: subprocess installed post-installation script returned error exit status 1

    Details:
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing man-db (--configure):
    subprocess installed post-installation script returned error exit status 1
    No apport report written because MaxReports is reached already
    Setting up tomcat6 (6.0.32-5ubuntu1.2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing tomcat6 (--configure):
    subprocess installed post-installation script returned error exit status 1
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
    man-db
    tomcat6
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install. Trying to recover:
    Setting up man-db (2.6.0.2-2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing man-db (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    man-db

    I tried removing the tomcat6 package using terminal commands with:
    sudo aptitude remove tomcat6 --purge

    But it returns:

    The following packages will be REMOVED:
    tomcat6
    The following partially installed packages will be configured:
    man-db
    0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    Need to get 0 B of archives. After unpacking 315 kB will be freed.
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    (Reading database ... 448817 files and directories currently installed.)
    Removing tomcat6 ...
    id: tomcat6: No such user
    dpkg: error processing tomcat6 (--remove):
    subprocess installed pre-removal script returned error exit status 1
    No apport report written because MaxReports is reached already
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error while cleaning up:
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    tomcat6
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install. Trying to recover:
    Setting up man-db (2.6.0.2-2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing man-db (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    man-db

    So i tried: sudo fuser -v /var/cache/debconf/config.dat
    to find out which process is using this file.

    It returns:
    Cannot stat /var/cache/debconf/config.dat: Bad addressI also tried: sudo killall apt-get
    It returns:
    apt-get: no process found

    I also tried:
    sudo aptitude autoclean
    It returns:
    Freed 0 B of disk space
    I also tried: sudo dpkg --configure -a

    It returns:


    Setting up man-db (2.6.0.2-2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing man-db (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:

    man-d

    I tried: sudo dpkg -i /var/cache/apt/archives/*deb

    It returns:
    dpkg: error processing /var/cache/apt/archives/*deb (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    /var/cache/apt/archives/*deb

    I also tried: sudo mv /var/cache/debconf ~/; sudo apt-get install -f

    But still it returns:

    mv: cannot stat `/var/cache/debconf': No such file or directory
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    Setting up man-db (2.6.0.2-2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing man-db (--configure):
    subprocess installed post-installation script returned error exit status 1
    Setting up tomcat6 (6.0.32-5ubuntu1.2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing tomcat6 (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    man-db
    tomcat6
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    This is the full output of my cat /etc/apt/sources.list


    # deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://ph.archive.ubuntu.com/ubuntu/ oneiric main restricted
    deb-src http://ph.archive.ubuntu.com/ubuntu/ oneiric main restricted

    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://ph.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
    deb-src http://ph.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://ph.archive.ubuntu.com/ubuntu/ oneiric universe
    deb-src http://ph.archive.ubuntu.com/ubuntu/ oneiric universe
    deb http://ph.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    deb-src http://ph.archive.ubuntu.com/ubuntu/ oneiric-updates universe

    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://ph.archive.ubuntu.com/ubuntu/ oneiric multiverse
    deb-src http://ph.archive.ubuntu.com/ubuntu/ oneiric multiverse
    deb http://ph.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    deb-src http://ph.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse

    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    # deb http://ph.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
    # deb-src http://ph.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

    deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb http://security.ubuntu.com/ubuntu oneiric-security universe
    deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
    deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
    deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse

    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    deb http://archive.canonical.com/ubuntu oneiric partner
    # deb-src http://archive.canonical.com/ubuntu natty partner

    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu oneiric main
    deb-src http://extras.ubuntu.com/ubuntu oneiric main
    deb http://ph.archive.ubuntu.com/ubuntu/ oneiric-backports restricted main multiverse universe

    Thank you!

  2. #2
    Join Date
    Nov 2010
    Location
    India
    Beans
    4,827
    Distro
    Ubuntu Development Release

    Re: Cannot re-install or remove tomcat6

    I tried: sudo dpkg -i /var/cache/apt/archives/*deb

    It returns:
    dpkg: error processing /var/cache/apt/archives/*deb (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    /var/cache/apt/archives/*deb
    actually that command should be as this
    sudo dpkg -i /var/cache/apt/archives/*.deb

    you missed DOT at DEB .
    and while coming to your issue , its a bug actually and got fixed .
    open your terminal and do this
    Code:
    sudo  rm -rf /var/cache/debconf/*
     sudo apt-get install -f
    all the best .
    Raja

    రాజ శేఖర్ రెడ్డి

  3. #3
    Join Date
    Apr 2012
    Beans
    4

    Re: Cannot re-install or remove tomcat6

    Thank you!

  4. #4
    Join Date
    Apr 2012
    Beans
    4

    Re: Cannot re-install or remove tomcat6

    Hi! I tried your codes and this is the output:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    3 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    Setting up man-db (2.6.0.2-2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing man-db (--configure):
    subprocess installed post-installation script returned error exit status 1
    Setting up localepurge (0.6.2+nmu2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing localepurge (--configure):
    subprocess installed post-installation script returned error exit status 1
    Setting up tomcat6 (6.0.32-5ubuntu1.2) ...
    debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
    dpkg: error processing tomcat6 (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    man-db
    localepurge
    tomcat6
    No /etc/locale.nopurge file present, exiting ...
    E: Sub-process /usr/bin/dpkg returned an error code (1)

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
  •