pbuilder: Invalid Release file, no valid components

Bug #364808 reported by Igor Gomes
4
Affects Status Importance Assigned to Milestone
pbuilder (Ubuntu)
Invalid
Undecided
Igor Gomes
ubuntu-dev-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

I'm having an issue with pbuilder while trying to test a package to submit to my ppa. With that, I can't proceed with testings. Any advice/workaround?

Igor Gomes

-----
igorgomes@guarana /tmp> sudo pbuilder create --distribution jaunty --othermirror "deb http://br.archive.ubuntu.com/ubuntu/ jaunty main restricted multiverse universe"

W: /home/igorgomes/.pbuilderrc does not exist
Distribution is jaunty.
Building the build environment
 -> running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
E: Invalid Release file, no valid components
pbuilder: debootstrap failed
 -> Aborting with an error
 -> cleaning the build env
    -> removing directory /var/cache/pbuilder/build//6118 and its subdirectories
-----

igorgomes@guarana /tmp> apt-cache policy pbuilder
pbuilder:
  Installed: 0.183ubuntu1
  Candidate: 0.183ubuntu1
  Version table:
 *** 0.183ubuntu1 0
        500 http://br.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Siegfried Gevatter (rainct) wrote :

This is not a bug in ubuntu-dev-tools.

Are you on Jaunty? If not, you probably need a newer version of package "debootstrap".

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Invalid
Revision history for this message
Igor Gomes (igorgomes) wrote : Re: [Bug 364808] Re: pbuilder: Invalid Release file, no valid components

> Are you on Jaunty? If not, you probably need a newer version of package
> "debootstrap".

Yes I'm... With all latest updates Siegfried... Any hints?

Igor Gomes

Revision history for this message
Igor Gomes (igorgomes) wrote :

BTW:

igorgomes@guarana ~> apt-cache policy debootstrap
debootstrap:
  Installed: 1.0.12
  Candidate: 1.0.12
  Version table:
 *** 1.0.12 0
        500 http://br.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

This is the latest one available.

Igor Gomes

Revision history for this message
Savvas Radevic (medigeek) wrote :

Try this:
sudo pbuilder --create --distribution jaunty --components "main restricted universe multiverse" --mirror "http://br.archive.ubuntu.com/ubuntu"

Revision history for this message
Igor Gomes (igorgomes) wrote :

I've done a clean install and performed the same command. All packages updated. All most recent ones.

igorgomes@guarana ~> apt-cache policy pbuilder debootstrap
pbuilder:
  Installed: 0.183ubuntu1
  Candidate: 0.183ubuntu1
  Version table:
 *** 0.183ubuntu1 0
        500 http://br.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
debootstrap:
  Installed: 1.0.12
  Candidate: 1.0.12
  Version table:
 *** 1.0.12 0
        500 http://br.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

Changed in ubuntu-dev-tools (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Igor Gomes (igorgomes) wrote :

Debugged.

Changed in ubuntu-dev-tools (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Savvas Radevic (medigeek) wrote :

Igor, did you see the command I said above?

try this one, it does what you need (create a jaunty pbuilder for http://br.archive.ubuntu.com/ubuntu):
sudo pbuilder --create --distribution jaunty --components "main restricted universe multiverse" --mirror "http://br.archive.ubuntu.com/ubuntu"

Revision history for this message
Igor Gomes (igorgomes) wrote :

I've debugged the whole procedure and got the following:

If started as I stated on the bug I got the attached debug trace. Notice the comparison (my command/debug line):

pbuilder create --distribution jaunty --othermirror "deb http://br.archive.ubuntu.com/ubuntu/ jaunty main restricted multiverse universe"
debootstrap --variant=buildd jaunty . http://archive.canonical.com/ubuntu

So, it was wrongly parsed my command into this line. Tracking the execution, I checked that the script pbuilder-checkparams get the OTHERMIRRORS option:

-----
 --othermirror)
     OTHERMIRROR="$2";
-----

But it is not used by pbuilder-createbuildenv (line 65):

-----
if ! ( cd "$BUILDPLACE" && "${DEBOOTSTRAP}" "${DEBOOTSTRAPOPTS[@]}" "$DISTRIBUTION" . "$MIRRORSITE" $DEBOOTSTRAPSCRIPT ) ; then
    echo "pbuilder: $DEBOOTSTRAP failed" >&2
    exit 1
fi
-----

Only mirror side is used.

This is way the wrong parse happens.

Igor Gomes

Revision history for this message
Igor Gomes (igorgomes) wrote :

Sorry Savvras! I was working on the bug report and the debugging. Exactly, it works indeed.

So, as workaround:

sudo pbuilder --create --distribution jaunty --components "main restricted universe multiverse" --mirror "http://br.archive.ubuntu.com/ubuntu"

Instead of using the othermirrors option as suggested in https://wiki.ubuntu.com/PbuilderHowto

Maybe was a misunderstanding from my side. I've tried to use ONLY the option othermirrors, instead of to use it with the default mirror option. But anyways, using the most simple command to create an environment (pbuilder create) still not working because of the default mirror archive.canonical.com.

Igor Gomes

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Again, this is NOT a bug in ubuntu-dev-tools. At most it is in pbuilder, debootstrap or some other package.

Changed in ubuntu-dev-tools (Ubuntu):
status: In Progress → Invalid
Changed in pbuilder (Ubuntu):
assignee: nobody → Igor Gomes (igorgomes)
status: New → In Progress
Revision history for this message
Igor Gomes (igorgomes) wrote :

I got the reason:

There's a pbuilder config file on /etc/pbuilderrc that defines the incorrect repository on Canonical (http://archive.canonical.com/ubuntu). It contains only "partner" for Jaunty.

By changing it to http://archive.ubuntu.com/ubuntu, it works perfectly as expected (sudo pbuilder create).

I'm checking the sources to propose a debdiff but I can't find the mistake. Seems to be ok.

There's a (initial) changelog stating:

---------
pbuilder (0.183ubuntu1) jaunty; urgency=low

  * Merge with Debian unstable. Remaining Ubuntu changes:
    - debian/control: Prefer debootstrap over cdebootstrap.
    - debian/control: Demote cowdancer from Recommends to Suggests. This fits
      Suggests semantics. (Forwarded to Debian #504594)
    - debian/doc-base: Fix section. (Forwarded to Debian #504596)
    - pbuilderrc:
      + Set default archive to "archive.ubuntu.com".
      + Set default distribution to "jaunty".
      + Set Ubuntu components, but comment them out, so that it still defaults
-------

So it was already changed to archive.ubuntu.com.

Really strange. Any insights?

Igor Gomes

Revision history for this message
Savvas Radevic (medigeek) wrote :

You probably kept your /etc/ (?)

This is a clean install (formatted root "/" partition, except my "/home" partition) of the most current daily ubuntu iso (yesterday's):

$ cat /etc/pbuilderrc
# this is your configuration file for pbuilder.
# the file in /usr/share/pbuilder/pbuilderrc is the default template.
# /etc/pbuilderrc is the one meant for overwritting defaults in
# the default template
#
# read pbuilderrc.5 document for notes on specific options.
MIRRORSITE=http://archive.ubuntu.com/ubuntu/

Check out: https://launchpad.net/ubuntu/jaunty/+source/pbuilder/0.183ubuntu1/+files/pbuilder_0.183ubuntu1.tar.gz
File: pbuilder-0.183ubuntu1/debian/pbuilder.config

And --othermirror works as well :) (Maybe one of the brasil servers was unavailable at that moment?)

$ sudo pbuilder create --distribution jaunty --othermirror "deb http://br.archive.ubuntu.com/ubuntu jaunty main restricted multiverse universe"
W: /home/myuser/.pbuilderrc does not exist
Distribution is jaunty.
Building the build environment
 -> running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://archive.ubuntu.com/ubuntu...
I: Retrieving apt
I: Validating apt
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
[...]

$ dig br.archive.ubuntu.com

; <<>> DiG 9.5.1-P2 <<>> br.archive.ubuntu.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24076
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;br.archive.ubuntu.com. IN A

;; ANSWER SECTION:
br.archive.ubuntu.com. 600 IN CNAME ubuntu.c3sl.ufpr.br.
ubuntu.c3sl.ufpr.br. 900 IN CNAME sagres.c3sl.ufpr.br.
sagres.c3sl.ufpr.br. 98 IN A 200.236.31.1
sagres.c3sl.ufpr.br. 98 IN A 200.17.202.1

;; AUTHORITY SECTION:
c3sl.ufpr.br. 98 IN NS ns.c3sl.ufpr.br.
c3sl.ufpr.br. 98 IN NS ns2.c3sl.ufpr.br.

;; Query time: 441 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Wed Apr 22 00:28:49 2009
;; MSG SIZE rcvd: 160

Revision history for this message
Savvas Radevic (medigeek) wrote :

And I think that in order to properly use --othermirror I think you need --override-config *before* each call:

sudo pbuilder create --override-config --distribution jaunty --othermirror "deb http://br.archive.ubuntu.com/ubuntu jaunty main restricted multiverse universe"

Revision history for this message
Igor Gomes (igorgomes) wrote :

If so, probably an old file in my /etc. If so, you're right Savvas. Invaliding the bug.

Thanks for the help!

Igor Gomes

Changed in pbuilder (Ubuntu):
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.