Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-12-2015, 10:46 AM
|
#1
|
Member
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568
Rep:
|
rpm/yum error: no dbpath has been set
Last night suscessfull "yum update", after reboot gets me the above mentioned error.
I tried workaround from http://www.linux-faqs.info/virtualiz...h-has-been-set.
Code:
[root@toshiba ~]# rm /dev/random
rm: remove character special file ‘/dev/random’? y
[root@toshiba ~]# rm /dev/urandom
rm: remove character special file ‘/dev/urandom’? y
[root@toshiba ~]# mknod -m 644 /dev/random c 1 8
[root@toshiba ~]# mknod -m 644 /dev/urandom c 1 9
[root@toshiba ~]# chown root:root /dev/random /dev/urandom
[root@toshiba ~]# yum clean all
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}
CRITICAL:yum.main:
Error: rpmdb open failed
[root@toshiba ~]# yum -vv clean all
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}
CRITICAL:yum.main:
Error: rpmdb open failed
[root@toshiba ~]# yum -v clean all
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}
CRITICAL:yum.main:
Error: rpmdb open failed
[root@toshiba ~]# uname -a
Linux toshiba 3.19.3-200.fc21.x86_64 #1 SMP Thu Mar 26 21:39:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
there is no "__" files in :
Code:
l 104304
-rw-r--r--. 1 root root 9646080 Apr 11 12:08 Basenames
-rw-r--r--. 1 root root 16384 Apr 11 12:08 Conflictname
-rw-r--r--. 1 root root 5005312 Apr 11 12:08 Dirnames
-rw-r--r--. 1 root root 49152 Apr 11 12:08 Group
-rw-r--r--. 1 root root 36864 Apr 11 12:08 Installtid
-rw-r--r--. 1 root root 94208 Apr 11 12:08 Name
-rw-r--r--. 1 root root 65536 Apr 11 12:08 Obsoletename
-rw-r--r--. 1 root root 89350144 Apr 11 12:08 Packages
-rw-r--r--. 1 root root 1556480 Apr 11 12:08 Providename
-rw-r--r--. 1 root root 659456 Apr 11 12:08 Requirename
-rw-r--r--. 1 root root 188416 Apr 11 12:08 Sha1header
-rw-r--r--. 1 root root 118784 Apr 11 12:09 Sigmd5
-rw-r--r--. 1 root root 8192 Apr 11 12:08 Triggername
please advise.
Last edited by DBabo; 04-12-2015 at 12:03 PM.
|
|
|
04-12-2015, 01:19 PM
|
#2
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
So this is Fedora 21 and you did yum update post which you get this error. Did you try anything else on the system apart from what mentioned in the link?
It will be good if you can share the output of the following:
1.
Code:
rpm -qa --last | grep <date_you_ran_update>
The output of rpm -qa --last will be quite big, just run it once to get the date format and grep accordingly and paste the output.
2. In the link they have given other commands as well:
Code:
rm -f /var/lib/rpm/__db*
rpm –rebuilddb
yum clean all
yum update
Did you already try them? Asking as you have not shared the output in your post.
|
|
|
04-12-2015, 04:28 PM
|
#3
|
Member
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568
Original Poster
Rep:
|
Im away from the computer, but I didnt do anything other than yum update and reboot.
I tried rpm -qa and yum check-update. Both give same error.
There are no underscore files mantioned in that post.
I came across the poat that lunked this error to fs syatem errors.
I do have ext4 reporting errors during the load, so its quite possible.
|
|
|
04-12-2015, 04:32 PM
|
#4
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
Alright, so did you try fixing fs errors and see if that make a difference. If yes, then let us know if it worked out for you else reply with the output requested in the last post.
|
|
|
04-12-2015, 11:04 PM
|
#5
|
Member
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568
Original Poster
Rep:
|
1.
Code:
rpm -qa --last | grep <date_you_ran_update>
rpm -rebuilddb
error: can't create transaction lock on / (Is a directory)
2.
Code:
cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
#exclude=kernel*,xulrunner*,firefox*
everything else is commented out.
Code:
rm -f /var/lib/rpm/__db*
rpm rebuilddb
yum clean all
yum update
yeah that is very consistent:
Code:
[root@toshiba ~]# yum clean all
error: no dbpath has been set
error: cannot open Packages database in /{_dbpath}
CRITICAL:yum.main:
Error: rpmdb open failed
[root@toshiba ~]# yum update
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}
CRITICAL:yum.main:
Error: rpmdb open failed
[root@toshiba ~]# rpm -rebuilddb
rpm: -rebuilddb: unknown option
[root@toshiba ~]# rpm -rebuilddb
error: can't create transaction lock on / (Is a directory)
trying to figure out how to fsck on /
Last edited by DBabo; 04-12-2015 at 11:05 PM.
|
|
|
04-12-2015, 11:27 PM
|
#6
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647
|
did the power go out by chance during the update ?
or was the computer turned off in the middle of the update ?
and this WAS a normal fedora 21 install and a normal everyday update
not a fedora 22 ALPHA install ?
WHAT was updated ?
have a look in /var/log
the yum install log file is in there
and why did you try to delete that ??????
the link you posted to is for a VIRTUAL install
is this fedora install on a VM ?
what is the host OS ?
EDIT
i mised this
so at one time the kernel was being BLOCKED from updating ?
was this do to some hardware or software issue ?
Last edited by John VV; 04-12-2015 at 11:31 PM.
|
|
|
04-13-2015, 12:48 AM
|
#7
|
Member
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568
Original Poster
Rep:
|
some updates:
followed http://bitsofmymind.com/2014/03/14/h...into-on-linux/
to address the ext4 errors i've been having lately. they seemed to be gone now.
but i still can't run rpm/yum. same error as before.
|
|
|
04-13-2015, 12:56 AM
|
#8
|
Member
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568
Original Poster
Rep:
|
Quote:
Originally Posted by John VV
did the power go out by chance during the update ?
or was the computer turned off in the middle of the update ?
and this WAS a normal fedora 21 install and a normal everyday update
not a fedora 22 ALPHA install ?
WHAT was updated ?
have a look in /var/log
the yum install log file is in there
|
yes, normal install, nothing of what you were describing above.
here is the cat of yum.log
Code:
Mar 28 01:06:02 Installed: numactl-devel-2.0.9-4.fc21.x86_64
Mar 29 00:35:51 Installed: kernel-core-3.19.1-20110.local.fc21.x86_64
Mar 29 00:36:02 Installed: kernel-modules-3.19.1-20110.local.fc21.x86_64
Mar 29 00:36:02 Installed: kernel-tools-libs-3.19.1-20110.local.fc21.x86_64
Mar 29 00:36:05 Installed: kernel-tools-3.19.1-20110.local.fc21.x86_64
Mar 29 00:36:06 Installed: kernel-3.19.1-20110.local.fc21.x86_64
Mar 29 00:36:06 Installed: python-perf-3.19.1-20110.local.fc21.x86_64
Mar 29 00:36:09 Updated: kernel-headers-3.19.1-20110.local.fc21.x86_64
Mar 29 00:36:10 Erased: kernel-modules-extra-3.18.3-201.local.fc21.x86_64
Mar 29 00:56:21 Installed: rar-3.8.0-1.el7.rf.x86_64
Apr 11 11:50:54 Updated: systemd-libs-216-24.fc21.x86_64
Apr 11 11:51:05 Updated: systemd-216-24.fc21.x86_64
Apr 11 11:51:05 Updated: nss-util-3.18.0-1.fc21.x86_64
Apr 11 11:51:07 Updated: libxml2-2.9.1-7.fc21.x86_64
Apr 11 11:51:18 Updated: 4:texlive-base-2014-3.1.20140525_r34255.fc21.noarch
Apr 11 11:51:21 Updated: libicu-52.1-5.fc21.x86_64
Apr 11 11:51:22 Updated: libsss_idmap-1.12.4-2.fc21.x86_64
Apr 11 11:51:23 Updated: pulseaudio-libs-6.0-2.fc21.1.x86_64
Apr 11 11:51:26 Updated: gtk3-3.14.11-1.fc21.x86_64
Apr 11 11:51:27 Updated: perl-Carp-1.36-1.fc21.noarch
Apr 11 11:51:28 Updated: grep-2.21-3.fc21.x86_64
Apr 11 11:51:29 Updated: krb5-libs-1.12.2-15.fc21.x86_64
Apr 11 11:51:31 Updated: dracut-038-33.git20141216.fc21.x86_64
Apr 11 11:51:32 Updated: codeblocks-libs-13.12.svn.10191-1.fc21.x86_64
Apr 11 11:51:33 Updated: openssh-6.6.1p1-12.fc21.x86_64
Apr 11 11:51:34 Updated: 1:autocorr-en-4.3.6.2-8.fc21.noarch
Apr 11 11:51:34 Updated: 4:texlive-kpathsea-lib-2014-3.1.20140525_r34255.fc21.x86_64
Apr 11 11:51:35 Updated: 4:texlive-kpathsea-svn32266.0-3.1.fc21.noarch
Apr 11 11:51:35 Updated: 4:texlive-kpathsea-bin-svn30088.0-3.1.20140525_r34255.fc21.x86_64
Apr 11 11:51:36 Updated: nss-softokn-freebl-3.18.0-1.fc21.x86_64
Apr 11 11:51:37 Updated: nss-softokn-3.18.0-1.fc21.x86_64
Apr 11 11:51:37 Updated: nss-sysinit-3.18.0-1.fc21.x86_64
Apr 11 11:51:38 Updated: nss-3.18.0-1.fc21.x86_64
Apr 11 11:51:38 Updated: tigervnc-license-1.4.2-1.fc21.noarch
Apr 11 11:51:39 Updated: poppler-0.26.2-9.fc21.x86_64
Apr 11 11:51:40 Updated: poppler-glib-0.26.2-9.fc21.x86_64
Apr 11 11:51:41 Updated: evince-libs-3.14.2-2.fc21.x86_64
Apr 11 11:51:44 Updated: libpurple-2.10.11-2.fc21.x86_64
Apr 11 11:51:45 Updated: 4:texlive-dvipng-bin-svn30845.0-3.1.20140525_r34255.fc21.x86_64
Apr 11 11:51:45 Updated: 4:texlive-dvipng-svn29821.1.14-3.1.fc21.noarch
Apr 11 11:51:46 Updated: codeblocks-contrib-libs-13.12.svn.10191-1.fc21.x86_64
Apr 11 11:51:46 Updated: gssproxy-0.4.1-1.fc21.x86_64
Apr 11 11:51:48 Updated: 1:perl-Encode-2.72-1.fc21.x86_64
Apr 11 11:51:49 Updated: pulseaudio-utils-6.0-2.fc21.1.x86_64
Apr 11 11:51:50 Updated: pulseaudio-6.0-2.fc21.1.x86_64
Apr 11 11:51:52 Installed: mozjs31-31.2.0-2.fc21.x86_64
Apr 11 11:51:53 Updated: libxml2-python-2.9.1-7.fc21.x86_64
Apr 11 11:51:54 Updated: systemd-python-216-24.fc21.x86_64
Apr 11 11:51:55 Updated: setroubleshoot-server-3.2.22-1.fc21.x86_64
Apr 11 11:51:56 Updated: bluez-5.29-2.fc21.x86_64
Apr 11 11:51:56 Updated: libgudev1-216-24.fc21.x86_64
Apr 11 11:51:57 Updated: libXdmcp-1.1.2-1.fc21.x86_64
Apr 11 11:51:58 Updated: kernel-tools-libs-3.19.3-200.fc21.x86_64
Apr 11 11:52:06 Updated: linux-firmware-20150316-44.git020e534e.fc21.noarch
Apr 11 11:52:13 Installed: kernel-core-3.19.3-200.fc21.x86_64
Apr 11 11:52:24 Installed: kernel-modules-3.19.3-200.fc21.x86_64
Apr 11 11:52:26 Updated: tzdata-java-2015b-1.fc21.noarch
Apr 11 11:52:40 Updated: 1:java-1.8.0-openjdk-headless-1.8.0.40-24.b25.fc21.x86_64
Apr 11 11:52:42 Updated: 1:libreoffice-ure-4.3.6.2-8.fc21.x86_64
Apr 11 11:52:43 Updated: tigervnc-icons-1.4.2-1.fc21.noarch
Apr 11 11:52:45 Updated: yum-langpacks-0.4.5-1.fc21.noarch
Apr 11 11:52:46 Updated: xterm-308-3.fc21.x86_64
Apr 11 11:53:18 Updated: codeblocks-13.12.svn.10191-1.fc21.x86_64
Apr 11 11:53:20 Updated: libsss_nss_idmap-1.12.4-2.fc21.x86_64
Apr 11 11:53:20 Updated: sssd-client-1.12.4-2.fc21.x86_64
Apr 11 11:53:21 Updated: sssd-krb5-common-1.12.4-2.fc21.x86_64
Apr 11 11:53:23 Updated: sssd-common-1.12.4-2.fc21.x86_64
Apr 11 11:53:24 Updated: sssd-common-pac-1.12.4-2.fc21.x86_64
Apr 11 11:53:24 Updated: sssd-ad-1.12.4-2.fc21.x86_64
Apr 11 11:53:25 Updated: sssd-ldap-1.12.4-2.fc21.x86_64
Apr 11 11:53:26 Updated: sssd-krb5-1.12.4-2.fc21.x86_64
Apr 11 11:53:26 Updated: sssd-proxy-1.12.4-2.fc21.x86_64
Apr 11 11:53:27 Updated: libedit-3.1-12.20150325cvs.fc21.x86_64
Apr 11 11:53:28 Updated: python-urllib3-1.10.2-1.fc21.noarch
Apr 11 11:56:07 Updated: 0ad-data-0.0.18-1.fc21.noarch
Apr 11 11:56:07 Updated: python-sssdconfig-1.12.4-2.fc21.noarch
Apr 11 11:56:10 Updated: 1:libreoffice-opensymbol-fonts-4.3.6.2-8.fc21.noarch
Apr 11 11:56:46 Updated: 1:libreoffice-core-4.3.6.2-8.fc21.x86_64
Apr 11 11:56:47 Updated: libipa_hbac-1.12.4-2.fc21.x86_64
Apr 11 11:56:48 Updated: sssd-ipa-1.12.4-2.fc21.x86_64
Apr 11 11:56:49 Updated: python3-urllib3-1.10.2-1.fc21.noarch
Apr 11 11:58:09 Updated: selinux-policy-3.13.1-105.9.fc21.noarch
Apr 11 11:59:40 Updated: selinux-policy-targeted-3.13.1-105.9.fc21.noarch
Apr 11 11:59:41 Updated: python3-requests-2.5.3-2.fc21.noarch
Apr 11 11:59:41 Updated: sssd-1.12.4-2.fc21.x86_64
Apr 11 11:59:45 Updated: 1:libreoffice-calc-4.3.6.2-8.fc21.x86_64
Apr 11 11:59:45 Updated: 1:libreoffice-langpack-en-4.3.6.2-8.fc21.x86_64
Apr 11 11:59:48 Updated: 0ad-0.0.18-1.fc21.x86_64
Apr 11 11:59:49 Updated: python-requests-2.5.3-2.fc21.noarch
Apr 11 11:59:49 Updated: openssh-clients-6.6.1p1-12.fc21.x86_64
Apr 11 11:59:52 Updated: codeblocks-contrib-13.12.svn.10191-1.fc21.x86_64
Apr 11 11:59:53 Updated: system-config-language-2.3.0-3.fc21.noarch
Apr 11 11:59:54 Updated: tigervnc-1.4.2-1.fc21.x86_64
Apr 11 11:59:55 Updated: 1:java-1.8.0-openjdk-1.8.0.40-24.b25.fc21.x86_64
Apr 11 11:59:55 Installed: kernel-3.19.3-200.fc21.x86_64
Apr 11 12:00:02 Installed: kernel-modules-extra-3.19.3-200.fc21.x86_64
Apr 11 12:00:03 Updated: kernel-tools-3.19.3-200.fc21.x86_64
Apr 11 12:00:04 Updated: tigervnc-server-minimal-1.4.2-1.fc21.x86_64
Apr 11 12:00:08 Updated: gvfs-1.22.4-1.fc21.x86_64
Apr 11 12:00:08 Updated: bluez-cups-5.29-2.fc21.x86_64
Apr 11 12:00:09 Updated: setroubleshoot-3.2.22-1.fc21.x86_64
Apr 11 12:00:10 Updated: pulseaudio-module-x11-6.0-2.fc21.1.x86_64
Apr 11 12:01:31 Updated: BackupPC-3.3.1-1.fc21.x86_64
Apr 11 12:01:34 Updated: 1:nfs-utils-1.3.1-6.2.fc21.x86_64
Apr 11 12:01:44 Updated: pidgin-2.10.11-2.fc21.x86_64
Apr 11 12:01:52 Updated: evince-3.14.2-2.fc21.x86_64
Apr 11 12:01:53 Updated: poppler-utils-0.26.2-9.fc21.x86_64
Apr 11 12:02:08 Updated: firefox-37.0.1-1.fc21.x86_64
Apr 11 12:02:09 Updated: nss-tools-3.18.0-1.fc21.x86_64
Apr 11 12:02:10 Updated: 4:texlive-framed-svn26789.0.96-3.1.fc21.noarch
Apr 11 12:02:10 Updated: 4:texlive-threeparttable-svn17383.0-3.1.fc21.noarch
Apr 11 12:02:10 Updated: 4:texlive-wrapfig-svn22048.3.6-3.1.fc21.noarch
Apr 11 12:02:11 Updated: 4:texlive-titlesec-svn24852.2.10.0-3.1.fc21.noarch
Apr 11 12:02:11 Updated: openssh-askpass-6.6.1p1-12.fc21.x86_64
Apr 11 12:02:12 Updated: openssh-server-6.6.1p1-12.fc21.x86_64
Apr 11 12:02:13 Updated: dracut-network-038-33.git20141216.fc21.x86_64
Apr 11 12:02:13 Updated: dracut-config-rescue-038-33.git20141216.fc21.x86_64
Apr 11 12:02:14 Updated: openconnect-7.06-1.fc21.x86_64
Apr 11 12:02:15 Updated: perl-Compress-Raw-Zlib-2.066-2.fc21.x86_64
Apr 11 12:02:15 Updated: perl-Text-ParseWords-3.30-1.fc21.noarch
Apr 11 12:02:16 Updated: gtk3-immodule-xim-3.14.11-1.fc21.x86_64
Apr 11 12:02:16 Updated: pulseaudio-libs-glib2-6.0-2.fc21.1.x86_64
Apr 11 12:02:19 Updated: google-talkplugin-5.41.0.0-1.x86_64
Apr 11 12:02:20 Updated: libicu-devel-52.1-5.fc21.x86_64
Apr 11 12:02:21 Updated: libdrm-2.4.60-1.fc21.x86_64
Apr 11 12:02:22 Updated: crda-3.18_2015.03.13-1.fc21.x86_64
Apr 11 12:02:22 Updated: systemd-python3-216-24.fc21.x86_64
Apr 11 12:02:23 Updated: systemd-compat-libs-216-24.fc21.x86_64
Apr 11 12:02:23 Updated: iwl105-firmware-18.168.6.1-44.fc21.noarch
Apr 11 12:02:24 Updated: 14:tcpdump-4.7.3-1.fc21.x86_64
Apr 11 12:02:27 Updated: tzdata-2015b-1.fc21.noarch
Apr 11 12:02:27 Updated: python-perf-3.19.3-200.fc21.x86_64
Apr 11 12:02:28 Updated: iwl6050-firmware-41.28.5.1-44.fc21.noarch
Apr 11 12:02:28 Updated: iwl6000-firmware-9.221.4.1-44.fc21.noarch
Apr 11 12:02:29 Updated: iwl5000-firmware-8.83.5.1_1-44.fc21.noarch
Apr 11 12:06:15 Installed: kernel-devel-3.19.3-200.fc21.x86_64
Apr 11 12:06:16 Updated: sip-4.16.6-1.fc21.x86_64
Apr 11 12:06:17 Updated: iwl2000-firmware-18.168.6.1-44.fc21.noarch
Apr 11 12:06:17 Updated: iwl4965-firmware-228.61.2.24-44.fc21.noarch
Apr 11 12:06:18 Updated: python-dulwich-0.10.0-1.fc21.x86_64
Apr 11 12:06:18 Updated: iwl3945-firmware-15.32.2.9-44.fc21.noarch
Apr 11 12:06:19 Updated: bluez-libs-5.29-2.fc21.x86_64
Apr 11 12:06:19 Updated: iwl2030-firmware-18.168.6.1-44.fc21.noarch
Apr 11 12:06:21 Updated: ffmpeg-libs-2.4.8-1.fc21.x86_64
Apr 11 12:06:22 Updated: gdisk-1.0.0-1.fc21.x86_64
Apr 11 12:06:22 Updated: iwl135-firmware-18.168.6.1-44.fc21.noarch
Apr 11 12:06:23 Updated: 1:iwl1000-firmware-39.31.5.1-44.fc21.noarch
Apr 11 12:06:23 Updated: iwl6000g2a-firmware-18.168.6.1-44.fc21.noarch
Apr 11 12:06:27 Updated: kernel-headers-3.19.3-200.fc21.x86_64
Apr 11 12:06:27 Updated: arj-3.10.22-22.fc21.x86_64
Apr 11 12:06:28 Updated: libmicrohttpd-0.9.39-2.fc21.x86_64
Apr 11 12:06:28 Updated: iwl5150-firmware-8.24.2.2-44.fc21.noarch
Apr 11 12:06:29 Updated: hwdata-0.276-1.fc21.noarch
Apr 11 12:06:30 Updated: python-pillow-2.6.2-1.fc21.x86_64
Apr 11 12:06:31 Updated: iwl100-firmware-39.31.5.1-44.fc21.noarch
Apr 11 12:06:32 Updated: libgphoto2-2.5.7-2.fc21.x86_64
Apr 11 12:06:33 Updated: iwl6000g2b-firmware-18.168.6.1-44.fc21.noarch
Quote:
and why did you try to delete that ??????
the link you posted to is for a VIRTUAL install
is this fedora install on a VM ?
what is the host OS ?
|
ekhhh... it's not a VM . I deleted it because I was too lazy to pay attention. Hoped to a "quick fix". Posted here to give you a complete picture.
Quote:
EDIT
i mised this
so at one time the kernel was being BLOCKED from updating ?
was this do to some hardware or software issue ?
|
yes, laptop's BIOS has a problem with ACPI that causes battery mater to improperly function. Until it was worked on i had kernel packages disabled. But over the past 6 months i just recompile a new kernel with the ACPI fix.
"#kernel" is a rudimentary line that has left since those times.
|
|
|
04-13-2015, 01:23 AM
|
#9
|
Member
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568
Original Poster
Rep:
|
if i explicitly specify dbpath the rpm seemed to work:
Code:
rpm --dbpath /var/lib/rpm -qa
libmodplug-0.8.8.5-3.fc21.x86_64
yelp-xsl-3.14.0-2.fc21.noarch
sssd-common-1.12.4-2.fc21.x86_64
keybinder3-0.3.0-4.fc21.x86_64
libreport-plugin-kerneloops-2.3.0-6.fc21.x86_64
python-simplejson-3.5.3-2.fc21.x86_64
<skip>
I also strace the rpm and here are last 50 lines from strace file :
Code:
munmap(0x7f1c62c6e000, 4096) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=35, ws_col=124, ws_xpixel=0, ws_ypixel=0}) = 0
stat("/etc/yum/yum.conf", 0x7fffea9b2060) = -1 ENOENT (No such file or directory)
open("/etc/yum.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=850, ...}) = 0
read(3, "[main]\ncachedir=/var/cache/yum/$"..., 850) = 850
read(3, "", 0) = 0
close(3) = 0
openat(AT_FDCWD, "//etc/yum/vars/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 2 entries */, 32768) = 48
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "error: ", 7error: ) = 7
write(2, "no dbpath has been set\n", 23no dbpath has been set
) = 23
and
Code:
rpm --showrc | grep -i dbpath
returns null.
According to http://www.rpm.org/max-rpm/ch-rpmrc-file.html
I should see:
dbpath : /var/lib/rpm
but i don't. I hae this :
Code:
[root@toshiba log]# rpm --showrc
ARCHITECTURE AND OS:
build arch : x86_64
compatible build archs: x86_64 noarch
build os : Linux
compatible build os's : Linux
install arch : x86_64
install os : Linux
compatible archs : x86_64 amd64 em64t athlon noarch i686 i586 i486 i386 fat
compatible os's : Linux
RPMRC VALUES:
archcolor : 2
optflags : {__global_cflags} -m64 -mtune=generic
Features supported by rpmlib:
rpmlib(BuiltinLuaScripts) = 4.2.2-1
rpmlib(CompressedFileNames) = 3.0.4-1
rpmlib(ConcurrentAccess) = 4.1-1
rpmlib(ExplicitPackageProvide) = 4.0-1
rpmlib(FileCaps) = 4.6.1-1
rpmlib(FileDigests) = 4.6.0-1
rpmlib(HeaderLoadSortsTags) = 4.0.1-1
rpmlib(LargeFiles) = 4.12.0-1
rpmlib(PartialHardlinkSets) = 4.0.4-1
rpmlib(PayloadFilesHavePrefix) = 4.0-1
rpmlib(PayloadIsBzip2) = 3.0.5-1
rpmlib(PayloadIsLzma) = 4.4.2-1
rpmlib(PayloadIsXz) = 5.2-1
rpmlib(ScriptletExpansion) = 4.9.0-1
rpmlib(ScriptletInterpreterArgs) = 4.0.3-1
rpmlib(TildeInVersions) = 4.10.0-1
rpmlib(VersionedDependencies) = 3.0.3-1
Macro path: /usr/lib/rpm/macros:/usr/lib/rpm/macros.d/macros.*:/usr/lib/rpm/platform/%{_target}/macros:/usr/lib/rpm/fileattrs/*.attr:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros
========================
-14: GNAT_arches %{GPRbuild_arches} %{arm}
-14: GPRbuild_arches %{ix86} x86_64 ia64 ppc ppc64 ppc64p7 alpha aarch64
-14: __appdata_path ^%{_datadir}/appdata/.*\.appdata\.xml$
-14: __appdata_provides %{_rpmconfigdir}/appdata.prov
-14: __arch_install_post /usr/lib/rpm/check-buildroot
-14: __desktop_path ^%{_datadir}/applications/.*\.desktop$
-14: __desktop_provides %{_rpmconfigdir}/desktop-file.prov
-14: __elf_flags exeonly
-14: __elf_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*$
-14: __elf_provides %{_rpmconfigdir}/elfdeps --provides %{?__filter_GLIBC_PRIVATE:--filter-private}
-14: __elf_requires %{_rpmconfigdir}/elfdeps --requires %{?__filter_GLIBC_PRIVATE:--filter-private}
-14: __font_magic [Ff]ont?( (program|collection))?( (text|data))
-14: __font_provides %{_rpmconfigdir}/fontconfig.prov
-14: __font_requires %{nil}
-14: __global_cflags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches %{_hardened_cflags}
-14: __global_ldflags -Wl,-z,relro %{_hardened_ldflags}
-14: __gstreamer1_path ^%{_libdir}/gstreamer-1.*/.*.so$
-14: __gstreamer1_provides %{_rpmconfigdir}/gstreamer1.prov
-14: __isa %{__isa_name}-%{__isa_bits}
-14: __isa_bits 64
-14: __isa_name x86
-14: __javadoc_path ^%{_javadocdir}/.*
-14: __javadoc_requires %{_rpmconfigdir}/javadoc.req
-14: __kmod_path ^/lib/modules/.*$
-14: __kmod_provides %{_rpmconfigdir}/kmod.prov
-14: __libsymlink_exclude_path ^.*[[:digit:]]$
-14: __libsymlink_magic ^symbolic link to `.*lib.*.so..*'$
-14: __libsymlink_requires %{_rpmconfigdir}/elfdeps --provides --soname-only
-14: __libtool_path ^%{_libdir}/.*.la$
-14: __libtool_provides %{_rpmconfigdir}/libtooldeps.sh --provides %{buildroot} %{name}
-14: __libtool_requires %{_rpmconfigdir}/libtooldeps.sh --requires %{buildroot} %{name}
-14: __maven_path ^%{_datadir}/maven-metadata/.*
-14: __maven_provides %{_rpmconfigdir}/maven.prov
-14: __maven_requires %{_rpmconfigdir}/maven.req
-14: __mono_magic Mono/.Net assembly
-14: __mono_provides %{_rpmconfigdir}/mono-find-provides %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir}
-14: __mono_requires %{_rpmconfigdir}/mono-find-requires %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir}
-14: __nodejs_native_path ^/usr/lib.*/node_modules/.*\.node$
-14: __nodejs_native_requires %{_rpmconfigdir}/nodejs_native.req
-14: __ocaml_magic ^(Objective caml|OCaml) .*$
-14: __ocaml_provides %{_rpmconfigdir}/ocaml-find-provides.sh
-14: __ocaml_requires %{_rpmconfigdir}/ocaml-find-requires.sh
-14: __os_install_post
/usr/lib/rpm/brp-compress
%{!?__debug_package:
/usr/lib/rpm/brp-strip %{__strip}
/usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump}
}
/usr/lib/rpm/brp-strip-static-archive %{__strip}
/usr/lib/rpm/brp-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build}
/usr/lib/rpm/brp-python-hardlink
%{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars}
<skip>
Last edited by DBabo; 04-13-2015 at 01:48 AM.
|
|
|
04-13-2015, 10:31 PM
|
#10
|
Member
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568
Original Poster
Rep:
|
after reading for a few hours and trying to revivy the damn thing i'm about to give up and reinstall the OS. ( wow, first Linux reinstall in 15 years).
i added dbpath to /etc/rpm/macros
i added _rpmlock /var.lock/rpm
and was able to rebuild the db.
yet my attempt to reinstall rpm package failed:
Code:
[root@toshiba rpm]# rpm --dbpath=/var/lib/rpm -i ./rpm-4.12.0.1-5.fc21.x86_64.rpm
package rpm-4.12.0.1-5.fc21.x86_64 is already installed
[root@toshiba rpm]# rpm --dbpath=/var/lib/rpm -i --force ./rpm-4.12.0.1-5.fc21.x86_64.rpm
/%{_tmppath}/rpm-tmp.KuVKRH: line 4: grep: command not found
[root@toshiba rpm]# vi /etc/rpm/macros
|
|
|
04-14-2015, 06:07 AM
|
#11
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
I had similar issue in my test lab, I tried to replace the files from backup and it didn't help and eventually had to go with re-install, it was a CentOS box. I thought this one was different but appears it was on the same path as that of the issue I faced.
|
|
|
04-17-2015, 10:39 PM
|
#12
|
Member
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568
Original Poster
Rep:
|
just to close the thread -
"format c:
install"
on the positive side - now i know how LXDE looks like )
|
|
|
All times are GMT -5. The time now is 05:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|