** Description changed:

+ Impact
+ ------
+ sudo apt install click does not fully install in a default Ubuntu install. 
This requires manual intervention to fix.
+ 
+ FileNotFoundError: [Errno 2] No such file or directory: 'dpkg-architecture'
+ dpkg: error processing package click (--configure):
+  installed click package post-installation script subprocess returned error 
exit status 1
+ 
+ The error is that the package requires dpkg-architecture but that is
+ only included in dpkg-dev. dpkg-dev has Recommends: build-essential so
+ having click install dpkg-dev by default isn't ideal for many Ubuntu
+ users.
+ 
+ Instead we can apply the same fix that was applied in Debian and Ubuntu
+ in May 2024 to the problem (LP: #2058769) that 0.5.2-2ubuntu1, ubuntu2,
+ ubuntu3, and ubuntu4 attempted to fix: python3-click needs to be
+ Architecture: any.
+ 
+ Test Plan
+ ---------
+ From Ubuntu Desktop 24.04 LTS, run sudo apt install click
+ 
+ The install should complete successfully without any major errors.
+ 
+ Due to the nature of this bug, a broken system can't be directly updated
+ to fix the bug. Instead you'll need to do #1 and then when the new click
+ packages are available, you can install click normally.
+ 
+ Where Problems Could Occur
+ -------------------------
+ This is the minimal fix for this issue. It removes a broken patch that was 
never accepted in Debian or upstream and fixes the package architecture for 
python3-click-package. The bug is serious and the fix clearly improves the 
package.
+ 
+ Other Info
+ ----------
+ If you are affected by this bug you can either
+ 1) Run this command in a terminal to uninstall click
+ 
+ sudo apt -f install
+ 
+ 2) Or run this command to allow click to install successfully.
+ 
+ sudo apt --no-install-recommends dpkg-dev
+ 
+ click might not be very useful on its own in Ubuntu outside of Ubuntu
+ Touch but lomiri-system-settings depends on it and people may like to
+ try Lomiri on Ubuntu 24.04 LTS.
+ 
+ Original Bug Report
+ -------------------
+ 
  sub-process  /usr/bin/dpkg returned an error code (1)
  
  ProblemType: Package
  DistroRelease: Ubuntu 24.04
  Package: click 0.5.2-2ubuntu4
  ProcVersionSignature: Ubuntu 6.8.0-35.35-generic 6.8.4
  Uname: Linux 6.8.0-35-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Sun Jun 16 14:21:48 2024
  ErrorMessage: installed click package post-installation script subprocess 
returned error exit status 1
  InstallationDate: Installed on 2024-05-05 (42 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 
3.12.3-0ubuntu1
  PythonDetails: N/A
  RelatedPackageVersions:
-  dpkg 1.22.6ubuntu6
-  apt  2.7.14build2
+  dpkg 1.22.6ubuntu6
+  apt  2.7.14build2
  SourcePackage: click
  Title: package click 0.5.2-2ubuntu4 failed to install/upgrade: installed 
click package post-installation script subprocess returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

** Changed in: click (Ubuntu Noble)
       Status: Triaged => In Progress

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

Title:
  click 0.5.2-2ubuntu4 fails to install on Ubuntu 24.04 LTS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/2069523/+subscriptions


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

Reply via email to