I get this error when I install acpi-call-dkms - linux

$ sudo apt install acpi-call-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
acpi-call-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/13.6 kB of archives.
After this operation, 48.1 kB of additional disk space will be used.
Selecting previously unselected package acpi-call-dkms.
(Reading database ... 395855 files and directories currently installed.)
Preparing to unpack .../acpi-call-dkms_1.1.0-5_all.deb ...
Unpacking acpi-call-dkms (1.1.0-5) ...
Setting up acpi-call-dkms (1.1.0-5) ...
Loading new acpi-call-1.1.0 DKMS files...
Building for 5.6.0-trunk-amd64
Building initial module for 5.6.0-trunk-amd64
Error! Bad return status for module build on kernel: 5.6.0-trunk-amd64 (x86_64)
Consult /var/lib/dkms/acpi-call/1.1.0/build/make.log for more information.
dpkg: error processing package acpi-call-dkms (--configure):
installed acpi-call-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
acpi-call-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
These are the contents of the the /var/lib/dkms/acpi-call/1.1.0/build/make.log
DKMS make.log for acpi-call-1.1.0 for kernel 5.6.0-trunk-amd64 (x86_64)
Thu 28 May 2020 06:26:56 PM IST
make: Entering directory '/usr/src/linux-headers-5.6.0-trunk-amd64'
AR /var/lib/dkms/acpi-call/1.1.0/build/built-in.a
CC [M] /var/lib/dkms/acpi-call/1.1.0/build/acpi_call.o
/var/lib/dkms/acpi-call/1.1.0/build/acpi_call.c: In function ‘init_acpi_call’:
/var/lib/dkms/acpi-call/1.1.0/build/acpi_call.c:356:53: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
&proc_acpi_operations);
^~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/acpi-call/1.1.0/build/acpi_call.c:6:
/usr/src/linux-headers-5.6.0-trunk-common/include/linux/proc_fs.h:64:24: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
^~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-5.6.0-trunk-common/scripts/Makefile.build:273: /var/lib/dkms/acpi-call/1.1.0/build/acpi_call.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.6.0-trunk-common/Makefile:1696: /var/lib/dkms/acpi-call/1.1.0/build] Error 2
make: *** [/usr/src/linux-headers-5.6.0-trunk-common/Makefile:180: sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.6.0-trunk-amd64'
I use Thinkpad X1 Extreme. I try to install this package/software to set battery thresolds with TLP. Thanks for helping!

Kernel ≥ 5.6 needs at least package version 1.1.0-6 (Debian unstable or Ubuntu 20.10) which contains the necessary patch.
https://linrunner.de/tlp/faq/battery.html#installation-of-package-acpi-call-dkms-failed

Related

File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist

I am going to install dcap on my vm with kernel : Linux version 5.15.0-1029-azure (buildd#lcy02-amd64-076) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #36~20.04.1-Ubuntu SMP Tue Dec 6 17:00:26 UTC 2022 I tried the command sudo apt-get install libsgx-dcap-quote-verify-dev but I get error :
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsgx-dcap-quote-verify-dev is already the newest version (1.15.100.3-focal1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-headers-5.15.0-1029-azure (5.15.0-1029.36~20.04.1) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 5.15.0-1029-azure
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist.
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
dpkg: error processing package linux-headers-5.15.0-1029-azure (--configure):
installed linux-headers-5.15.0-1029-azure package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.15.0-1029-azure (5.15.0-1029.36~20.04.1) ...
Setting up linux-headers-5.4.0-135-generic (5.4.0-135.152) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-135-generic
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist.
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
dpkg: error processing package linux-headers-5.4.0-135-generic (--configure):
installed linux-headers-5.4.0-135-generic package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-azure:
linux-headers-azure depends on linux-headers-5.15.0-1029-azure; however:
Package linux-headers-5.15.0-1029-azure is not configured yet.
dpkg: error processing package linux-headers-azure (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-azure:No apport report written because the error message indicates its a followup error from a previous failure.
linux-azure depends on linux-headers-azure (= 5.15.0.1029.36~20.04.19); however:
Package linux-headers-azure is not configured yet.
dpkg: error processing package linux-azure (--configure):
dependency problems - leaving unconfigured
Processing triggers for linux-image-5.15.0-1029-azure (5.15.0-1029.36~20.04.1) ...No apport report written because MaxReports is reached already
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.15.0-1029-azure
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist.
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error processing package linux-image-5.15.0-1029-azure (--configure):
installed linux-image-5.15.0-1029-azure package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-headers-5.15.0-1029-azure
linux-headers-5.4.0-135-generic
linux-headers-azure
linux-azure
linux-image-5.15.0-1029-azure
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think the main error comes from /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist. I have no idea why this error ocuurs do you have any solution for it?

Cygwin -- installing `tcl-devel` packages does not provide header files

I have some makefile that is used to compile a program. During compilation I get an error:
In file included from kernel/driver.cc:20:
./kernel/yosys.h:81:12: fatal error: tcl.h: No such file or directory
81 | # include <tcl.h>
| ^~~~~~~
compilation terminated.
make: *** [Makefile:696: kernel/driver.o] Error 1
Then I rerun Cygwin setup application and install new package tcl-devel. I restart the Cygwin terminal and try again. The same error pops up. I don't understand! Why aren't headers found?
My tcl and tcl-devel are both of version 8.6.11-1.

Error while trying to install Node on Ubuntu

I am new to ubuntu and programming. I was trying to install nodejs.
I ran
sudo apt-get install -y nodejs
in the terminal in ubuntu. I got missing firmware warnings. I also got an error of no space left on device. I tried reading up on the error and tried manually removing old kernel versions. But I am still getting the same error. I have no idea how I should approach this issue. Any guidance would be appreciated.
Below is the terminal after I ran the command.
dell#dell:~$ sudo apt-get install -y nodejs
[sudo] password for dell:
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (10.14.2-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 257 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.157.20) ...
update-initramfs: Generating /boot/initrd.img-4.18.1
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin
for module i915
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.18.1 with 1.
dpkg: error processing package linux-firmware (--configure):
subprocess installed post-installation script returned error exit
status 1
No apport report written because the error message indicates its a
followup error from a previous failure.
dpkg: dependency problems prevent
configuration of linux-image-generic-hwe-16.04:
linux-image-generic-hwe-16.04 depends on linux-firmware; however:
Package linux-firmware is not configured yet.
dpkg: error processing package linux-image-generic-hwe-16.04 (--
configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-
hwe-16.04:
linux-generic-hwe-16.04 depends on linux-image-generic-hwe-16.04 (=
4.15.0.42.63); however:
Package linux-image-generic-hwe-16.04 is not configured yet.
dpkg: error processing package linux-generic-hwe-16.04 (--
configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
generic-hwe-16.04:
linux-signed-generic-hwe-16.04 depends on linux-generic-hwe-16.04;
however:
Package linux-generic-hwe-16.04 is not configured yet.
dpkg: error processing package linux-signed-generic-hwe-16.04 (--
configure):
dependency problems - leaving unconfigured
PrNo apport report written because the error message indicates its a
followup error from a previous failure.
No apport report written because MaxReports
is reached already
ocessing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.18.1
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin
for module i915
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.18.1 with 1.
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit
status 1
No apport report written because MaxReports is reached already
Errors
were encountered while processing:
linux-firmware
linux-image-generic-hwe-16.04
linux-generic-hwe-16.04
linux-signed-generic-hwe-16.04
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
run this :
node -v if it displays a version, then it means you already have the latest version of node installed. Reason is this from your logs:
nodejs is already the newest version (10.14.2-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 257 not upgraded.
5 not fully installed or removed.
Your logging says you are low on disk space:
gzip: stdout: No space left on device
Try to delete some files and try again
You can try the command
df -h
to list your free space on your partitions

Can't install the caret package in R (in my Linux machine)

I am facing the following errors while trying to install the caret package in R.
g++: error: /tmp/Rtmp2Tos7n/R.INSTALL2e6e30153a74/nloptr/nlopt-2.4.2/lib/libnlopt_cxx.a:
No such file or directory make: *** [nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/nloptr’
Warning in install.packages :
installation of package ‘nloptr’ had non-zero exit status
ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
* removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/lme4’
Warning in install.packages :
installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/pbkrtest’
Warning in install.packages :
installation of package ‘pbkrtest’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘BradleyTerry2’
* removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/BradleyTerry2’
Warning in install.packages :
installation of package ‘BradleyTerry2’ had non-zero exit status
ERROR: dependency ‘pbkrtest’ is not available for package ‘car’
* removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/car’
Warning in install.packages :
installation of package ‘car’ had non-zero exit status
ERROR: dependencies ‘car’, ‘BradleyTerry2’ are not available for package ‘caret’
* removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/caret’
Warning in install.packages :
installation of package ‘caret’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpG9dYqn/downloaded_packages’
I looked into this other question that had a similar problem
Dependency issue while installing caret package in R
The solution for this problem was to install each of the dependencies first, but they all had the same error message. For example:
>install.packages('nloptr')
g++: error: /tmp/RtmpgEn54A/R.INSTALL7015350f0d03/nloptr/nlopt-2.4.2/lib/libnlopt_cxx.a: No such file or directory
make: *** [nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/nloptr’
Warning in install.packages :
installation of package ‘nloptr’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpG9dYqn/downloaded_packages’
I also tried changing the repos ie. install.packages('caret', repos='http://cran.rstudio.com/') but it dint work either.
My session info is given below:
> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-suse-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8
[5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=en_GB.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.1.2
I recently encountered the problem with nlopt as well. It was easily solved by installing nlopt-devel and its associated dependencies from YaST (or your preferred package manager).
I was hoping to add a comment first. On Jan 28, 2015, there was an addition to the nloptr package in github that possibly broke the compilation. I used a workaround by installing from an older version with the command
install.packages("http://cran.r-project.org/src/contrib/Archive/nloptr/nloptr_1.0.0.tar.gz",
repos=NULL, type="source")
As mentioned in this R help forum:
http://r.789695.n4.nabble.com/can-t-install-rugarch-and-nloptr-packages-in-R-3-01-opensuse-linux-td4669649.html
add the line to the src/Makevars file
mv .libs lib; \
between
make install; \
ls | grep -v ^include$$ | grep -v ^lib$$ | xargs rm -rf; \
This will remove the compilation error and you would be able to install nloptr package. I have tested this for nloptr_1.0.0.tar.gz .
I solve this issue by installing first "car" from synaptic (use filter with "cran-car").
And then I install "caret" with rstudio but I guess it will work also for R.
Hope it helps,
Regards

Can't remove resin web server

From the day i installed resin in my ubuntu,i couldn't b able install any packages nor i could be able to remove it.I'm getting the similar error in both the cases
$sudo apt-get remove resin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
resin
0 upgraded, 0 newly installed, 1 to remove and 19 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 259061 files and directories currently installed.)
Removing resin ...
Removing any system startup links for /etc/init.d/resin ...
/etc/rc0.d/K10resin
/etc/rc1.d/K10resin
/etc/rc2.d/S90resin
/etc/rc3.d/S90resin
/etc/rc4.d/S90resin
/etc/rc5.d/S90resin
/etc/rc6.d/K10resin
/usr/sbin/invoke-rc.d: 446: /etc/init.d/resin: not found
invoke-rc.d: initscript resin, action "stop" failed.
dpkg: error processing resin (--remove):
subprocess installed pre-removal script returned error exit status 127
/usr/sbin/invoke-rc.d: 446: /etc/init.d/resin: not found
invoke-rc.d: initscript resin, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
resin
E: Sub-process /usr/bin/dpkg returned an error code (1)
Not sure if you can actually remove the Web Server but you can "not use it". I read somewhere that you can use Resin with Apache or other Web Server.
Have a look at this thread on the Ubuntu forums; it appears to match the question you're asking. Try the answer contained there and see if that fixes your issue.

Resources