AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-62967

Falc's questions

Martin Hope
Falc
Asked: 2020-08-27 00:30:01 +0800 CST

无法连接蓝牙耳机[包含大量终端输出以帮助调试]

  • 0

我有 Sennheiser pxc550-ii 蓝牙耳机,我想与我的 Ubuntu 20.04 桌面配对,并让 aptx-hd 和 aptx-ll 编解码器正常工作。值得注意的是,我已经安装了这个ppa。还值得注意的是,我可以很好地将 bt 与我的 bt 扬声器配对。

我试过使用默认的 bloothtooth 工具以及 blueman-manager。在两者中,我都可以在可用蓝牙设备列表中看到耳机,但两者都无法配对。

然后我转向遵循本指南,他们建议的命令的输出是:

第一个命令:

jam@jam-ncase:~$ lsmod | grep bluetooth
bluetooth             454656  49 btrtl,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic           16384  2 bluetooth
rfkill                 28672  11 asus_wmi,bluetooth,cfg80211
crc16                  16384  2 bluetooth,ext4

第二条命令:

jam@jam-ncase:~$ dmesg | grep Bluetooth
[    2.285152] Bluetooth: Core ver 2.22
[    2.285162] Bluetooth: HCI device and connection manager initialized
[    2.285165] Bluetooth: HCI socket layer initialized
[    2.285166] Bluetooth: L2CAP socket layer initialized
[    2.285168] Bluetooth: SCO socket layer initialized
[    2.302897] Bluetooth: hci0: read Intel version: 3707100180012d0d2a
[    2.302898] Bluetooth: hci0: Intel device is already patched. patch num: 2a
[    2.354229] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.354230] Bluetooth: BNEP filters: protocol multicast
[    2.354232] Bluetooth: BNEP socket layer initialized
[    6.314639] Bluetooth: RFCOMM TTY layer initialized
[    6.314643] Bluetooth: RFCOMM socket layer initialized
[    6.314646] Bluetooth: RFCOMM ver 1.11

第三条命令:

● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-08-26 09:01:38 BST; 5min ago
       Docs: man:bluetoothd(8)
   Main PID: 6075 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 19076)
     Memory: 1.9M
     CGroup: /system.slice/bluetooth.service
             └─6075 /usr/lib/bluetooth/bluetoothd

Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Bluetooth management interface 1.16 initialized
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/VENDOR/LDAC
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/VENDOR/APTXHD
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/VENDOR/APTX
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/AAC
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/SBC
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/VENDOR/APTXHD
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/VENDOR/APTX
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/AAC
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/SBC

第四:

jam@jam-ncase:~$ rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

我也注意到了这个错误信息:

jam@jam-ncase:~$ pactl load-module module-bluetooth-discover
Failure: Module initialisation failed

我尝试配对/连接时的终端输出可以在这里找到。从该文件中突出的一行是这一行:

> HCI Event: Disconnect Complete (0x05) plen 4             #56 [hci0] 25.099314
        Status: Success (0x00)
        Handle: 256
        Reason: Remote Device Terminated due to Power Off (0x15)

不过我的耳机肯定是开机的。有人可以建议我应该如何尝试解决这个问题吗?

pulseaudio bluetooth bluetooth-speaker
  • 1 个回答
  • 222 Views
Martin Hope
Falc
Asked: 2018-09-21 13:18:49 +0800 CST

为我不再安装的应用程序卸载 flatpak 运行时是否安全?

  • 3
user@ncase:~$ flatpak list
Ref                                                  Options       
org.DolphinEmu.dolphin-emu/x86_64/stable             system,current
org.freedesktop.Platform.GL.nvidia-396-54/x86_64/1.4 system,runtime
org.freedesktop.Platform.ffmpeg/x86_64/1.6           system,runtime
org.freedesktop.Platform/x86_64/1.6                  system,runtime
org.gtk.Gtk3theme.Adapta-Eta/x86_64/3.22             system,runtime
org.kde.Platform/x86_64/5.11                         system,runtime
org.kde.Platform/x86_64/5.9                          system,runtime
user@ncase:~$ flatpak list --app
Ref                                      Options       
org.DolphinEmu.dolphin-emu/x86_64/stable system,current
user@ncase:~$ flatpak uninstall 

如您所见,我只安装了 1 个 flatpak 应用程序,但我安装了很多 flatpak 运行时。它们可以安全卸载,还是仍在以某种方式使用?

flatpak
  • 2 个回答
  • 2735 Views
Martin Hope
Falc
Asked: 2018-08-26 10:52:44 +0800 CST

无法在 Ubuntu 18.04 中从 ppa 安装 Nvidia-396

  • 5

我已启用 Nvidia 图形驱动程序 ppa 并安装了 390 驱动程序。

我正在尝试升级到 396 驱动程序,但遇到了困难。

我安装 nvidia 图形驱动程序的常规方法是安装名为“nvidia-390”的软件包。我注意到的第一件事是没有一个名为“nvidia-396”的包。但是有一个名为“nvidia-driver-396”的包。当我尝试安装它时,我收到以下错误消息。

jamie@jamie-ncase:~$ sudo apt install nvidia-driver-396
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 nvidia-driver-396 : Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-decode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-encode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-cfg1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-fbc1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Recommends: libnvidia-decode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
                     Recommends: libnvidia-encode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
                     Recommends: libnvidia-ifr1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
                     Recommends: libnvidia-fbc1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
                     Recommends: libnvidia-gl-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.

问题是我很确定我没有损坏的软件包,除非我尝试安装这个新驱动程序:我可以运行 'sudo apt update' 和 'sudo apt dist-upgrade' 没问题,两者都运行良好。

drivers nvidia
  • 2 个回答
  • 8522 Views
Martin Hope
Falc
Asked: 2018-03-30 13:33:30 +0800 CST

如何自动挂载 LUKS 分区?

  • 6

如何以安全的方式自动挂载 LUKS 加密分区?理想情况下,当我登录时(因此我的密码在登录屏幕上),或者一旦我进入桌面让 Ubuntu 询问我的密码,然后自动挂载分区?

我的 fdisk 的内容如下

加密分区是/dev/sdb7,我的根分区和主分区是/dev/sdb5(未加密)。

Disk /dev/loop0: 14 MiB, 14647296 bytes, 28608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 81.7 MiB, 85692416 bytes, 167368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0006d9d9

Device     Boot     Start        End    Sectors   Size Id Type
/dev/sda1            2048  524646399  524644352 250.2G  7 HPFS/NTFS/exFAT
/dev/sda2  *    524646400 1953523711 1428877312 681.4G 83 Linux


Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1ffae910

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1       214892542 976773119 761880578 363.3G  5 Extended
/dev/sdb2  *         2048   2150399   2148352     1G 83 Linux
/dev/sdb5       214892544 257558559  42666016  20.4G 83 Linux
/dev/sdb6       300716032 318294015  17577984   8.4G 82 Linux swap / Solaris
/dev/sdb7       318296064 976773119 658477056   314G 83 Linux

Partition table entries are not in disk order.
encryption partitioning mount luks
  • 2 个回答
  • 6800 Views
Martin Hope
Falc
Asked: 2016-07-09 10:31:11 +0800 CST

Java 文件不会运行

  • 0

所以我使用这种方法通过 PPA 安装了 Java 8:http: //tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/

它似乎正在工作:

jamie@jamie-ncase:/media/fa7e62a0-92d8-4af6-86d9-bdf5a38e786a/Steam/steamapps/common/Medieval II Total War/share/data/mods/ebii$ java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
jamie@jamie-ncase:/media/fa7e62a0-92d8-4af6-86d9-bdf5a38e786a/Steam/steamapps/common/Medieval II Total War/share/data/mods/ebii$ 

我试图通过双击它来启动我的 java 文件(wf_switcher.jar),但没有任何反应,所以我试图通过终端打开文件以查看出现了什么问题。

当我尝试运行 java .jar 文件时,出现此错误:

jamie@jamie-ncase:/media/fa7e62a0-92d8-4af6-86d9-bdf5a38e786a/Steam/steamapps/common/Medieval II Total War/share/data/mods/ebii$ java wf_switcher.jar
Error: Could not find or load main class wf_switcher.jar
jamie@jamie-ncase:/media/fa7e62a0-92d8-4af6-86d9-bdf5a38e786a/Steam/steamapps/common/Medieval II Total War/share/data/mods/ebii$ javac wf_switcher.jar
error: Class names, 'wf_switcher.jar', are only accepted if annotation processing is explicitly requested
1 error

而且我不知道为什么它不起作用。任何人都可以帮忙吗?

command-line
  • 1 个回答
  • 455 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve