Public bug reported: I have a multiarch system (amd64 is the native arch, arm64 was added with `dpkg --add-architecture arm64`).
The `/etc/apt/sources.list.d/*.sources` are correct for both architectures, and I can install native and `:arm64` packages. The issue appeared when I tried to install `php8.3-dev` package: ``` # apt-get install php8.3-dev:arm64 Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: php8.3-dev:arm64 : Depends: shtool:arm64 but it is not installable Recommends: pkg-php-tools:arm64 but it is not installable E: Unable to correct problems, you have held broken packages. ``` ``` # apt-cache show shtool Package: shtool Architecture: all Version: 2.0.8-10 Priority: optional Section: devel Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Giovani Augusto Ferreira <[email protected]> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 446 Depends: perl:any Suggests: autoconf, automake, libtool Filename: pool/main/s/shtool/shtool_2.0.8-10_all.deb Size: 122036 MD5sum: 059920a82ac004722c9e8bc182b99f99 SHA1: 7d89afc9b70beb995e573c3903f7718e2f4a4ed7 SHA256: 29a2903d3149d59c6eeb6075ad27409c987508bf854f4a1caf7b969457a1b97d SHA512: 7d8d69f8a6bf806866d3f5a3611b68a23fddf36898d1d1d51125bcb9f74b5a6352eaa7537653cfc1da850d8cf37123d371ddda87350f0160fa5d3972a1d29969 Homepage: https://www.gnu.org/software/shtool Description: portable shell tool from the GNU project Description-md5: 54d84625e4f5fa2312fab056a41a268e ``` After reading https://wiki.ubuntu.com/MultiarchSpec, I think that `shtool` should have the `Multi-Arch: foreign` tag. At least, this worked: ``` apt-get install shtool sed -i '/^Package: shtool$/a Multi-Arch: foreign' /var/lib/dpkg/status apt-get install php8.3-dev ``` ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: shtool (not installed) ProcVersionSignature: Ubuntu 6.8.0-54.56-generic 6.8.12 Uname: Linux 6.8.0-54-generic x86_64 ApportVersion: 2.28.1-0ubuntu3.3 Architecture: amd64 CasperMD5CheckResult: unknown CloudBuildName: ubuntu-oci:minimized CloudSerial: 20250127 Date: Tue Mar 4 11:06:39 2025 ProcEnviron: PATH=(custom, no user) TERM=xterm SourcePackage: shtool UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: shtool (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug cloud-image noble ** Description changed: I have a multiarch system (amd64 is the native arch, arm64 was added - with `dpkg --add-architecture arm64`. + with `dpkg --add-architecture arm64`). The `/etc/apt/sources.list.d/*.sources` are correct for both architectures, and I can install native and `:arm64` packages. The issue appeared when I tried to install `php8.3-dev` package: ``` # apt-get install php8.3-dev:arm64 Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: - php8.3-dev:arm64 : Depends: shtool:arm64 but it is not installable - Recommends: pkg-php-tools:arm64 but it is not installable + php8.3-dev:arm64 : Depends: shtool:arm64 but it is not installable + Recommends: pkg-php-tools:arm64 but it is not installable E: Unable to correct problems, you have held broken packages. ``` ``` # apt-cache show shtool Package: shtool Architecture: all Version: 2.0.8-10 Priority: optional Section: devel Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Giovani Augusto Ferreira <[email protected]> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 446 Depends: perl:any Suggests: autoconf, automake, libtool Filename: pool/main/s/shtool/shtool_2.0.8-10_all.deb Size: 122036 MD5sum: 059920a82ac004722c9e8bc182b99f99 SHA1: 7d89afc9b70beb995e573c3903f7718e2f4a4ed7 SHA256: 29a2903d3149d59c6eeb6075ad27409c987508bf854f4a1caf7b969457a1b97d SHA512: 7d8d69f8a6bf806866d3f5a3611b68a23fddf36898d1d1d51125bcb9f74b5a6352eaa7537653cfc1da850d8cf37123d371ddda87350f0160fa5d3972a1d29969 Homepage: https://www.gnu.org/software/shtool Description: portable shell tool from the GNU project Description-md5: 54d84625e4f5fa2312fab056a41a268e ``` After reading https://wiki.ubuntu.com/MultiarchSpec, I think that `shtool` should have the `Multi-Arch: foreign` tag. At least, this worked: ``` apt-get install shtool sed -i '/^Package: shtool$/a Multi-Arch: foreign' /var/lib/dpkg/status apt-get install php8.3-dev ``` ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: shtool (not installed) ProcVersionSignature: Ubuntu 6.8.0-54.56-generic 6.8.12 Uname: Linux 6.8.0-54-generic x86_64 ApportVersion: 2.28.1-0ubuntu3.3 Architecture: amd64 CasperMD5CheckResult: unknown CloudBuildName: ubuntu-oci:minimized CloudSerial: 20250127 Date: Tue Mar 4 11:06:39 2025 ProcEnviron: - PATH=(custom, no user) - TERM=xterm + PATH=(custom, no user) + TERM=xterm SourcePackage: shtool UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2100851 Title: `shtool` package should probably have 'Muti-Arch: foreign' tag To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shtool/+bug/2100851/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
