我使用 apt 执行的任何操作都会运行“设置 razercfg”

我使用 apt 执行的任何操作都会运行“设置 razercfg”

我尝试使用 安装 razercfg sudo apt install razercfg,但没有成功,产生的错误是:

    sudo apt install razercfg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
razercfg is already the newest version (0.41+ds-1build1).
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-42 linux-headers-5.4.0-42-generic linux-image-5.4.0-42-generic linux-modules-5.4.0-42-generic linux-modules-extra-5.4.0-42-generic python3-click python3-colorama
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
3 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 razercfg (0.41+ds-1build1) ...
A dependency job for razerd.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript razerd, action "start" failed.
● razerd.service - Razer device state daemon
     Loaded: loaded (/lib/systemd/system/razerd.service; enabled; vendor preset: enabled)
     Active: inactive (dead)

Sep 07 20:11:54 Hamotron systemd[1]: Dependency failed for Razer device state daemon.
Sep 07 20:11:54 Hamotron systemd[1]: razerd.service: Job razerd.service/start failed with result 'dependency'.
Sep 07 20:18:11 Hamotron systemd[1]: Dependency failed for Razer device state daemon.
Sep 07 20:18:11 Hamotron systemd[1]: razerd.service: Job razerd.service/start failed with result 'dependency'.
Sep 07 20:20:31 Hamotron systemd[1]: Dependency failed for Razer device state daemon.
Sep 07 20:20:31 Hamotron systemd[1]: razerd.service: Job razerd.service/start failed with result 'dependency'.
dpkg: error processing package razercfg (--configure):
 installed razercfg package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of qrazercfg:
 qrazercfg depends on razercfg; however:
  Package razercfg is not configured yet.

dpkg: error processing package qrazercfg (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qrazercfg-applet:
 qrazercfg-applet depends on razercfg; however:
  Package razercfg is not configured yet.
 qrazercfg-applet depends on qrazercfg; however:
  Package qrazercfg is not configured yet.

dpkg: error processing package qrazercfg-applet (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous
 failure.
         Errors were encountered while processing:
 razercfg
 qrazercfg
 qrazercfg-applet
E: Sub-process /usr/bin/dpkg returned an error code (1)

我放弃了,并尝试安装其他软件包,但每次我使用 apt 时,它都会显示“正在设置 razercfg”,并产生相同的错误。这发生在:

sudo apt remove polychromatic
sudo apt install python3-distutils

和更多。

我在 Ubuntu 20.04.1 上

答案1

您处于razercfg非工作状态(已安装,未配置)。其他两个软件包依赖于正在工作的razercfg。这会使打包系统不满意/不一致,因此razercfg每次调用它时它都会尝试配置,但会失败,导致razercfg安装,未配置。

需要手动干预。有两种不同的方法可以解决问题:razercfg正确配置。或删除razercfg

重新配置:

sudo dpkg-reconfigure razercfg qrazercfg qrazercfg.applet

或者

从系统中删除:

sudo apt purge razercfg qrazercfg qrazercfg.applet

相关内容