uyuni icon indicating copy to clipboard operation
uyuni copied to clipboard

Ubuntu 22.04 multi architecture support for Uyuni repos (i386)

Open jay2theb opened this issue 1 year ago • 3 comments

Problem description

I have several Ubuntu 22.04 machines in my environment which are reporting that there are now held / broken packages when trying to apply updates.

This is due to libc6_2.35-0ubuntu3.3_i386.deb not being available in the Uyuni repositories.
libc6_2.35-0ubuntu3.3_amd64.deb is available, but it does not satisfy the dependencies.

#dpkg --print-foreign-architectures i386

Steps to reproduce

  1. Attempt to apply updates using only Uyuni supplied Ubuntu 22.04 (amd64) repo's show 3 (or more) held back packages with broken dependencies due to i386 packages not being available: sudo apt list --upgradeable Listing... Done libc6-dbg/ubuntu-2204-amd64-main-updates-uyuni 2.35-0ubuntu3.3 amd64 [upgradable from: 2.35-0ubuntu3.1] libc6-i386/ubuntu-2204-amd64-main-updates-uyuni 2.35-0ubuntu3.3 amd64 [upgradable from: 2.35-0ubuntu3.1] libc6/ubuntu-2204-amd64-main-updates-uyuni 2.35-0ubuntu3.3 amd64 [upgradable from: 2.35-0ubuntu3.1]

#sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages have been kept back: libc6 libc6-dbg libc6-i386 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

#sudo apt upgrade libc6 Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... 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: libcrypt1:i386 : Depends: libc6:i386 (>= 2.25) but it is not installable libgcc-s1:i386 : Depends: libc6:i386 (>= 2.35) but it is not installable E: Broken packages

  1. Update /etc/apt/sources.list with the default jammy update sources, apt clean all, apt update, and apt upgrade: #sudo apt list --upgradable Listing... Done libc6/jammy-updates,ubuntu-2204-amd64-main-updates-uyuni 2.35-0ubuntu3.3 amd64 [upgradable from: 2.35-0ubuntu3.1] libc6/jammy-updates 2.35-0ubuntu3.3 i386 [upgradable from: 2.35-0ubuntu3.1] #sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done Get more security updates through Ubuntu Pro with 'esm-apps' enabled: exo-utils libexo-2-0 libexo-common Learn more about Ubuntu Pro at https://ubuntu.com/pro The following packages will be upgraded: libc6 libc6:i386 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 6,248 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 libc6 i386 2.3 5-0ubuntu3.3 [3,013 kB] Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc6 amd64 2 .35-0ubuntu3.3 [3,235 kB] Fetched 6,248 kB in 1s (5,392 kB/s) Preconfiguring packages ... (Reading database ... 288721 files and directories currently installed.) Preparing to unpack .../libc6_2.35-0ubuntu3.3_amd64.deb ... De-configuring libc6:i386 (2.35-0ubuntu3.1), to allow configuration of libc6:amd 64 (2.35-0ubuntu3.1) ... Unpacking libc6:amd64 (2.35-0ubuntu3.3) over (2.35-0ubuntu3.1) ... Preparing to unpack .../libc6_2.35-0ubuntu3.3_i386.deb ... Unpacking libc6:i386 (2.35-0ubuntu3.3) over (2.35-0ubuntu3.1) ... Setting up libc6:amd64 (2.35-0ubuntu3.3) ... Setting up libc6:i386 (2.35-0ubuntu3.3) ... Processing triggers for libc-bin (2.35-0ubuntu3.3) ...

...

Uyuni version

Information for package Uyuni-Server-release:
---------------------------------------------
Repository     : Uyuni Server Stable
Name           : Uyuni-Server-release
Version        : 2022.11-220400.195.1.uyuni2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : Level 3
Installed Size : 1.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : Uyuni-Server-release-2022.11-220400.195.1.uyuni2.src
Summary        : Uyuni Server

Uyuni proxy version (if used)

No response

Useful logs

No response

Additional information

see also #1962 see also #1266

jay2theb avatar Sep 26 '23 00:09 jay2theb

I've found something of a workaround for this issue, how likely it is to create an issue in the future is another story.

I created a new channel, set the arch to AMD64, and a new repository with the correct URL:
http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/main/binary-i386/

After syncing and attaching this new channel to affected systems, the package is pulled in and installed without issue.

jay2theb avatar Sep 27 '23 20:09 jay2theb

Hey @jay2theb would you consider updating your uyuni to the latest version first?

avshiliaev avatar Jan 18 '24 10:01 avshiliaev

Hi @avshiliaev,

I have since updated my uyuni instances and am currently on 2023.09 and with my "workaround" still in place, I have not encountered any issues:

Information for package Uyuni-Server-release:

Repository : Uyuni Server Stable Name : Uyuni-Server-release Version : 2023.09-230900.207.8.uyuni3 Arch : x86_64 Vendor : obs://build.opensuse.org/systemsmanagement:Uyuni Support Level : Level 3 Installed Size : 1.4 KiB Installed : Yes Status : up-to-date Source package : Uyuni-Server-release-2023.09-230900.207.8.uyuni3.src Summary : Uyuni Server Description : Uyuni lets you efficiently manage physical, virtual, and cloud-based Linux systems. It provides automated and cost-effective configuration and software management, asset management, and system provisioning.

jay2theb avatar Jan 19 '24 16:01 jay2theb