LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-18-2010, 03:15 PM   #1
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
Problem compiling a Cobbler for Ubuntu Karmic


For those who don't know, Cobbler is something found in Fedora - it simplifies creating a PXE boot server, if I understood it correctly.
It's homepage can be found here

Unfortunately, I'm not using Fedora at the moment, and as I want to PXE install a distribution that doesn't have a means of PXE booting that I can see (Pardus, incidentally) I thought I'd give Cobbler a go.

I tried following the instructions on the Download and build Instructions, as it seems to be the only way to get a .deb package of it, and even got the build environment it talks about set up. However, trying to run 'pdebuild' to make the package gives a problem.
It appears to try to meet the dependencies using aptitude, which suggests a solution that it goes ahead with, which then seems to fail, unable to meet the dependencies. Full terminal output of the command is at the end of the post.

I'm wondering how to fix or get around this so I can finish creating the cobbler package - unless anyone knows of a place I can get one that works with Karmic.

Code:
liam@night-city/~/source/cobbler$ pdebuild
W: /home/liam/.pbuilderrc does not exist
dpkg-checkbuilddeps: Unmet build dependencies: python-cheetah
W: Unmet build-dependency in source
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package cobbler
dpkg-buildpackage: source version 1.5.0-1
dpkg-buildpackage: source changed by Jasper Capel <jasper@newnewyork.nl>
dpkg-checkbuilddeps: Unmet build dependencies: python-cheetah
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
dpkg-buildpackage: warning: This is currently a non-fatal warning with -S, but
dpkg-buildpackage: warning: will probably become fatal in the future.
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory `/home/liam/source/cobbler'
rm -rf build rpm-build
rm -f *~
rm -f cobbler/*.pyc
rm -rf dist
rm -rf buildiso
rm MANIFEST
rm: cannot remove `MANIFEST': No such file or directory
make[1]: [clean] Error 1 (ignored)
rm -f koan/*.pyc
rm -f config/modules.conf config/settings config/version
rm -f docs/*.1.gz 
rm *.tmp
rm: cannot remove `*.tmp': No such file or directory
make[1]: [clean] Error 1 (ignored)
rm *.log
rm: cannot remove `*.log': No such file or directory
make[1]: [clean] Error 1 (ignored)
make[1]: Leaving directory `/home/liam/source/cobbler'
dh_clean 
 dpkg-source -b cobbler
dpkg-source: warning: source directory 'cobbler' is not <sourcepackage>-<upstreamversion> 'cobbler-1.5.0'
dpkg-source: info: using source format `1.0'
dpkg-source: info: building cobbler in cobbler_1.5.0-1.tar.gz
dpkg-source: info: building cobbler in cobbler_1.5.0-1.dsc
 dpkg-genchanges -S >../cobbler_1.5.0-1_source.changes
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: source only upload: Debian-native package
[sudo] password for liam: 
W: /home/liam/.pbuilderrc does not exist
I: using fakeroot in build.
I: Current time: Thu Mar 18 20:10:45 GMT 2010
I: pbuilder-time-stamp: 1268943045
I: Building the build Environment
I: extracting base tarball [/var/cache/pbuilder/base.tgz]
I: creating local configuration
I: copying local configuration
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: i386
Maintainer: Debian Pbuilder Team <pbuilder-maint@lists.alioth.debian.org>
Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder
 This package was created automatically by pbuilder and should
Depends: debhelper (>= 7), python-cheetah, python-yaml, git-core, python
dpkg-deb: building package `pbuilder-satisfydepends-dummy' in `/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Reading package lists...
Building dependency tree...
Reading state information...
aptitude is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Selecting previously deselected package pbuilder-satisfydepends-dummy.
(Reading database ... 10668 files and directories currently installed.)
Unpacking pbuilder-satisfydepends-dummy (from .../pbuilder-satisfydepends-dummy.deb) ...
dpkg: dependency problems prevent configuration of pbuilder-satisfydepends-dummy:
 pbuilder-satisfydepends-dummy depends on debhelper (>= 7); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on python-cheetah; however:
  Package python-cheetah is not installed.
 pbuilder-satisfydepends-dummy depends on python-yaml; however:
  Package python-yaml is not installed.
 pbuilder-satisfydepends-dummy depends on git-core; however:
  Package git-core is not installed.
 pbuilder-satisfydepends-dummy depends on python; however:
  Package python is not installed.
dpkg: error processing pbuilder-satisfydepends-dummy (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pbuilder-satisfydepends-dummy
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
The following packages are BROKEN:
  pbuilder-satisfydepends-dummy 
The following NEW packages will be installed:
  bsdmainutils{a} debhelper{a} file{a} gettext{a} gettext-base{a} 
  git-core{a} groff-base{a} html2text{a} intltool-debian{a} libcroco3{a} 
  libdigest-sha1-perl{a} liberror-perl{a} libexpat1{a} libglib2.0-0{a} 
  libmagic1{a} libpcre3{a} libsqlite3-0{a} libxml2{a} man-db{a} 
  mime-support{a} po-debconf{a} python{a} python-cheetah{a} 
  python-support{a} python2.6{a} 
0 packages upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.4MB/17.9MB of archives. After unpacking 52.4MB will be used.
The following packages have unmet dependencies:
  pbuilder-satisfydepends-dummy: Depends: python-yaml which is a virtual package.
The following actions will resolve these dependencies:

Remove the following packages:
pbuilder-satisfydepends-dummy

Score is -9850

Writing extended state information...
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 10668 files and directories currently installed.)
Removing pbuilder-satisfydepends-dummy ...
Selecting previously deselected package libmagic1.
(Reading database ... 10668 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_5.03-1ubuntu1_i386.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../file_5.03-1ubuntu1_i386.deb) ...
Selecting previously deselected package libsqlite3-0.
Unpacking libsqlite3-0 (from .../libsqlite3-0_3.6.16-1ubuntu1_i386.deb) ...
Selecting previously deselected package mime-support.
Unpacking mime-support (from .../mime-support_3.46-1ubuntu1_all.deb) ...
Selecting previously deselected package python2.6.
Unpacking python2.6 (from .../python2.6_2.6.4~rc2-0ubuntu1_i386.deb) ...
Selecting previously deselected package python.
Unpacking python (from .../python_2.6.4~rc1-0ubuntu1_all.deb) ...
Selecting previously deselected package bsdmainutils.
Unpacking bsdmainutils (from .../bsdmainutils_6.1.10ubuntu4_i386.deb) ...
Setting up libmagic1 (5.03-1ubuntu1) ...

Setting up file (5.03-1ubuntu1) ...
Setting up libsqlite3-0 (3.6.16-1ubuntu1) ...

Setting up mime-support (3.46-1ubuntu1) ...
update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto mode.

Setting up python2.6 (2.6.4~rc2-0ubuntu1) ...

Setting up python (2.6.4~rc1-0ubuntu1) ...

Setting up bsdmainutils (6.1.10ubuntu4) ...
update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Aptitude couldn't satisfy the build dependencies
E: pbuilder-satisfydepends failed.
I: Copying back the cached apt archive contents
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build//20029 and its subdirectories
 
Old 03-19-2010, 08:12 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
When troubleshooting, start on the first error first as they tend to snowball.
Quote:
Unmet build dependencies: python-cheetah
... cheetah is the templating language that cobbler uses for kickstarts, try resolving this issue first then move on to the next one

cheers
 
Old 03-19-2010, 08:27 AM   #3
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
What leaves me uncertain if that's the right solution is that after installing python-cheetah, the same results still happen. That suggests that somehow I have to enter into the chroot environment (Which given that this is using pdebuilder, and I've no knowledge of that) and install it there.
Unless I've missed something between apt-get install python-cheetah and re-running pdebuild
 
Old 03-19-2010, 03:39 PM   #4
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
Quote:
Originally Posted by kbp View Post
When troubleshooting, start on the first error first as they tend to snowball.
Excellent advice. However,

Quote:
W: /home/liam/.pbuilderrc does not exist
is the first error encountered.
 
Old 03-19-2010, 03:55 PM   #5
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
A warning, I believe actually, and it seems quite content to work without it. I'll try again with it when I get back to the box I've been trying this on.
The question from my second post remains though - installing the packages on the system doesn't seem to affect the fakeroot environ it uses, and I don't know enough about pbuilder to know how to add it to said fakeroot environ.
An inconvenient problem and an oversight showing how little I actually try to compile stuff on my own.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with cobbler kickstart coolplanet Linux - Enterprise 1 01-02-2010 08:48 AM
I've updated my toshiba a40 laptop from ubuntu jackalop3 to ubuntu 9.10 (karmic) slefave Linux - Newbie 1 12-20-2009 06:33 PM
LXer: The Perfect Server - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] LXer Syndicated Linux News 0 11-08-2009 10:00 AM
LXer: Upgrade Ubuntu 9.04 (Jaunty Jackalope) to Ubuntu 9.10 (Karmic Koala) Beta LXer Syndicated Linux News 0 10-12-2009 07:50 AM
Problem in Run Cobbler razavi_m Linux - Software 3 01-22-2009 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration