Error Unable To Open /usr/lib/rpm/rpmrc
or rpm to install any software Issues related to software problems. Post Reply Print view Search Advanced search 7 posts • Page 1 of 1 minhnv Posts: 3 Joined: 2008/08/26 15:59:54 can't use yum or rpm to install any software Quote Postby minhnv » 2008/08/26 16:26:01 Hi all,I've installed a centOS 5.2. When finish install OS, i used yum or rpm to install some software to my server, but i can't use them.this is errors message:Code: Select allyum update
error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory.
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 163, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 164, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 685, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 752, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
i searched on web, i found some solution but not useful.when i rebuild rpmdb, but can't runCode: Select all[root@cent rpm]# rpm --rebuilddb
error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory.i think that file /usr/lib/rpm/rpmrc is lack. someone can send me that file ?thanks. Top toracat Forum Moderator Posts: 7150 Joined: 2006/09/03 16:37:24 Location: California, US Contact: Contact toracat Website Re: can't use yum or rpm to install any software Quote Postby toracat » 2008/08/26 16:35:43 /usr/lib/rpm/rpmrc is part of the rpm package. If it is missing, you should wonder what else is missing
author ] James, How to use this rpmpopt file for my purpose? I did see the text "rpm alias --info --qf [...]" in my rpmpopt-4.4.1 file (in ~/fakeroot/usr/lib/rpm/ directory). On Wed, 2009-03-25 at 11:32 +0530, Anurag Bhandari wrote: > Hello, > > I've installed the rpm package along with other required dependencies > in a directory "fakeroot" in my home folder of a Debian System (Etch > amd64). [...] > The following does not work: > rpm --rcfile=/home/anurag/ > fakeroot/usr/lib/rpm/rpmrc -qip amarok-1.4.10-5granular2008.i586.rpm > > The error I get is: > "-qip: Unknown option" > This is popt, ie. on my system: /usr/lib/rpm/rpmpopt-4.6.0 ...which contains "rpm alias http://www.centos.org/forums/viewtopic.php?t=19628 --info --qf [...]" among others. -- James Antill
Jul 27, 2013. R_A_IIT New Pleskian 0 Messages: 1 Likes Received: 0 Trophy Points: 0 Hi all, My problem started when I https://talk.plesk.com/threads/error-unable-to-open-usr-lib-rpm-rpmrc-for-reading-no-such-file-or-directory.289446/ wanted to upgrade PHP 5.3.x to 5.4.x I followed this Parallels guide https://bugs.launchpad.net/bugs/429278 "How to upgrade PHP to PHP 5.4 on CentOS 5 from remi repository" found here http://kb.parallels.com/en/115833 After executing step 4 which is: 4. Remove all PHP 5.3 components and the PHP 5.3 configurator: Code: rpm -e --nodeps `rpm -qa | grep psa-php53-configurator-` rpm -e `rpm -qa | grep 'php53-' error unable | xargs` I've lost the following: 1- yum 2- rpm 3- plesk access 1- when I type yum, i get: [root~]# yum error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory. error: no dbpath has been set error: cannot open Packages database in /%{_dbpath} CRITICAL:yum.main: Error: rpmdb open failed [root~]# 2- When I type rpm, I get: [root~]# error unable to rpm -bash: rpm: command not found [root~]# 3- when accessing plesk via he web, I get: ERROR: Service_Agent_Exception Up Level Unable to read components configuration from the service node: error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory. Fatal error: plesk::InternalRpmError(Internal RPM error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory. ) Please help me I am in serious trouble as this server is very important for us and we invested a lot of time to prepare it for the launch of our websites and online operations. I am running Centos 6.4 64bit. Regards, RA R_A_IIT, Jul 27, 2013 #1 jaketone New Pleskian 0 Messages: 3 Likes Received: 0 Trophy Points: 0 I just had this exact same thing happen to me 10 minutes ago! I have a few boxes running the exact same setup, so I had to copy over the /usr/lib/rpm directory and of course add the symbolic links and finally added rpm to /bin. This should fix it but I'd still run : yum install rpm-build.x86_64 Last edited: Jul 27
6 This bug affects 1 person Affects Status Importance Assigned to Milestone rpm (Ubuntu) Edit Fix Released Undecided Unassigned Edit You need to log in to change this bug's status. Affecting: rpm (Ubuntu) Filed here by: Lars Volker When: 2009-09-14 Confirmed: 2009-10-19 Started work: 2010-03-05 Completed: 2010-03-05 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Fix Released Undecided Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description Binary package hint: osc When installing "osc", "rpm" should be installed as a dependency. Otherwise, running "osc up" on a local copy, returns "Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory.". aptitude install rpm fixes the error, however adding rpm as a dep seems more reasonable to me. ProblemType: Bug Architecture: amd64 Date: Mon Sep 14 12:35:45 2009 DistroRelease: Ubuntu 9.10 Package: osc 0.120-1 PackageArchitecture: all ProcEnviron: LANG=de_DE.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-10.32-generic SourcePackage: osc Uname: Linux 2.6.31-10-generic x86_64 Tags: amd64 apport-bug Edit Tag help Lars Volker (lv) wrote on 2009-09-14: #1 Dependencies.txt Edit (1.3 KiB, text/plain; charset="utf-8") Michal Čihař (nijel) wrote on 2009-10-19: #2 osc has dependency on python-rpm which pulls in these files, however probably not versions which are currently in Karmic Koala. Once osc and rpm will be in same state as currently in Debian, it will be fixed. Changed in osc (Ubuntu): status: New → Fix Committed Michal Čihař (nijel) on 2009-11-24 Changed in osc (Ubuntu): status: Fix Committed → Fix Released Lars Volker (lv) wrote on 2010-02-25: #3 This still doesn't work in Karmic. osc pulls python-rpm but this in turn does not install rpm. Does that mean, the depen