Public bug reported:

### Problem Description
The upgrade process from Kubuntu 24.04 LTS to 26.04 LTS via the official 
release upgrader tool is completely blocked due to an infinite dependency loop 
involving Python packages. The package manager keeps crucial core libraries 
back, while the release upgrader refuses to proceed until the system is fully 
up to date.

### Steps to Reproduce
1. Log into a fresh or existing Kubuntu 24.04 LTS system.
2. Run standard update commands: `sudo apt update && sudo apt upgrade`
3. Notice that the following packages are kept back:
   - `python3-gi`
   - `python3-gi-cairo`
4. Try to manually force the installation via `sudo apt install python3-gi`. 
This fails with the following unmet dependencies error:
   `python3-gi : Depends: python3 (>= 3.13~) but 3.12.3-0ubuntu2.1 is to be 
installed`
5. Attempt to proceed with the OS upgrade anyway using the development branch 
flag: `sudo do-release-upgrade -d`
6. The process aborts immediately with the message:
   `Please install all available updates for your release before upgrading.`

### Actual Behavior
The user falls into an unbreakable deadlock situation:
- The `python3-gi` package on the server repository demands Python 3.13 (which 
is native to 26.04).
- The host system is locked to Python 3.12 (native to 24.04), causing APT to 
flag the packages as "kept back".
- The `do-release-upgrade` tool enforces a strict pre-flight check that forbids 
execution if any packages are kept back.
- Purging `python3-gi` to bypass the check is not a viable workaround as it 
acts as a base dependency for foundational system packages including 
`update-manager`, `software-properties-common`, `hplip`, and `apport`. 
Attempting to remove it threatens to strip away critical desktop utilities.

### Expected Behavior
The `do-release-upgrade` tool should seamlessly recognize this cross-version 
Python dependency bottleneck. It should bypass the strict pre-flight check for 
these specific core infrastructure bindings, allowing the system to fetch the 
new distribution state where Python 3.13 and the compatible libraries can be 
unpacked simultaneously.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: ubuntu-release-upgrader-core 1:24.04.28
ProcVersionSignature: Ubuntu 6.17.0-35.35~24.04.1-generic 6.17.13
Uname: Linux 6.17.0-35-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: unknown
CrashDB: ubuntu
CurrentDesktop: KDE
Date: Sat Jun 20 18:17:28 2026
InstallationDate: Installed on 2026-03-09 (103 days ago)
InstallationMedia: Kubuntu 24.04.4 LTS "Noble Numbat" - Release amd64 (20260210)
PackageArchitecture: all
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.update-manager.release-upgrades: 2026-06-20T17:25:56.020081

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug dist-upgrade noble third-party-packages 
wayland-session

** Description changed:

  ### Problem Description
  The upgrade process from Kubuntu 24.04 LTS to 26.04 LTS via the official 
release upgrader tool is completely blocked due to an infinite dependency loop 
involving Python packages. The package manager keeps crucial core libraries 
back, while the release upgrader refuses to proceed until the system is fully 
up to date.
  
  ### Steps to Reproduce
  1. Log into a fresh or existing Kubuntu 24.04 LTS system.
  2. Run standard update commands: `sudo apt update && sudo apt upgrade`
  3. Notice that the following packages are kept back:
-    - `python3-gi`
-    - `python3-gi-cairo`
+    - `python3-gi`
+    - `python3-gi-cairo`
  4. Try to manually force the installation via `sudo apt install python3-gi`. 
This fails with the following unmet dependencies error:
-    `python3-gi : Depends: python3 (>= 3.13~) but 3.12.3-0ubuntu2.1 is to be 
installed`
+    `python3-gi : Depends: python3 (>= 3.13~) but 3.12.3-0ubuntu2.1 is to be 
installed`
  5. Attempt to proceed with the OS upgrade anyway using the development branch 
flag: `sudo do-release-upgrade -d`
  6. The process aborts immediately with the message:
-    `Please install all available updates for your release before upgrading.`
+    `Please install all available updates for your release before upgrading.`
  
  ### Actual Behavior
  The user falls into an unbreakable deadlock situation:
  - The `python3-gi` package on the server repository demands Python 3.13 
(which is native to 26.04).
  - The host system is locked to Python 3.12 (native to 24.04), causing APT to 
flag the packages as "kept back".
  - The `do-release-upgrade` tool enforces a strict pre-flight check that 
forbids execution if any packages are kept back.
  - Purging `python3-gi` to bypass the check is not a viable workaround as it 
acts as a base dependency for foundational system packages including 
`update-manager`, `software-properties-common`, `hplip`, and `apport`. 
Attempting to remove it threatens to strip away critical desktop utilities.
  
  ### Expected Behavior
  The `do-release-upgrade` tool should seamlessly recognize this cross-version 
Python dependency bottleneck. It should bypass the strict pre-flight check for 
these specific core infrastructure bindings, allowing the system to fetch the 
new distribution state where Python 3.13 and the compatible libraries can be 
unpacked simultaneously.
- Hãy thận trọng khi sử dụng mã.✅ Hướng dẫn thêm:Sau khi dán phần này, nếu 
trang web có hỏi thêm về phân loại lỗi, bạn có thể chọn tag liên quan đến 
ubuntu-release-upgrader hoặc apt.Bạn đã hoàn tất gửi báo cáo chưa? Khi quay trở 
lại với máy tính, bạn có cần tôi hướng dẫn cách tạo USB boot Kubuntu 26.04 để 
vượt qua lỗi này và trải nghiệm hệ điều hành mới luôn không?
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: ubuntu-release-upgrader-core 1:24.04.28
  ProcVersionSignature: Ubuntu 6.17.0-35.35~24.04.1-generic 6.17.13
  Uname: Linux 6.17.0-35-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.8
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CrashDB: ubuntu
  CurrentDesktop: KDE
  Date: Sat Jun 20 18:17:28 2026
  InstallationDate: Installed on 2026-03-09 (103 days ago)
  InstallationMedia: Kubuntu 24.04.4 LTS "Noble Numbat" - Release amd64 
(20260210)
  PackageArchitecture: all
  RebootRequiredPkgs: Error: path contained symlinks.
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.update-manager.release-upgrades: 
2026-06-20T17:25:56.020081

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2157695

Title:
  Upgrade from Kubuntu 24.04 LTS to 26.04 LTS blocked by infinite
  dependency loop (python3-gi kept back)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2157695/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to