Re: [Vserver] Vserver newbie: problems when build guest server on FC4
Hi there, on Donnerstag, 06. Oktober 2005 at 18:25 on the list was posted: Just apply the attached patch against yum.spec (patch is for the devel tree but it should be trivial to adapt it to FC-4). | -Release: 5 | +Release: 5.chroot That hunk failed as FC4 has Release 0.fc4. Have changed this to 0.chroot.fc4 therefore in my source. After doing a rpm -Uv --force (as rpm failed with package yum-2.4.0-0.fc4 (which is newer than yum-2.4.0-0.chroot.fc4) is already installed) I checked in building a test FC4 vserver: Yuppadoo - it seemed to work! Great stuff 8-) Patched RPMs for FC4 to download are available at (without any warranty, original licenses still to be used, own work supplied under GPL, feel free to copy and redistribute as needed): Binary: http://muh.at/rpm/yum-2.4.0-0.chroot.fc4.noarch.rpm Source: http://muh.at/rpm/yum-2.4.0-0.chroot.fc4.src.rpm -- regards, Guenther Fuchs ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
Hi there, on Friday, October 7, 2005 at 03:20 on the list was posted: Could you please tell me where I could get the patch for yum and how to apply it? Enrico posted a (base) patch for the spec files in this thread, that used the util-vserver-0.30.208/contrib/yum-2.3.4-chroot.patch to patch the yum 2.4.0 source. Pointer to ready prepared FC4-noarch rpms have been posted by me based on this. I looked at http://www.13thfloor.at/vserver/s_rel26/v2.0/ but could not find it. Look into util-vserver sources, there it is ;-) [ ToFu snipped ] BTW: I guess also the other's would appreciate if you could read http://www.netmeister.org/news/learn2quote.html - especially part 2.1 of that ;-) -- regards, Guenther Fuchs ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
Hi there, on Friday, October 7, 2005 at 10:24 on the list was posted: Patched RPMs for FC4 to download are available at (without any warranty, original licenses still to be used, own work supplied under GPL, feel free to copy and redistribute as needed): Binary: http://muh.at/rpm/yum-2.4.0-0.chroot.fc4.noarch.rpm Source: http://muh.at/rpm/yum-2.4.0-0.chroot.fc4.src.rpm Errr ... just realised, I had uploaded those files to the wrong server, they are online only by now - sorry to the one Californian guy trying to download ;-/ -- regards, Guenther Fuchs ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
Hi there, on Donnerstag, 06. Oktober 2005 at 02:10 on the list was posted: I have FC4 x86 ... I tried to build a FC4 using apt-rpm method at the end. Unfortunately I cannot tell where but somewhere I found tron recommendations for FC4 _not_ to use apt-rpm anymore as those repositories are not really supported / maintained properly by the Fedora project. I can't remember the exact words or where I found it but in my brain I stored it as official note ;-) So I would recommend using yum - this works very fine here (as long as you ensure not using yum version 2.3 and _not_ 2.4 - later version breaks compatibility with Enrico's util-vserver tools) -- regards, Guenther Fuchs ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
[EMAIL PROTECTED] (Steven Truong) writes: Hello, all. I am a vservers newbie. I have tried to setup vservers and learn more about it. I have FC4 x86 with kernel 2.6.12. I applied the patch-2.6.12.4-vs4 to the vanilla kernel. I also installed dietlibc-0.29, beecrypt-4.1.2-8, and util-vserver-0.30-208. The Linux box has gcc 4.0.1. I changed /etc/vservers/.distributions/fc4/apt/source.list to include only: rpmhttp://download.fedora.us/fedora/fedora latest/i386os updates This points to an FC2 repository... I tried to build a guest server with this command: vserver lanweb build -m apt-rpm --hostname=lanweb --netdev eth0 -- -d fc4 ... and this indicates that you expect FC4 Everything went smoothly until after all the rpms got downloaded and started to install. These are the start of the errors. ... Header V3 DSA signature: NOKEY, key ID 731002fa Preparing...### [100%] 1:bash ### [ 2%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(bash-2.05b-38.i386) scriptlet failed, exit status 127 ... 15:libtermcap ### [ 35%] this indicates some dependency problem in the packages (e.g. circular deps, insufficient Requires(pre) annotations). So, 'libtermcap' (with libtermcap.so.2) will be installed after the packages which are using it in their %post scriptlets. /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %pre(coreutils-5.2.1-7.i386) scriptlet failed, exit status 127 error: install: %pre scriptlet failed (2), skipping coreutils-5.2.1-7 %pre of coreutils failed so its installation will be skipped... 38:sysklogd ### [ 88%] /var/tmp/rpm-tmp.55110: line 4: touch: command not found /var/tmp/rpm-tmp.55110: line 5: chmod: command not found ... and tools like 'touch' and 'chmod' are missing It seemed like the package termcap did not work with the rest of the packages and so others can not access and share it. Could you tell me how to fix this? And why suddenly touch/chown/chmod could not be found when they are actually in the PATH? Could you tell me how to fix this or any recommendations of what to build at this point instead of FC4 for my current settings? 'apt-rpm' is nearly dead and I am not aware of apt repositories for recent Fedora distributions. You could create your own repo and test whether is works (things above look like packaging errors which might be fixed in the meantime). Or you could try 'yum', but it is unconfigurable and makes stupid assumptions without providing ways to turn them off so it is difficultly to use in chroot environments. So you have to apply a patch to make it work properly. Enrico pgpesvPeHZ6wX.pgp Description: PGP signature ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
[EMAIL PROTECTED] (Guenther Fuchs) writes: So I would recommend using yum - this works very fine here (as long as you ensure not using yum version 2.3 and _not_ 2.4 - later version breaks compatibility with Enrico's util-vserver tools) Please try the patch from the contrib/ dir (the 2.3.4 one applies to 2.4 also). I built lots of FC4 vservers on FC4 hosts so it seems to work ;) Enrico pgpC6OQFTS2fw.pgp Description: PGP signature ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
I am using FC4 with 0.30.208 with yum, and except for having to downgrade the yum on host to 2.3.2, it has worked very, very well for me. I haven't applied the patch and I get the warning message, but I it's been smooth sailing for me. I have created a local FC4 updates repository, so I can create a new FC4 guest in less than 5 minutes! Just another yes vote in the yum column, even with the minor issues jorgy --- Enrico Scholz [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Guenther Fuchs) writes: So I would recommend using yum - this works very fine here (as long as you ensure not using yum version 2.3 and _not_ 2.4 - later version breaks compatibility with Enrico's util-vserver tools) Please try the patch from the contrib/ dir (the 2.3.4 one applies to 2.4 also). I built lots of FC4 vservers on FC4 hosts so it seems to work ;) Enrico ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
Hi there, on Donnerstag, 06. Oktober 2005 at 17:22 on the list was posted: Please try the patch from the contrib/ dir (the 2.3.4 one applies to 2.4 also). I built lots of FC4 vservers on FC4 hosts so it seems to work ;) Hmmm - found the patch but no real explanation on how to use it / i.e. what files to patch?! Is this files to patch a yum source build tree? If yes, most FC users would be happy, if someone (e.g. myself) could supply a rpm package of recent, patched yum to use. So pls give me short assistance, I then could rebuild a patched rpm and supply this back for the communtiy. -- regards, Guenther Fuchs ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
[EMAIL PROTECTED] (Guenther Fuchs) writes: Please try the patch from the contrib/ dir (the 2.3.4 one applies to 2.4 also). I built lots of FC4 vservers on FC4 hosts so it seems to work ;) Hmmm - found the patch but no real explanation on how to use it / i.e. what files to patch?! Is this files to patch a yum source build tree? If yes, most FC users would be happy, if someone (e.g. myself) could supply a rpm package of recent, patched yum to use. So pls give me short assistance, I then could rebuild a patched rpm and supply this back for the communtiy. Just apply the attached patch against yum.spec (patch is for the devel tree but it should be trivial to adapt it to FC-4). Enrico Index: yum.spec === RCS file: /cvs/dist/rpms/yum/devel/yum.spec,v retrieving revision 1.51 diff -u -p -r1.51 yum.spec --- yum.spec 4 Oct 2005 14:49:07 - 1.51 +++ yum.spec 6 Oct 2005 16:21:51 - @@ -3,7 +3,7 @@ Summary: RPM installer/updater Name: yum Version: 2.4.0 -Release: 5 +Release: 5.chroot License: GPL Group: System Environment/Base Source0: http://linux.duke.edu/projects/yum/download/2.4/yum-%{version}.tar.gz @@ -23,6 +23,7 @@ Requires: urlgrabber Requires: python-elementtree Prereq: /sbin/chkconfig, /sbin/service, coreutils BuildRoot: %{_tmppath}/%{name}-root +Patch99: yum-2.3.4-chroot.patch %description Yum is a utility that can check for and automatically download and @@ -38,6 +39,7 @@ automatically prompting the user as nece %patch2 -p0 -b .sqlbyname %patch3 -p0 -b .lists +%patch99 -p1 -b .chroot %build make pgpPNDaouF9au.pgp Description: PGP signature ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
Thanks all for your information. I am going to try yum for building the guest. Once again, thank you very much. Steven.On 10/5/05, Steven Truong [EMAIL PROTECTED] wrote: Thank Mr. Poetzl. I could not find any similar infor on the problems. Btw, I used the patch-2.6.12.4-vs2.0 not vs4. Thanks again. Steven.On 10/5/05, Herbert Poetzl [EMAIL PROTECTED] wrote: On Wed, Oct 05, 2005 at 05:10:56PM -0700, Steven Truong wrote: Hello, all.I am a vservers newbie.I have tried to setup vservers and learn more about it.I have FC4 x86 with kernel 2.6.12.I applied the patch-2.6.12.4-vs4 to the vanilla kernel.I also installed dietlibc-0.29, beecrypt-4.1.2-8, and util-vserver-0.30-208. The Linux box has gcc 4.0.1.I changed /etc/vservers/.distributions/fc4/apt/source.list to include only: rpmhttp://download.fedora.us/fedora/fedoralatest/i386os updates I followed closely the instructions on step by step Guide 2.6 but I tried to build a FC4 using apt-rpm method at the end. I tried to build a guest server with this command: vserver lanweb build -m apt-rpm --hostname=lanweb --netdev eth0 -- -d fc4 Everything went smoothly until after all the rpms got downloaded and started to install.These are the start of the errors. Get:43 http://download.fedora.us latest/i386/updates procps 3.2.0-1.2 [180kB] Fetched 23.5MB in 4m49s (81.0kB/s) Executing RPM (-Uvh)... warning: /etc/vservers/lanweb/apps/pkgmgmt/base/apt/archives/termcap_11.0.1-18.1_noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2 warning: /etc/vservers/lanweb/apps/pkgmgmt/base/apt/archives/zlib_1.2.1.2- 0.fc2.2.legacy_i386.rpm: Header V3 DSA signature: NOKEY, key ID 731002fa Preparing...### [100%]1:bash ### [2%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(bash-2.05b-38.i386 ) scriptlet failed, exit status 1272:info ### [5%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(info-4.7-4.i386 ) scriptlet failed, exit status 1273:chkconfig### [7%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %pre(coreutils-5.2.1-7.i386) scriptlet failed, exit status 127 error: install: %pre scriptlet failed (2), skipping coreutils-5.2.1-74:shadow-utils ### [9%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(shadow-utils-4.0.3-55.i386 ) scriptlet failed, exit status 1275:procps ### [ 12%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(procps-3.2.0-1.2.i386 ) scriptlet failed, exit status 1276:grep ### [ 14%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(grep-2.5.1-26.i386 ) scriptlet failed, exit status 1277:sed### [ 16%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(sed-4.0.8-4.i386) scriptlet failed, exit status 1278:fedora-release ### [ 19%]9:iproute### [ 21%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %pre(pam-0.77-40.i386) scriptlet failed, exit status 127 error: install: %pre scriptlet failed (2), skipping pam-0.77-40 10:psmisc ### [ 23%] 11:iputils### [ 26%] 12:mktemp ### [ 28%] 13:gawk ### [ 30%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(gawk-3.1.3-7.i386 ) scriptlet failed, exit status 127 14:termcap### [ 33%] 15:libtermcap ### [ 35%] 16:ncurses### [ 37%] 17:zlib ### [ 40%] 18:libselinux ### [ 42%] 19:findutils### [ 44%] 20:pcre ### [ 47%] 21:libattr### [ 49%] 22:libacl ### [ 51%] 23:cracklib ### [ 53%]
Re: [Vserver] Vserver newbie: problems when build guest server on FC4
Hello, Mr. Scholz and everybody. Could you please tell me where I could get the patch for yum and how to apply it? At this point I am very new to vservers and just have no idea of where the patch you mentioned. I looked at http://www.13thfloor.at/vserver/s_rel26/v2.0/ but could not find it. Please help. Thank you very much. Steven.On 10/6/05, Steven Truong [EMAIL PROTECTED] wrote: Thanks all for your information. I am going to try yum for building the guest. Once again, thank you very much. Steven.On 10/5/05, Steven Truong [EMAIL PROTECTED] wrote: Thank Mr. Poetzl. I could not find any similar infor on the problems. Btw, I used the patch-2.6.12.4-vs2.0 not vs4. Thanks again. Steven.On 10/5/05, Herbert Poetzl [EMAIL PROTECTED] wrote: On Wed, Oct 05, 2005 at 05:10:56PM -0700, Steven Truong wrote: Hello, all.I am a vservers newbie.I have tried to setup vservers and learn more about it.I have FC4 x86 with kernel 2.6.12.I applied the patch-2.6.12.4-vs4 to the vanilla kernel.I also installed dietlibc-0.29, beecrypt-4.1.2-8, and util-vserver-0.30-208. The Linux box has gcc 4.0.1.I changed /etc/vservers/.distributions/fc4/apt/source.list to include only: rpmhttp://download.fedora.us/fedora/fedoralatest/i386os updates I followed closely the instructions on step by step Guide 2.6 but I tried to build a FC4 using apt-rpm method at the end. I tried to build a guest server with this command: vserver lanweb build -m apt-rpm --hostname=lanweb --netdev eth0 -- -d fc4 Everything went smoothly until after all the rpms got downloaded and started to install.These are the start of the errors. Get:43 http://download.fedora.us latest/i386/updates procps 3.2.0-1.2 [180kB] Fetched 23.5MB in 4m49s (81.0kB/s) Executing RPM (-Uvh)... warning: /etc/vservers/lanweb/apps/pkgmgmt/base/apt/archives/termcap_11.0.1-18.1_noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2 warning: /etc/vservers/lanweb/apps/pkgmgmt/base/apt/archives/zlib_1.2.1.2- 0.fc2.2.legacy_i386.rpm: Header V3 DSA signature: NOKEY, key ID 731002fa Preparing...### [100%]1:bash ### [2%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(bash-2.05b-38.i386 ) scriptlet failed, exit status 1272:info ### [5%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(info-4.7-4.i386 ) scriptlet failed, exit status 1273:chkconfig### [7%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %pre(coreutils-5.2.1-7.i386) scriptlet failed, exit status 127 error: install: %pre scriptlet failed (2), skipping coreutils-5.2.1-74:shadow-utils ### [9%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(shadow-utils-4.0.3-55.i386 ) scriptlet failed, exit status 1275:procps ### [ 12%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(procps-3.2.0-1.2.i386 ) scriptlet failed, exit status 1276:grep ### [ 14%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(grep-2.5.1-26.i386 ) scriptlet failed, exit status 1277:sed### [ 16%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(sed-4.0.8-4.i386) scriptlet failed, exit status 1278:fedora-release ### [ 19%]9:iproute### [ 21%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %pre(pam-0.77-40.i386) scriptlet failed, exit status 127 error: install: %pre scriptlet failed (2), skipping pam-0.77-40 10:psmisc ### [ 23%] 11:iputils### [ 26%] 12:mktemp ### [ 28%] 13:gawk ### [ 30%] /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory error: %post(gawk-3.1.3-7.i386 ) scriptlet failed, exit status 127 14:termcap### [ 33%] 15:libtermcap ### [ 35%] 16:ncurses### [ 37%] 17:zlib ### [ 40%] 18:libselinux