Results 1 to 5 of 5

Thread: Reading database takes forever

  1. #1
    Join Date
    Dec 2005
    Beans
    764
    Distro
    Ubuntu 6.06

    Reading database takes forever

    When doing the following on my NOTEBOOK
    Code:
    apt-get install ****
    or
    Code:
    dpkg -i ****
    I have to wait for
    Code:
    reading database
    for almost half a minute. Anyway to decrease this time?

    Hope this is of some use
    Code:
    (Reading database ... 95102 files and directories currently installed.)
    ps.heres my 'source.list'
    Code:
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://archive.ubuntu.com/ubuntu breezy-updates main restricted
    deb-src http://archive.ubuntu.com/ubuntu breezy-updates main restricted
    
    ## Uncomment the following two lines to add software from the 'universe'
    ## repository.
    ## 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
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team
    
    deb http://archive.ubuntu.com/ubuntu breezy universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu breezy universe multiverse
    
    ## Security Updates
    deb http://security.ubuntu.com/ubuntu breezy-security main restricted
    deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
    
    deb http://security.ubuntu.com/ubuntu breezy-security universe multiverse
    deb-src http://security.ubuntu.com/ubuntu breezy-security universe multiverse
    
    ## official backports
    deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    
    ## plf primary repo
    ## http 100mbit/s mirror provided thanks to OVH http://ovh.com
    deb http://packages.freecontrib.org/ubuntu/plf/ breezy free non-free
    deb-src http://packages.freecontrib.org/ubuntu/plf/ breezy free non-free
    Last edited by ashrack; March 2nd, 2006 at 11:23 AM.
    Kubuntu 15.10
    Intel Core i5, 8GB RAM, Amd Radeon 7870XT@fglrx
    http://folding.extremeoverclocking.c...shrack&t=37766

  2. #2
    Join Date
    Aug 2005
    Location
    Canada
    Beans
    1,081

    Re: Reading database takes forever

    Has it always taken so long?

    I'm not sure but believe that 'Reading Database' refers not to the repositories, but rather your system's database of installed packages.

    If so, it seems to reason that the duration should be dependent upon your system's resources as well as the number of packages you have installed; 95102 being quite large.

    In regards to speeding it up, apart from leaning out the packages on the system or adding resources, I'm not certain if there would be (but would like to know myself if there is).

    Based on the specs posted in your sig, looks like it may be the number of packages you have that is the major influence in your case.

    My system is much slower that either of the two in your sig, but I have greatly less packages. For me, the 'Reading Database' step is a bit of a hang, but not near the one minute mark.

    HTH
    Last edited by 5-HT; March 1st, 2006 at 09:45 PM.

  3. #3
    Join Date
    Dec 2005
    Beans
    764
    Distro
    Ubuntu 6.06

    Re: Reading database takes forever

    Has it always taken so long?
    no! First it was quick but then gradually the speed was decreasing as I was installing packages.

    I'm not sure but believe that 'Reading Database' refers not to the repositories, but rather your system's database of installed packages.
    I concur

    If so, it seems to reason that the duration should be dependent upon your system's resources as well as the number of packages you have installed; 95102 being quite large.
    What is your number of packages?

    In regards to speeding it up, apart from leaning out the packages on the system or adding resources, I'm not certain if there would be (but would like to know myself if there is).
    I removed about 15000 packages with a help of DEBFOSTER. So now I believe I have only the most needed packages. So reading database is tollerable now.

    Based on the specs posted in your sig, looks like it may be the number of packages you have that is the major influence in your case.
    Its my believe that READING DATABASE is mostly HDD related so a faster one would achieve this quicker. Unfortunerly I have one of those notebooks that still have the 4300RPM HDDs.

    My system is much slower that either of the two in your sig, but I have greatly less packages.
    On my desktop computer which has a 7200RPM HDD 'Reading Database' is below 10sec and probably has even more packages...

    For me, the 'Reading Database' step is a bit of a hang, but not near the one minute mark.
    Sory, I meant I have to wait almost half a minute, have edited the first post
    Last edited by ashrack; March 2nd, 2006 at 11:26 AM.
    Kubuntu 15.10
    Intel Core i5, 8GB RAM, Amd Radeon 7870XT@fglrx
    http://folding.extremeoverclocking.c...shrack&t=37766

  4. #4
    Join Date
    Aug 2005
    Location
    Canada
    Beans
    1,081

    Re: Reading database takes forever

    Quote Originally Posted by ashrack
    What is your number of packages?
    Sorry, assumed that number meant packages, but it's actually 'files and directories'.

    I'm at around 75000, so I guess it isn't that much at all when it relects files and directories.

    Quote Originally Posted by ashrack
    I removed about 15000 packages with a help of DEBFOSTER. So now I believe I have only the most needed packages. So reading database is tollerable now.


    Its my believe that READING DATABASE is mostly HDD related so a faster one would achieve this quicker. Unfortunerly I have one of those notebooks that still have the 4300RPM HDDs.


    On my desktop computer which has a 7200RPM HDD 'Reading Database' is below 10sec and probably has even more packages...
    I'm glad it's quicker now that you've cleaned out some uneeded things.
    Looks like the harddrive does have quite a bit of influence on it as well.

    I did a rough estimate, and it takes about 15 seconds for me (on a notebook HD which I think is about 4300-4500 RPM).

  5. #5
    Join Date
    Oct 2007
    Location
    Germany
    Beans
    46

    Re: Reading database takes forever

    sorry to bring up such an old topic...

    the waiting doesn't bother me that much, i would just like to know if one could somehow reset/delete the stored informations

    on a fresh install it doesn't take longer as a couple of seconds to read the database. After ~2 months of (normal) install/uninstall the difference becomes quite noticeable.

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
  •