Results 1 to 6 of 6

Thread: RPM Problem

  1. #1
    Join Date
    Jun 2004
    Posts
    523

    RPM Problem

    Ive tried rebuilding the RPM database which also generates multiple errors.

    I get the following error when trying to update via WHM:

    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: cannot open Packages index using db3 - Permission denied (13)
    error: cannot open Packages database in /var/lib/rpm
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: db4 error(13) from db->close: Permission denied
    error: cannot open Packages index using db3 - Permission denied (13)
    error: cannot open Packages database in /var/lib/rpm


    I have tried removing the /var/lib/rpm dir in hope of rebuilding it however:

    [email protected] [/var/lib/rpm]# chmod 777 *
    chmod: changing permissions of `Basenames': Operation not permitted
    chmod: changing permissions of `Conflictname': Operation not permitted
    chmod: changing permissions of `Dirnames': Operation not permitted
    chmod: changing permissions of `Filemd5s': Operation not permitted
    chmod: changing permissions of `Group': Operation not permitted
    chmod: changing permissions of `Installtid': Operation not permitted
    chmod: changing permissions of `Name': Operation not permitted
    chmod: changing permissions of `Packages': Operation not permitted
    chmod: changing permissions of `Providename': Operation not permitted
    chmod: changing permissions of `Provideversion': Operation not permitted
    chmod: changing permissions of `Pubkeys': Operation not permitted
    chmod: changing permissions of `Requirename': Operation not permitted
    chmod: changing permissions of `Requireversion': Operation not permitted
    chmod: changing permissions of `Sha1header': Operation not permitted
    chmod: changing permissions of `Sigmd5': Operation not permitted
    chmod: changing permissions of `Triggername': Operation not permitted
    [email protected] [/var/lib/rpm]#

    or :

    [email protected] [/var/lib/rpm]# rm -rf *
    rm: cannot remove `Basenames': Operation not permitted
    rm: cannot remove `Conflictname': Operation not permitted
    rm: cannot remove `Dirnames': Operation not permitted
    rm: cannot remove `Filemd5s': Operation not permitted
    rm: cannot remove `Group': Operation not permitted
    rm: cannot remove `Installtid': Operation not permitted
    rm: cannot remove `Name': Operation not permitted
    rm: cannot remove `Packages': Operation not permitted
    rm: cannot remove `Providename': Operation not permitted
    rm: cannot remove `Provideversion': Operation not permitted
    rm: cannot remove `Pubkeys': Operation not permitted
    rm: cannot remove `Requirename': Operation not permitted
    rm: cannot remove `Requireversion': Operation not permitted
    rm: cannot remove `Sha1header': Operation not permitted
    rm: cannot remove `Sigmd5': Operation not permitted
    rm: cannot remove `Triggername': Operation not permitted

    Any ideas?

    Heres a listing of the dir with permissions:

    [email protected] [/var/lib/rpm]# ls -l
    total 22144
    drwxrwxrwx 2 rpm rpm 4096 Jul 2 02:09 ./
    drwxr-xr-x 15 root root 4096 Jun 29 15:49 ../
    -rw-r--r-- 1 rpm rpm 2646016 Jun 20 01:40 Basenames
    -rw-r--r-- 1 rpm rpm 12288 Jun 20 01:40 Conflictname
    -rw-r--r-- 1 rpm rpm 376832 Jun 20 01:40 Dirnames
    -rw-r--r-- 1 rpm rpm 2650112 Jun 20 01:40 Filemd5s
    -rw-r--r-- 1 rpm rpm 12288 Jun 20 01:40 Group
    -rw-r--r-- 1 rpm rpm 12288 Jun 20 01:40 Installtid
    -rw-r--r-- 1 rpm rpm 24576 Jun 20 01:40 Name
    -rw-r--r-- 1 rpm rpm 17461248 Jun 20 01:40 Packages
    -rw-r--r-- 1 rpm rpm 98304 Jun 20 01:40 Providename
    -rw-r--r-- 1 rpm rpm 45056 Jun 20 01:40 Provideversion
    -rw-r--r-- 1 rpm rpm 12288 Jun 20 01:38 Pubkeys
    -rw-r--r-- 1 rpm rpm 110592 Jun 20 01:40 Requirename
    -rw-r--r-- 1 rpm rpm 69632 Jun 20 01:40 Requireversion
    -rw-r--r-- 1 rpm rpm 45056 Jun 20 01:40 Sha1header
    -rw-r--r-- 1 rpm rpm 24576 Jun 20 01:40 Sigmd5
    -rw-r--r-- 1 rpm rpm 12288 Jun 20 01:40 Triggername

  2. #2
    Join Date
    Dec 2003
    Location
    Sunny So. Calif.
    Posts
    204
    If you have root access, try SSH to shell as root and try the rpm --updatedb command again.

  3. #3
    Join Date
    Jun 2004
    Posts
    523
    sorted for anyone who cares:

    # chatattr -i /var/lib/rpm
    # rm -rf /var/lib/rpm

  4. #4
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    Why did you remove it!!? You just emptied your rpm database!!!!! Did you have les installed?
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  5. #5
    Join Date
    Aug 2003
    Location
    USA
    Posts
    1,030
    Yikes, hopefully you took a quick backup of the RPM database before you fiddled with it
    CybexHost.com - Shared and Reseller Hosting Solutions on cPanel/WHM Linux Servers
    ModernTweak.com - Discount ModernBill Licenses, Hosted Installations, and Professional Services
    :: Pay for your discount ModernBill license with PayPal
    :: admin[at]cybexhost.com :: AIM: CybexH

  6. #6
    try rebuilding it with rpm --rebuilddb -v -v

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •