蓝牙设备在 Kubuntu 20.04 中失败

蓝牙设备在 Kubuntu 20.04 中失败

我正在运行 Kubuntu 20.04,蓝牙出现问题。当我发出命令时蓝牙设备,我明白了

$ bluetoothctl devices
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0' from LD_PRELOAD cannot
be preloaded (wrong ELF class: ELFCLASS64): ignored.

这个问题之前已经有人注意到了,但是我在网上看到的解决方案都对我不起作用。例如:

pwa@HP-Pavilion-Laptop-17-ar0xx:~$ export
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ bluetoothctl devices ERROR: ld.so:
object '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0' from LD_PRELOAD
cannot be preloaded (wrong EL

N0rbert 请求的输出:

pwa@HP-Pavilion-Laptop-17-ar0xx:~$ arch
x86_64
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ uname -a
Linux HP-Pavilion-Laptop-17-ar0xx 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ file /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0: setuid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=63e14ded4f568438f8b629bea2461c117db8a5d0, stripped
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ apt-cache policy libgtk3-nocsd0
libgtk3-nocsd0:
  Installed: 3-1ubuntu1
  Candidate: 3-1ubuntu1
  Version table:
 *** 3-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

唉:

pwa@HP-Pavilion-Laptop-17-ar0xx:~$ sudo apt-get install --reinstall libgtk3-nocsd0
[sudo] password for pwa: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 82 not upgraded.
Need to get 13.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libgtk3-nocsd0 amd64 3-1ubuntu1 [13.8 kB]
Fetched 13.8 kB in 0s (129 kB/s)          
(Reading database ... 347628 files and directories currently installed.)
Preparing to unpack .../libgtk3-nocsd0_3-1ubuntu1_amd64.deb ...
Unpacking libgtk3-nocsd0:amd64 (3-1ubuntu1) over (3-1ubuntu1) ...
Setting up libgtk3-nocsd0:amd64 (3-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ bluetoothctl devices
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ arch
x86_64
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ uname -a
Linux HP-Pavilion-Laptop-17-ar0xx 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ file /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0: setuid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=63e14ded4f568438f8b629bea2461c117db8a5d0, stripped
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ apt-cache policy libgtk3-nocsd0
libgtk3-nocsd0:
  Installed: 3-1ubuntu1
  Candidate: 3-1ubuntu1
  Version table:
 *** 3-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ bluetoothctl devices
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ sudo apt-get install --reinstall libgtk3-nocsd0
[sudo] password for pwa: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 82 not upgraded.
Need to get 13.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libgtk3-nocsd0 amd64 3-1ubuntu1 [13.8 kB]
Fetched 13.8 kB in 0s (129 kB/s)          
(Reading database ... 347628 files and directories currently installed.)
Preparing to unpack .../libgtk3-nocsd0_3-1ubuntu1_amd64.deb ...
Unpacking libgtk3-nocsd0:amd64 (3-1ubuntu1) over (3-1ubuntu1) ...
Setting up libgtk3-nocsd0:amd64 (3-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ bluetoothctl devices
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ arch
x86_64
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ uname -a
Linux HP-Pavilion-Laptop-17-ar0xx 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ file /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0: setuid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=63e14ded4f568438f8b629bea2461c117db8a5d0, stripped
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ apt-cache policy libgtk3-nocsd0
libgtk3-nocsd0:
  Installed: 3-1ubuntu1
  Candidate: 3-1ubuntu1
  Version table:
 *** 3-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status
pwa@HP-Pavilion-Laptop-17-ar0xx:~$ bluetoothctl devices
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

答案1

可以通过以 root 身份运行 bluetoothctl(使用 sudo)来解决蓝牙问题的这一非常具体方面。不幸的是,这还不足以真正让蓝牙正常工作。如果您可以让蓝牙设备连接(而不仅仅是配对),那么您可能已经找到了解决方案的一半以上。

相关内容