pull-lp-debs fails to download single binary package for foreign architecture

Bug #2081861 reported by Heinrich Schuchardt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Downloading binary packages for a foreign architecture works when specifying a source package:

$ pull-lp-debs -a riscv64 u-boot noble
Found u-boot 2024.01+dfsg-1ubuntu5.1 in noble
Downloading u-boot_2024.01+dfsg-1ubuntu5.1.dsc from archive.ubuntu.com (0.004 MiB)
[=====================================================>]100%
Public key not found, could not verify signature

NOTICE: 'u-boot' packaging is maintained in the 'Git' version control system at:
 https://salsa.debian.org/debian/u-boot.git

Please use:
 $ git clone https://salsa.debian.org/debian/u-boot.git
to retrieve the latest (possibly unreleased) updates to the package.

Downloading u-boot-microchip_2024.01+dfsg-1ubuntu5.1_riscv64.deb from ports.ubuntu.com (0.384 MiB)
[=====================================================>]100%
Downloading u-boot-qemu_2024.01+dfsg-1ubuntu5.1_all.deb from archive.ubuntu.com (1.995 MiB)
[=====================================================>]100%
Downloading u-boot-sifive_2024.01+dfsg-1ubuntu5.1_riscv64.deb from ports.ubuntu.com (0.621 MiB)
[=====================================================>]100%
Downloading u-boot-starfive_2024.01+dfsg-1ubuntu5.1_riscv64.deb from ports.ubuntu.com (0.563 MiB)
[=====================================================>]100%
Downloading u-boot-tools_2024.01+dfsg-1ubuntu5.1_riscv64.deb from ports.ubuntu.com (0.299 MiB)
[=====================================================>]100%

Doing the same specifying a single binary fails:

$ pull-lp-debs -a riscv64 u-boot-microchip noble
Source package lookup failed, trying lookup of binary package u-boot-microchip
The binary package 'u-boot-microchip' does not exist in the Ubuntu primary archive for architecture amd64 in noble for pockets Release, Security, Updates, Proposed with status in Pending, Published
The source package 'u-boot-microchip' does not exist in the Ubuntu primary archive in noble for pockets Release, Security, Updates, Proposed with status in Pending, Published

Running the command natively on a riscv64 works fine:

$ pull-lp-debs -a riscv64 u-boot-microchip noble
Source package lookup failed, trying lookup of binary package u-boot-microchip
Using source package 'u-boot' for binary package 'u-boot-microchip'
Found u-boot 2024.01+dfsg-1ubuntu5.1 in noble
Downloading u-boot_2024.01+dfsg-1ubuntu5.1.dsc from ports.ubuntu.com (0.004 MiB)
[=====================================================>]100%
Public key not found, could not verify signature

NOTICE: 'u-boot-microchip' packaging is maintained in the 'Git' version control system at:
 https://salsa.debian.org/debian/u-boot.git

Please use:
 $ git clone https://salsa.debian.org/debian/u-boot.git
to retrieve the latest (possibly unreleased) updates to the package.

Pulling only binary package 'u-boot-microchip'
Use package name 'u-boot' to pull all binary packages
Downloading u-boot-microchip_2024.01+dfsg-1ubuntu5.1_riscv64.deb from ports.ubuntu.com (0.384 MiB)
[=====================================================>]100%

Downloading a single binary package for a foreign architecture should be enabled.

summary: - pull-lp-debs fails to download single binary for foreign architecture
+ pull-lp-debs fails to download single binary package for foreign
+ architecture
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Fernando Bravo Hernández (ferbraher) wrote :

I had the same issue when trying to download the binary packages for a raspi device:

$ uname -m
x86_64
$ pull-lp-debs --arch arm64 linux-buildinfo-6.8.0-1004-raspi
Source package lookup failed, trying lookup of binary package linux-buildinfo-6.8.0-1004-raspi
The binary package 'linux-buildinfo-6.8.0-1004-raspi' does not exist in the Ubuntu primary archive for architecture amd64 in any release for pockets Release, Security, Updates, Proposed with status in Pending, Published
The source package 'linux-buildinfo-6.8.0-1004-raspi' does not exist in the Ubuntu primary archive in any release for pockets Release, Security, Updates, Proposed with status in Pending, Published

The issue seems to be that the `arch` parameter is not being parsed to the `getBinaryPackage()` function:

$ pull-lp-debs -a arm64 linux-buildinfo-6.8.0-1004-raspi
Source package lookup failed, trying lookup of binary package linux-buildinfo-6.8.0-1004-raspi
The archtag used in getBinaryPackage() is: None
The binary package 'linux-buildinfo-6.8.0-1004-raspi' does not exist in the Ubuntu primary archive for architecture amd64 in any release for pockets Release, Security, Updates, Proposed with status in Pending, Published
The source package 'linux-buildinfo-6.8.0-1004-raspi' does not exist in the Ubuntu primary archive in any release for pockets Release, Security, Updates, Proposed with status in Pending, Published

After parsing the args to the `getBinaryPackage()` function, the issue is solved:

$ pull-lp-debs -a arm64 linux-buildinfo-6.8.0-1004-raspi
Source package lookup failed, trying lookup of binary package linux-buildinfo-6.8.0-1004-raspi
The archtag used in getBinaryPackage() is: arm64
Using source package 'linux-raspi' for binary package 'linux-buildinfo-6.8.0-1004-raspi'
Found linux-raspi 6.8.0-1004.4 in oracular
Downloading linux-raspi_6.8.0-1004.4.dsc from ports.ubuntu.com (0.004 MiB)
[=====================================================>]100%
Public key not found, could not verify signature

NOTICE: 'linux-buildinfo-6.8.0-1004-raspi' packaging is maintained in the 'Git' version control system at:
 git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-raspi/+git/noble

Please use:
 $ git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-raspi/+git/noble
to retrieve the latest (possibly unreleased) updates to the package.

Pulling only binary package 'linux-buildinfo-6.8.0-1004-raspi'
Use package name 'linux-raspi' to pull all binary packages
Please wait, this may take some time...
The archtag used in getBinaryPackage() is: arm64
Using existing file linux-buildinfo-6.8.0-1004-raspi_6.8.0-1004.4_arm64.deb

Simon Quigley (tsimonq2)
Changed in ubuntu-dev-tools (Ubuntu):
status: Confirmed → Fix Committed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.206

---------------
ubuntu-dev-tools (0.206) unstable; urgency=medium

  [ Dan Bungert ]
  * mk-sbuild: enable pkgmaintainermangler

  [ Shengjing Zhu ]
  * import-bug-from-debian: package option is overridden and not used

  [ Fernando Bravo Hernández ]
  * Parsing arch parameter to getBinaryPackage() (LP: #2081861)

  [ Simon Quigley ]
  * Read ~/.devscripts in a more robust way, to ideally pick up multi-line
    variables (Closes: #725418).
  * mk-sbuild: default to using UTC for schroots (LP: #2097159).
  * syncpackage: s/syncblacklist/syncblocklist/g
  * syncpackage: Cache the sync blocklist in-memory, so it's not fetched
    multiple times when syncing more than one package.
  * syncpackage: Catch exceptions cleanly, simply skipping to the next
    package (erring on the side of caution) if there is an error doing the
    download (LP: #1943286).

 -- Simon Quigley <email address hidden> Tue, 04 Mar 2025 13:43:15 -0600

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Ubuntu-dev-tools 0.205 does not solve the issue:

$ pull-lp-debs -a riscv64 u-boot-microchip noble
Source package lookup failed, trying lookup of binary package u-boot-microchip
The binary package 'u-boot-microchip' does not exist in the Ubuntu primary archive for architecture amd64 in noble for pockets Release, Security, Updates, Proposed with status in Pending, Published
The source package 'u-boot-microchip' does not exist in the Ubuntu primary archive in noble for pockets Release, Security, Updates, Proposed with status in Pending, Published

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Released → Confirmed
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.