Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to create a build environment for Lucid, and calling cowbuilder --create --distribution lucid fails with the messages below:

Get:1 http://us-east-1.ec2.archive.ubuntu.com lucid Release.gpg [189B]
Hit http://us-east-1.ec2.archive.ubuntu.com lucid Release
Hit http://us-east-1.ec2.archive.ubuntu.com lucid/main Packages
Fetched 189B in 0s (2376B/s)
Reading package lists...
I: Obtaining the cached apt archive contents
Reading package lists...
Building dependency tree...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
apt is already the newest version.
Package cowdancer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package cowdancer has no installation candidate
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
pbuilder create failed
  forking: rm -rf /opt/cowbuilder 
share|improve this question
What does your ~/.pbuilderrc contain? – John S Gruber Aug 21 '12 at 5:14
@Daenyth Is that the complete output? If so, then the problem is that you don't have the Universe repository (which provides cowdancer) enabled for the build; see John S. Gruber's answer. – Eliah Kagan Aug 21 '12 at 7:50
@EliahKagan: It's not, as the complete output was very long. I'll pastebin it somewhere if it fails after trying John's suggestion – Daenyth Aug 21 '12 at 13:21
@JohnSGruber: Nothing. I'm trying your suggestion now. – Daenyth Aug 21 '12 at 13:25

1 Answer

up vote 2 down vote accepted
+50

Try adding the following to your ~/.pbuilderrc:

COMPONENTS="main universe multiverse restricted" cowbuilder --create --distribution lucid

cowbuilder is in the universe component for lucid. I don't see the create operation trying to access universe in the output you included in your question.

The file ~/.pbuilderrc can be set up to set many pbuilder options that are used for cowbuilder as well.

share|improve this answer
Thanks, that got me farther. Failed after that trying to hardlink across partitions, but I should be able to solve that. I'm not left with a good impression of the robustness of this tool right now, I have to say. – Daenyth Aug 21 '12 at 13:29
I run it with a .pbuilderrc I picked up from here from about 22:00 and here, adding quantal, etc., as necessary. I often just use pbuilder as the speed difference isn't much. Both really need a good .pbuilderrc, however. – John S Gruber Aug 21 '12 at 13:38
@Daenyth, I think for the cowbuilder technique to work both the .cow base and the temporary build directory must be on the same partition. The hardlinks are required as part of the .cow trick. – John S Gruber Aug 21 '12 at 13:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.