安装 lm-sensors 时出错

安装 lm-sensors 时出错

在 ubuntu 中安装lm-sensors(检查 CPU 温度)包时,我收到此错误消息:

sirjan@sirjan-MY32BBZ7A:~$ sudo apt-get install lm-sensors
sudo apt-get --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 292 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up lm-sensors (1:3.6.0-2ubuntu1) ...
Illegal instruction (core dumped)
dpkg: error processing package lm-sensors (--configure):
 installed lm-sensors package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 lm-sensors
^C
sirjan@sirjan-MY32BBZ7A:~$ 

请注意,我必须按下^C退出,apt-get否则它只会挂在那里。这个错误消息是什么意思?我该如何解决?我正在使用 Ubuntu 20.04(Focal Fossa)。

答案1

您可以前往Synaptic 软件包管理器并手动删除然后重新安装 lm-sensors 包(以及任何依赖项)。
还请检查sudo dpkg --configure -a

答案2

重新启动计算机,问题解决。

相关内容