[mk-sbuild] Unable to create schroot in lunar

Bug #2017177 reported by Vladimir Petko
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
High
Steve Langasek
Lunar
Fix Released
High
Steve Langasek

Bug Description

[Impact]
mk-sbuild does not work at all due to a typo introduced late in the lunar cycle.

[Test plan]
Run `mk-sbuild lunar` and verify that it succeeds.

[Where problems could occur]
This is a one-line fix to a command that currently fails completely. Minimal risk of regression.

[Original bug report]
mk-sbuild --name jdk lunar

....
I: Configuring gcc...
I: Configuring g++-12...
I: Configuring g++...
I: Configuring build-essential...
I: Configuring libc-bin...
I: Base system installed successfully.
mv: cannot stat 'TEMP_PREFERENCES': No such file or directory

It appears there is a typo around line 907, see attached patch

Revision history for this message
Vladimir Petko (vpa1977) wrote :
Vladimir Petko (vpa1977)
summary: - Unable to create schroot in lunar
+ [mk-sbuild] Unable to create schroot in lunar
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "mk-sbuild-fix-typo.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Steve Langasek (vorlon)
description: updated
Changed in ubuntu-dev-tools (Ubuntu):
assignee: nobody → Steve Langasek (vorlon)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Vladimir, or anyone else affected,

Accepted ubuntu-dev-tools into lunar-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-dev-tools/0.193ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-lunar to verification-done-lunar. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-lunar. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubuntu-dev-tools (Ubuntu Lunar):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-lunar
Revision history for this message
Vladimir Petko (vpa1977) wrote :

The build fails due to distro-info[1] package throwing DistroDataOutdated as there is no update for the current development version (lunar is released).

[1] https://launchpad.net/ubuntu/+source/distro-info

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (ubuntu-dev-tools/0.193ubuntu2)

All autopkgtests for the newly accepted ubuntu-dev-tools (0.193ubuntu2) for lunar have finished running.
The following regressions have been reported in tests triggered by the package:

ubuntu-dev-tools/0.193ubuntu2 (amd64)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/lunar/update_excuses.html#ubuntu-dev-tools

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for this fix! I just faced the same issue, so decided to verify this SRU and it indeed fixes the bug:

$ apt policy ubuntu-dev-tools
ubuntu-dev-tools:
  Installed: 0.193ubuntu2
  Candidate: 0.193ubuntu2
  Version table:
 *** 0.193ubuntu2 100
        100 http://archive.ubuntu.com/ubuntu lunar-proposed/universe amd64 Packages
        100 http://archive.ubuntu.com/ubuntu lunar-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     0.193ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu lunar/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu lunar/universe i386 Packages
$ mk-sbuild mantic
I: Target architecture can be executed
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id F6ECB3762474EDA9D21B7022871920D1991BC93C)
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
[...]
Done building mantic-amd64.

 To CHANGE the golden image: sudo schroot -c source:mantic-amd64 -u root
 To ENTER an image snapshot: schroot -c mantic-amd64
 To BUILD within a snapshot: sbuild -A -d mantic-amd64 PACKAGE*.dsc

$ echo $?
0

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

This bug was fixed in the package ubuntu-dev-tools - 0.193ubuntu2

---------------
ubuntu-dev-tools (0.193ubuntu2) lunar; urgency=medium

  [ Vladimir Petko ]
  * Fix a typo introduced in the last upload that made mk-sbuild fail
    unconditionally. LP: #2017177.

 -- Steve Langasek <email address hidden> Fri, 21 Apr 2023 02:23:08 +0000

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
Changed in ubuntu-dev-tools (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
Robie Basak (racb) wrote : Update Released

The verification of the Stable Release Update for ubuntu-dev-tools has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.