Re: [vserver] Problem with RHEL6 on Ubuntu 10.4

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Fri 11 Mar 2011 - 02:20:02 GMT
Message-ID: <20110311022002.GR24107@MAIL.13thfloor.at>

On Fri, Mar 11, 2011 at 03:02:29AM +0100, Vladislav Geller wrote:
> HI Jeff,

> Thanks a lot! it did recompile a working version of yum

> However ... coming back to the original problem - it has not solved it.
> I'm still getting the issue with it not liking the libc.so.6

> quote

> ERROR with rpm_check_debug vs depsolve:
> libc.so.6 is needed by nss-softokn-freebl-3.12.7-1.1.el6.i686

> Can this be because my OS is using apt therefore rpm database has no
> knowledge of libc installed?

sounds like you're happily mixing inside and outside the guest
in your mind ...

I presume the to be installed guest will use rpm and yum, so
the newly created rpm database (inside the guest chroot) will
soon contain the proper entries ...

I also assume that apt has nothing to do with the guest install
at all ...

but note that debian is known for a broken rpm as well, and
while a patched and working yum is a good start, you should
make sure that ubuntu (which is based on debian to some extend)
has a proper and working rpm as well ...

if that still doesn't solve the issues, I'd really make sure
that the repository is working with the arguments specified
to yum (on install)

HTH,
Herbert

PS: the simplest way to test if it is ubuntu related or not
is to install centos/redhat (e.g. in kvm) and try the very
same build line there ...

> Regards,
> V.

> On Fri, Mar 11, 2011 at 2:37 AM, Jeff Jansen <jeff.jansen@kkoncepts.net>wrote:

> > On Friday 11,March,2011 09:09 AM, Vladislav Geller wrote:
> > > So I've just spent an hour trying to compile yum with rpmbuild under
> > > Ubuntu with a lot of .spec trickery.

> > > I didn't realize how hard it will be to build a tool that is not
> > > really made to work with that system.

> > I think you need to patch and compile the version of yum that comes with
> > ubuntu using the "normal" debian tools, not create a new one using
> > rpmbuild.

> > Here's what I just did to rebuild yum-3.2.25 on Lucid. I *think* this
> > is what you need to do. (You'll need a working build environment, of
> > course as well as git to get the util-vservers sources.)

> > apt-get source yum
> > sudo apt-get build-dep yum
> > git clone http://git.linux-vserver.org/git/util-vserver.git
> > cd yum-3.2.25
> > patch -p1 < ../util-vserver/contrib/yum-3.2.22-chroot.patch
> > dpkg-buildpackage -b -uc -rfakeroot

> > Now you've got a new "yum_3.2.25-1ubuntu2_all.deb" file one level up
> > that you can install on your machine(s). Once that version of yum is
> > installed, you should be able to create vservers using yum.

> > HTH

> > Jeff Jansen

> --
> Vladislav Geller
>
> Tel. 078 820 56 09
Received on Fri Mar 11 02:20:23 2011

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 11 Mar 2011 - 02:20:23 GMT by hypermail 2.1.8