Fails to test ubuntu packages as debfoster is in universe

Bug #317721 reported by James Westby
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
piuparts (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: piuparts

Hi,

Running a default piuparts run fails as it tries to install debfoster
with only main and restricted enabled.

Thanks,

James

  I: Configuring ubuntu-minimal...
  I: Configuring libc6...
  I: Configuring initramfs-tools...
  I: Base system installed successfully.
6m5.1s DEBUG: Command ok: ['debootstrap', '--resolve-deps', 'gutsy', '/tmp/tmpiKtxFt', 'http://archive.ubuntu.com/ubuntu/']
6m5.1s DEBUG: Created policy-rc.d and chmodded it.
6m5.1s DEBUG: Starting command: ['chroot', '/tmp/tmpiKtxFt', 'apt-get', 'update']
6m6.1s DUMP:
  Get:1 http://archive.ubuntu.com gutsy Release.gpg [191B]
  Hit http://archive.ubuntu.com gutsy Release
  Hit http://archive.ubuntu.com gutsy/main Packages
  Get:2 http://archive.ubuntu.com gutsy/restricted Packages [7664B]
  Fetched 7855B in 0s (28.1kB/s)
  Reading package lists...
6m6.1s DEBUG: Command ok: ['chroot', '/tmp/tmpiKtxFt', 'apt-get', 'update']
6m6.1s DEBUG: Starting command: ['chroot', '/tmp/tmpiKtxFt', 'mount', '-t', 'proc', 'proc', '/proc']
6m6.1s DEBUG: Command ok: ['chroot', '/tmp/tmpiKtxFt', 'mount', '-t', 'proc', 'proc', '/proc']
6m6.1s DEBUG: Starting command: ['chroot', '/tmp/tmpiKtxFt', 'apt-get', 'install', 'debfoster']
6m6.4s DUMP:
  Reading package lists...
  Building dependency tree...
  E: Couldn't find package debfoster
6m6.4s ERROR: Command failed (status=100): ['chroot', '/tmp/tmpiKtxFt', 'apt-get', 'install', 'debfoster']
  Reading package lists...
  Building dependency tree...
  E: Couldn't find package debfoster

6m6.4s DEBUG: Starting command: ['chroot', '/tmp/tmpiKtxFt', 'umount', '/proc']

Revision history for this message
Arnaud Soyez (weboide) wrote :

Confirmed also when using distribution intrepid:

0m26.1s DUMP:
  Get:1 http://ubuntu.media.mit.edu intrepid Release.gpg [189B]
  Get:2 http://ubuntu.media.mit.edu intrepid Release [65.9kB]
  Get:3 http://ubuntu.media.mit.edu intrepid/main Packages [1256kB]
  Get:4 http://ubuntu.media.mit.edu intrepid/restricted Packages [8408B]
  Fetched 1331kB in 11s (115kB/s)
  Reading package lists...
0m26.1s DEBUG: Command ok: ['chroot', '/tmp/tmpKAtAhO', 'apt-get', 'update']
0m26.1s DEBUG: Starting command: ['chroot', '/tmp/tmpKAtAhO', 'mount', '-t', 'proc', 'proc', '/proc']
0m26.2s DEBUG: Command ok: ['chroot', '/tmp/tmpKAtAhO', 'mount', '-t', 'proc', 'proc', '/proc']
0m26.2s DEBUG: Starting command: ['chroot', '/tmp/tmpKAtAhO', 'apt-get', '-yf', 'upgrade']
0m26.3s DUMP:
  Reading package lists...
  Building dependency tree...
  Reading state information...
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0m26.3s DEBUG: Command ok: ['chroot', '/tmp/tmpKAtAhO', 'apt-get', '-yf', 'upgrade']
0m26.3s DEBUG: Starting command: ['chroot', '/tmp/tmpKAtAhO', 'apt-get', 'install', 'debfoster']
0m26.4s DUMP:
  Reading package lists...
  Building dependency tree...
  Reading state information...
  E: Couldn't find package debfoster
0m26.4s ERROR: Command failed (status=100): ['chroot', '/tmp/tmpKAtAhO', 'apt-get', 'install', 'debfoster']
  Reading package lists...
  Building dependency tree...
  Reading state information...
  E: Couldn't find package debfoster

0m26.4s DEBUG: Starting command: ['chroot', '/tmp/tmpKAtAhO', 'umount', '/proc']
0m26.5s DEBUG: Command ok: ['chroot', '/tmp/tmpKAtAhO', 'umount', '/proc']
0m27.0s DEBUG: Removed directory tree at /tmp/tmpKAtAhO

Changed in piuparts:
status: New → Confirmed
Revision history for this message
Arnaud Soyez (weboide) wrote :

Happens on piuparts 0.31ubuntu1

Revision history for this message
to be removed (liw) wrote :

piuparts needs to be fixed to work well on Ubuntu out of the box. This is one of the things. The workaround for this problem is to use the option --skip-minimize. You will probably want to use the option --no-symlinks as well.

Alternatively, you can use the --mirror option: --mirror "http://archive.ubuntu.com/ubuntu main universe"

However, --skip-minimize seems to work better when I try things.

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

I'm working on piuparts to fix this bug and few others not related to piuparts directly but making usage of this tool harder than it should be (dangling symlinks in packages that are installed in piuparts chroot for example) but I most likely won't push it into Karmic as I'd like to spend some time on it and there are workarounds anyway.

Changed in piuparts (Ubuntu):
assignee: nobody → Krzysztof Klimonda (kklimonda)
importance: Undecided → Low
status: Confirmed → In Progress
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

This is fixed in natty. From piuparts.py:92

class UbuntuDefaults(Defaults):

    def get_components(self):
        return ["main", "universe", "restricted", "multiverse"]

    def get_mirror(self):
        return [("http://archive.ubuntu.com/ubuntu", self.get_components())]

Changed in piuparts (Ubuntu):
assignee: Krzysztof Klimonda (kklimonda) → nobody
status: In Progress → 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.