Fails to debootstrap squeeze chroot due to missing apt-get

Bug #533369 reported by Josef Spillner
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debootstrap (Ubuntu)
Fix Released
Undecided
Unassigned
Karmic
Fix Released
Undecided
Unassigned
Lucid
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: debootstrap

Due to package priority changes in Debian, debootstrap 1.20 shows this infamous message when called from pbuilder to create a squeeze chroot:
chroot: cannot run command `/usr/bin/apt-get': No such file or directory

Thread about this issue:
http://<email address hidden>/msg279815.html

The fix was implemented in 1.0.21:
http://packages.debian.org/changelogs/pool/main/d/debootstrap/current/changelog
[ Frans Pop ]
   * Add apt to base packages for the buildd variant as it is no longer marked
     Build-Essential.

This patch should be included as an updated package in Karmic. Otherwise, automated builds from scratch remain broken. As it stands, I cannot run my scripts to generate a Squeeze-based live DVD from Karmic :(

Revision history for this message
Josef Spillner (josefspillner) wrote :
tags: added: patch
Nigel Babu (nigelbabu)
Changed in debootstrap (Ubuntu):
assignee: nobody → Nigel Babu (nigelbabu)
status: New → In Progress
Revision history for this message
Paul Tagliamonte (paultag) wrote :

Looks OK to me. Perhaps I'm lucky

sudo debootstrap squeeze folder
sudo chroot folder

tag@Loki:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
tag@Loki:~$

Attached is log

-Paul

Revision history for this message
Paul Tagliamonte (paultag) wrote :

FYI --

tag@Loki:~$ debootstrap --version
debootstrap 1.0.20
tag@Loki:~$

Revision history for this message
Paul Tagliamonte (paultag) wrote :

Upstream unstable deboostrap[1] is v 1.0.22 in unstable, I think 1.20 was a typo from the OP.

[1] - http://packages.debian.org/sid/debootstrap

Revision history for this message
Nigel Babu (nigelbabu) wrote :

I'd like to submit an SRU proposal for this bug, but I cannot reproduce this issue and neither could paultag. Could please give me detailed instructions to reproduce it?

Changed in debootstrap (Ubuntu):
assignee: Nigel Babu (nigelbabu) → nobody
status: In Progress → New
status: New → Incomplete
Revision history for this message
Josef Spillner (josefspillner) wrote :

You can easily reproduce it by adding --variant=buildd to the deboostrap command. This is what pbuilder uses. The debootstrap command itself will work, but it won't have apt-get in it and therefore pbuilder or other tools which assume the presence of apt will fail.

To reproduce the failure of pbuilder, call something like sudo /usr/sbin/pbuilder --create --distribution squeeze.

Revision history for this message
Nigel Babu (nigelbabu) wrote :

I tried pbuilder-dist squeeze create --debootstrapopts --variant=buildd and it worked sucessfully

Revision history for this message
Nigel Babu (nigelbabu) wrote :

Oh, I got what you meant, I get the error at the end. Getting the fix ready. Thanks for the patch

Nigel Babu (nigelbabu)
Changed in debootstrap (Ubuntu):
assignee: nobody → Nigel Babu (nigelbabu)
status: Incomplete → In Progress
Revision history for this message
Nigel Babu (nigelbabu) wrote :

Debdiff for SRU

Changed in debootstrap (Ubuntu):
status: In Progress → Triaged
Nigel Babu (nigelbabu)
Changed in debootstrap (Ubuntu):
assignee: Nigel Babu (nigelbabu) → nobody
Revision history for this message
Benjamin Drung (bdrung) wrote :

@Nigel: We need to fix the bug in the devel release (maverick) first. Then we can fix it in a SRU (probably we want to the fix in lucid too).

To your debdiff:
1. The version should be 1.0.20ubuntu0.1 instead of 1.0.20ubuntu1.
2. LP should be capital letters (lp -> LP)

Please reassign ubuntu-sponsors once these points are addressed.

Revision history for this message
Nigel Babu (nigelbabu) wrote : Re: [Bug 533369] Re: Fails to debootstrap squeeze chroot due to missing apt-get

@Benjamin, the realization hit me that we need the fix in maverick first,
that's why I've put this on hold. As soon as the fix is in maverick, I'll
get this done.

Revision history for this message
Nigel Babu (nigelbabu) wrote :

This issue has been fixed in Karmic.

Changed in debootstrap (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Nigel Babu (nigelbabu) wrote :

err, fixed in Maverick actually

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

guys...

this bug is still not fixed for lucid...

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

Dear Colleagues,

please find attached the debdiff for an SRU of debootstrap for lucid (1.0.20)

Regards,

\sh

Revision history for this message
Benjamin Drung (bdrung) wrote :

uploaded to lucid-proposed (after adding the LP reference and changing the version from 1.0.20ubuntu2 to 1.0.20ubuntu1.1)

Changed in debootstrap (Ubuntu Lucid):
status: New → Fix Committed
Revision history for this message
Benjamin Drung (bdrung) wrote :

sponsor-patch is fixed and I have uploaded the patch to karmic-proposed

Changed in debootstrap (Ubuntu Karmic):
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted debootstrap into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted debootstrap into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

SRU verification for Karmic:
I have reproduced the problem with debootstrap 1.0.20 in karmic and have verified that the version of debootstrap 1.0.20ubuntu0.1 in -proposed fixes the issue.

I've successfully build 2 packages: synaptic and bsdgames.

verification-done for karmic.

tags: added: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package debootstrap - 1.0.20ubuntu0.1

---------------
debootstrap (1.0.20ubuntu0.1) karmic-proposed; urgency=low

  * Add apt to base packages for the buildd variant as it is no longer
    marked Build-Essential (thanks Josef Spillner). (LP: #533369)
 -- Nigel Babu <email address hidden> Tue, 17 Aug 2010 19:28:23 +0200

Changed in debootstrap (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Setting back to v-needed since lucid hasn't been tested yet.

tags: added: patch-accepted-debian
removed: patch verification-done
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Could anyone test the version in lucid-proposed and give feedback ?
Thanks in advance.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Can someone please verify lucid-proposed?

We have another upload of debootstrap blocked and queued on clearing this one.

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

@Dustin: On it

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

Works as Expected

The only left bone which is not looking ok is:

Processing triggers for python-support ...
E: 05file: tar: ./var/run/dbus/system_bus_socket: socket ignored

Regards,

\sh

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package debootstrap - 1.0.20ubuntu1.1

---------------
debootstrap (1.0.20ubuntu1.1) lucid-proposed; urgency=low

  * scripts/sid:
    + Fixed bug for not creating sid chroot because of missing apt
      taken from mavericks debootstrap version (LP: #533369)
 -- Stephan Hermann <email address hidden> Tue, 17 Aug 2010 15:58:06 +0200

Changed in debootstrap (Ubuntu Lucid):
status: Fix Committed → Fix Released
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.