Public bug reported:

sudo apt install click
[sudo] password for xxxxxx: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  gir1.2-click-0.4 gir1.2-gee-0.8 gir1.2-json-1.0 libclick-0.4-0 
python3-click-package
Suggested packages:
  click-reviewers-tools lomiri-app-launch-tools
Recommended packages:
  click-apparmor
The following NEW packages will be installed:
  click gir1.2-click-0.4 gir1.2-gee-0.8 gir1.2-json-1.0 libclick-0.4-0 
python3-click-package
0 upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
Need to get 159 kB of archives.
After this operation, 676 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu noble/universe amd64 libclick-0.4-0 
amd64 0.5.2-2ubuntu4 [65.5 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu noble/main amd64 gir1.2-gee-0.8 amd64 
0.20.6-1build2 [22.5 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu noble/main amd64 gir1.2-json-1.0 
amd64 1.8.0-2build2 [8,836 B]
Get:4 http://in.archive.ubuntu.com/ubuntu noble/universe amd64 gir1.2-click-0.4 
amd64 0.5.2-2ubuntu4 [8,262 B]
Get:5 http://in.archive.ubuntu.com/ubuntu noble/universe amd64 
python3-click-package all 0.5.2-2ubuntu4 [28.6 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu noble/universe amd64 click amd64 
0.5.2-2ubuntu4 [25.8 kB]
Fetched 159 kB in 2s (90.8 kB/s)
Selecting previously unselected package libclick-0.4-0:amd64.
(Reading database ... 175879 files and directories currently installed.)
Preparing to unpack .../0-libclick-0.4-0_0.5.2-2ubuntu4_amd64.deb ...
Unpacking libclick-0.4-0:amd64 (0.5.2-2ubuntu4) ...
Selecting previously unselected package gir1.2-gee-0.8:amd64.
Preparing to unpack .../1-gir1.2-gee-0.8_0.20.6-1build2_amd64.deb ...
Unpacking gir1.2-gee-0.8:amd64 (0.20.6-1build2) ...
Selecting previously unselected package gir1.2-json-1.0:amd64.
Preparing to unpack .../2-gir1.2-json-1.0_1.8.0-2build2_amd64.deb ...
Unpacking gir1.2-json-1.0:amd64 (1.8.0-2build2) ...
Selecting previously unselected package gir1.2-click-0.4:amd64.
Preparing to unpack .../3-gir1.2-click-0.4_0.5.2-2ubuntu4_amd64.deb ...
Unpacking gir1.2-click-0.4:amd64 (0.5.2-2ubuntu4) ...
Selecting previously unselected package python3-click-package.
Preparing to unpack .../4-python3-click-package_0.5.2-2ubuntu4_all.deb ...
Unpacking python3-click-package (0.5.2-2ubuntu4) ...
Selecting previously unselected package click.
Preparing to unpack .../5-click_0.5.2-2ubuntu4_amd64.deb ...
Unpacking click (0.5.2-2ubuntu4) ...
Setting up libclick-0.4-0:amd64 (0.5.2-2ubuntu4) ...
Setting up gir1.2-gee-0.8:amd64 (0.20.6-1build2) ...
Setting up gir1.2-json-1.0:amd64 (1.8.0-2build2) ...
Setting up gir1.2-click-0.4:amd64 (0.5.2-2ubuntu4) ...
Setting up python3-click-package (0.5.2-2ubuntu4) ...
Setting up click (0.5.2-2ubuntu4) ...
Failed to preset unit, unit click-user-hooks.service does not exist.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on 
click-user-hooks.service: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/click", line 110, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/bin/click", line 85, in main
    %s""") % commands.help_text())
             ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/click_package/commands/__init__.py", 
line 54, in help_text
    mod = load_command(command)
          ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/click_package/commands/__init__.py", 
line 46, in load_command
    return importlib.import_module("click_package.commands.%s" % command)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/click_package/commands/build.py", line 
28, in <module>
    from click_package.build import ClickBuildError, ClickBuilder
  File "/usr/lib/python3/dist-packages/click_package/build.py", line 53, in 
<module>
    from click_package.framework import (
  File "/usr/lib/python3/dist-packages/click_package/framework.py", line 27, in 
<module>
    import click_package.paths
  File "/usr/lib/python3/dist-packages/click_package/paths.py", line 18, in 
<module>
    __multiarch = subprocess.run(['dpkg-architecture', '-q', 
'DEB_HOST_MULTIARCH'], capture_output=True, check=True).stdout
                  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
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
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for shared-mime-info (2.4-4) ...
Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
Errors were encountered while processing:
 click
E: 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.11.0-26.26~24.04.1-generic 6.11.11
Uname: Linux 6.11.0-26-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3.7
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Jun 20 13:04:50 2025
ErrorMessage: installed click package post-installation script subprocess 
returned error exit status 1
InstallationDate: Installed on 2025-05-22 (29 days ago)
InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 (20250215)
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 
3.12.3-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.22.6ubuntu6.1
 apt  2.8.3
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)

** Affects: click (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package noble

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

Title:
  package click 0.5.2-2ubuntu4 failed to install/upgrade: installed
  click package post-installation script subprocess returned error exit
  status 1

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


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

Reply via email to