注意:这个问题与我遇到的问题无关dbus
,如下所述。
我尝试qpaeq
安装后运行。它要求dbus
. 其他帖子说要安装python-dbus
。这没有帮助。也没有dbus-python
,这就是所qpaeq
要求的。该怎么办?文字记录如下:
$ sudo apt-get install pulseaudio-equalizer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-dbus.mainloop.pyqt5
The following NEW packages will be installed:
pulseaudio-equalizer python3-dbus.mainloop.pyqt5
0 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
Need to get 50.7 kB of archives.
After this operation, 281 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-dbus.mainloop.pyqt5 amd64 5.14.1+dfsg-3build1 [16.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 pulseaudio-equalizer amd64 1:13.99.1-1ubuntu3.7 [34.0 kB]
Fetched 50.7 kB in 0s (281 kB/s)
Selecting previously unselected package python3-dbus.mainloop.pyqt5.
(Reading database ... 475713 files and directories currently installed.)
Preparing to unpack .../python3-dbus.mainloop.pyqt5_5.14.1+dfsg-3build1_amd64.deb ...
Unpacking python3-dbus.mainloop.pyqt5 (5.14.1+dfsg-3build1) ...
Selecting previously unselected package pulseaudio-equalizer.
Preparing to unpack .../pulseaudio-equalizer_1%3a13.99.1-1ubuntu3.7_amd64.deb ...
Unpacking pulseaudio-equalizer (1:13.99.1-1ubuntu3.7) ...
Setting up python3-dbus.mainloop.pyqt5 (5.14.1+dfsg-3build1) ...
Setting up pulseaudio-equalizer (1:13.99.1-1ubuntu3.7) ...
$ qpaeq
There was an error importing needed libraries
Make sure you have qt5 and dbus-python installed
The error that occurred was:
No module named 'dbus'
$ sudo apt-get install python-dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dbus is already the newest version (1.2.16-1build1).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
$ qpaeq
There was an error importing needed libraries
Make sure you have qt5 and dbus-python installed
The error that occurred was:
No module named 'dbus'
$ sudo apt-get install dbus-python
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dbus-python
Run Code Online (Sandbox Code Playgroud)
如果您收到此错误,您可能需要几个模块,如上面的评论中所述。如果您希望更改是永久性的,则需要从 加载模块/etc/pulse/default.pa
。将以下行添加到文件底部:
load-module module-equalizer-sink
load-module module-dbus-protocol
Run Code Online (Sandbox Code Playgroud)
您可以使用 触发更改立即生效pulseaudio -k
。