ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Linux Mint 1.6: Can't get: rpm-4.0.4.tar.gz at ./ltib line 83


From: Stuart Hughes
Subject: Re: [Ltib] Linux Mint 1.6: Can't get: rpm-4.0.4.tar.gz at ./ltib line 834
Date: Sat, 20 Oct 2012 14:53:41 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1

On 19/10/12 15:52, Johan Cockx wrote:
> Hi Stuart
> 
> On Fri, Oct 19, 2012 at 3:29 PM, Stuart Hughes <address@hidden
> <mailto:address@hidden>> wrote:
> 
>     __
>     I'm sorry you're having trouble with this.  Looking at your earlier
>     logs it seemed like he install had run all the way through, so it
>     looks like the rpm install is not doing anything.
> 
> I really appreciate the effort you spend to help me out.  I am not
> really paying you for this,  so: thanks a lot.
> 
>  
> 
>     Can you try running the following commands:
> 
>         ./ltib --hostcf --erase -p distcc
> 
>         ./ltib --hostcf  -p distcc
> 
>     [...]
>     The important this is to see that you get the ##### showing that rpm
>     is actually installing something.  
> 
> 
> My output is somewhat different, but I do get the #####.
> The point that worries me is the error: cannot open Name index using db3
> - Permission denied (13)
> 
> address@hidden:~/ltib\> ./ltib --hostcf --erase -p distcc
> 
> + cd /home/johan/ltib/config/platform/host
> + [ -f .config ]
> + [ -f host.config -a host.config -nt
> /home/johan/ltib/config/platform/host/ltib.preconfig ]
> + cp /home/johan/ltib/config/platform/host/ltib.preconfig .config
> + [ 0 = 1 ]
> + [ -f .config ]
> + cp .config host.config
> error: cannot open Name index using db3 - Permission denied (13)
> distcc is not installed
> address@hidden:~/ltib\> ./ltib --hostcf  -p distcc
> + cd /home/johan/ltib/config/platform/host
> + [ -f .config ]
> + [ /home/johan/ltib/config/platform/host/ltib.preconfig -nt host.config ]
> + [ 0 = 1 ]
> + [ -f .config ]
> + cp .config host.config
> 
> Processing platform: Host support packages
> ============================================
> using /home/johan/ltib/config/platform/host/.config
> 
> Processing: distcc
> ====================
> sudo /opt/ltib/usr/bin/rpm --root / --dbpath /opt/ltib/var/lib/rpm -e
> --allmatches --nodeps --noscripts --define '_tmppath
> /home/johan/ltib/tmp' distcc 2>/dev/null
> [sudo] password for johan:
> sudo /opt/ltib/usr/bin/rpm --root / --dbpath /opt/ltib/var/lib/rpm
> --prefix / --ignorearch -ivh --force --nodeps --excludedocs --noscripts
> --define '_tmppath /home/johan/ltib/tmp'
> /opt/ltib/usr/src/rpm/RPMS/x86_64/distcc-2.18.3-1.x86_64.rpm
> error: failed to stat /home/johan/.gvfs: Permission denied
> Preparing...                ###########################################
> [100%]
>    1:distcc                 ###########################################
> [100%]
>  
> 
>     If this works you should then be able to do this:
> 
> 
>     $  /opt/ltib/usr/bin/rpm -ql distcc
> 
> 
>  This doesn't work:
> 
> address@hidden:~/ltib\> /opt/ltib/usr/bin/rpm -ql distcc
> error: cannot open Name index using db3 - Permission denied (13)
> package distcc is not installed
> address@hidden:~/ltib\>
> 
> Regards, Johan

Hi Johan,

It looks like a permissions issue with either your default umask or your
sudo setup.

Can you run:
sudo /opt/ltib/usr/bin/rpm -ql distcc

If this list the expected files, then the packages are installed, but
not accessible to your normal user.  If this is the case you need to
figure out why your user account can't access these files.  it may be as
simple as changing permissions (and also figuring out what happened).
To investigate this run:

 /opt/ltib/usr/bin/rpm --eval %_dbpath

This should show: /opt/ltib/var/lib/rpm

If it does, check the permissions of the files in this directory (and
parents) are readable by your normal user account.  I see:
ls -l /opt/ltib/var/lib/rpm
total 8196
-rw-r--r-- 1 root root  790528 2012-02-26 15:47 Basenames
-rw-r--r-- 1 root root   12288 2010-12-01 18:14 Conflictname
-rw-r--r-- 1 root root 1409024 2012-02-26 15:47 Dirnames
-rw-r--r-- 1 root root 1327104 2012-02-26 15:47 Filemd5s
-rw-r--r-- 1 root root   12288 2012-02-26 15:47 Group
-rw-r--r-- 1 root root    8192 2012-02-26 15:47 Installtid
-rw-r--r-- 1 root root   12288 2012-02-26 15:47 Name
-rw-r--r-- 1 root root 4739072 2012-02-26 15:47 Packages
-rw-r--r-- 1 root root   12288 2012-02-26 15:47 Providename
-rw-r--r-- 1 root root    8192 2012-02-26 15:47 Provideversion
-rw-r--r-- 1 root root   12288 2012-02-26 15:47 Requirename
-rw-r--r-- 1 root root   12288 2012-02-26 15:47 Requireversion
-rw-r--r-- 1 root root   12288 2012-02-26 15:47 Sha1header
-rw-r--r-- 1 root root   12288 2012-02-26 15:47 Sigmd5
-rw-r--r-- 1 root root   12288 2010-12-01 18:14 Triggername


If sudo /opt/ltib/usr/bin/rpm -ql distcc does not list any file, the the
package never really got installed and you'll need to do some more digging.

Regards, Stuart
















reply via email to

[Prev in Thread] Current Thread [Next in Thread]