Doesn't know about acpica-tools (acpidump, acpixtract)

Bug #1800330 reported by Jani Uusitalo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
acpica-unix (Ubuntu)
New
Undecided
Unassigned

Bug Description

When acpica-tools is not installed, running acpidump or acpixtract produces no suggestions (in either Bionic or Cosmic):

$ acpixtract
acpixtract: command not found
$ apt-cache policy acpitools-ca
N: Unable to locate package acpitools-ca
$ apt-cache policy acpica-tools
acpica-tools:
Installed: (none)
Candidate: 20180629-1
Version table:
20180629-1 500
500 http://archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages
$ sudo apt install acpica-tools
[sudo] password for jani:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.18.0-8 linux-headers-4.18.0-8-generic linux-image-4.18.0-8-generic linux-modules-4.18.0-8-generic
linux-modules-extra-4.18.0-8-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
acpica-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 851 kB of archives.
After this operation, 2782 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu cosmic/universe amd64 acpica-tools amd64 20180629-1 [851 kB]
Fetched 851 kB in 1s (1622 kB/s)
Selecting previously unselected package acpica-tools.
(Reading database ... 207563 files and directories currently installed.)
Preparing to unpack .../acpica-tools_20180629-1_amd64.deb ...
Unpacking acpica-tools (20180629-1) ...
Setting up acpica-tools (20180629-1) ...
update-alternatives: using /usr/bin/acpixtract-acpica to provide /usr/bin/acpixtract (acpixtract) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/acpixtract.1.gz because associated file /usr/share/man/man1/acpixtract-acpica.1 (of link group acpixtract) doesn't exist
update-alternatives: using /usr/bin/acpidump-acpica to provide /usr/bin/acpidump (acpidump) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/acpidump.1.gz because associated file /usr/share/man/man1/acpidump-acpica.1 (of link group acpidump) doesn't exist
Processing triggers for man-db (2.8.4-2) ...
$ acpidump
Could not open table file: /sys/firmware/acpi/tables/SSDT
Could not get ACPI tables, AE_ACCESS
$ acpixtract

Intel ACPI Component Architecture
ACPI Binary Table Extraction Utility version 20180629
Copyright (c) 2000 - 2018 Intel Corporation

Usage: acpixtract [option] <InputFile>
Options:
-a Extract all tables, not just DSDT/SSDT
-f Force extraction, even if there are errors
-l List table summaries, do not extract
-m Extract multiple DSDT/SSDTs to a single file
-s <signature> Extract all tables with <signature>
-v Display version information
-vd Display build date and time

Extract binary ACPI tables from text acpidump output
Default invocation extracts the DSDT and all SSDTs

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: command-not-found 18.10.0~pre1
ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12
Uname: Linux 4.18.0-11-generic x86_64
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 28 09:31:57 2018
InstallationDate: Installed on 2018-09-30 (27 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Beta amd64 (20180930)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fi_FI.UTF-8
 SHELL=/bin/bash
SourcePackage: command-not-found
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jani Uusitalo (uusijani) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

I believe this is because the package acpica-tools uses alternatives and the commands provided by the package actually have different names.

update-alternatives: using /usr/bin/acpixtract-acpica to provide /usr/bin/acpixtract (acpixtract) in auto mode
update-alternatives: using /usr/bin/acpidump-acpica to provide /usr/bin/acpidump (acpidump) in auto mode
(eoan-amd64)root@impulse:/home/bdmurray/source-trees/cpc_build_tools/human_scripts# dpkg -L acpica-tools
/.
/usr
/usr/bin
/usr/bin/acpibin
/usr/bin/acpidump-acpica
/usr/bin/acpiexec
/usr/bin/acpihelp
/usr/bin/acpinames
/usr/bin/acpisrc
/usr/bin/acpixtract-acpica
...

 $ acpidump-acpica

Command 'acpidump-acpica' not found, but can be installed with:

sudo apt install acpica-tools

Revision history for this message
Brian Murray (brian-murray) wrote :

The acpica-tools package can make a change which will allow command-not-found to recognize acpidump and acpixtract as a command. From command-not-found-extractor's README.md:

### Cnf-Extra-Commands

A list of comma separated commands to be added. This is useful when
update-alternatives is used but the expression is too complicated
for the extractor to parse it. The extra commands will be just
added to the "commands:" tag in the Commands file.

affects: command-not-found (Ubuntu) → acpica-unix (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.