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-1887042

Joshua E. Vines's questions

Martin Hope
Joshua E. Vines
Asked: 2024-03-09 06:57:41 +0800 CST

在 Debian 12 Bookworm 上安装 VirtualBox 时出现错误

  • 5

我有一台蓝天 PD70SND-G,刚从中国运来。安装了 Debian 12 Bookworm。我正在尝试安装和使用 VirtualBox。我需要访问 VirtualBox 计算机上的数据。

在添加到 /etc/apt/sources.list 后,我​​尝试从官方 Debian 存储库进行安装,但出现依赖错误(见下文)。因此,我访问 VirtualBox.org 下载了 Debian 12 的软件包文件并安装了它。VirtualBox Manager 似乎运行良好,但当我尝试启动计算机时,出现有关未安装内核驱动程序的错误(见下文)。以及“未签名”内核模块的错误。MOK 签名文件是在让 NVIDIA GPU 在激活安全启动的情况下工作时创建的。

该机器是Ubuntu 22.04,在Windows 10主机上创建。

请帮忙。

关于系统:

Info Center -> About this System:

Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5 KDE
Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-17-amd64 (64-bit)
Graphics Platform: X11
Processors: 32 × Intel® Core™ i9-14900HX
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: Notebook
Product Name: > PD5x_7xSNC_SND_SNE
System Version: Not Applicable
$ neofetch
       _,met$$$$$gg.          user@Computer-Name 
    ,g$$$$$$$$$$$$$$$P.       ------------------------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) x86_64 
 ,$$P'              `$$$.     Host: PD5x_7xSNC_SND_SNE 
',$$P       ,ggs.     `$$b:   Kernel: 6.1.0-18-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 7 mins 
 $$P      d$'     ,    $$P    Packages: 2984 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15 
 $$;      Y$b._   _,d$P'      Resolution: 1920x1080 
 Y$$.    `.`"Y$$$$P"'         DE: Plasma 5.27.5 
 `$$b      "-.__              WM: KWin 
  `Y$$                        Theme: [Plasma], Breeze [GTK2/3] 
   `Y$$.                      Icons: [Plasma], breeze [GTK2/3] 
     `$$b.                    Terminal: konsole 
       `Y$$b.                 CPU: Intel i9-14900HX (32) @ 2.200GHz 
          `"Y$b._             GPU: NVIDIA GeForce RTX 4060 Max-Q / Mobile 
              `"""            GPU: Intel Raptor Lake-S UHD Graphics 
                              Memory: 2373MiB / 64000MiB 

尝试从官方 Debian 12 存储库安装 VirtualBox:

$ sudo apt install fasttrack-archive-keyring
Append to /etc/apt/sources.list:
    deb https://fasttrack.debian.net/debian-fasttrack/ bullseye-fasttrack main contrib 
    deb https://fasttrack.debian.net/debian-fasttrack/ bullseye-backports-staging main contrib

$ sudo apt update
$ aptitude search virtualbox
p   boinc-virtualbox                                     - metapackage for virtualbox-savvy projects                     
p   virtualbox                                           - x86 virtualization solution - base binaries                   
p   virtualbox-dbgsym                                    - debug symbols for virtualbox                                  
p   virtualbox-dkms                                      - x86 virtualization solution - kernel module sources for dkms  
p   virtualbox-ext-pack                                  - extra capabilities for VirtualBox, downloader.                
p   virtualbox-guest-additions-iso                       - guest additions iso image for VirtualBox                      
v   virtualbox-guest-modules                             -                                                               
p   virtualbox-guest-utils                               - x86 virtualization solution - non-X11 guest utilities         
p   virtualbox-guest-utils-dbgsym                        - debug symbols for virtualbox-guest-utils                      
p   virtualbox-guest-x11                                 - x86 virtualization solution - X11 guest utilities             
p   virtualbox-guest-x11-dbgsym                          - debug symbols for virtualbox-guest-x11                        
v   virtualbox-modules                                   -                                                               
p   virtualbox-qt                                        - x86 virtualization solution - Qt based user interface         
p   virtualbox-qt-dbgsym                                 - debug symbols for virtualbox-qt                               
p   virtualbox-source                                    - x86 virtualization solution - kernel module source
$ sudo apt install virtualbox
Reading package lists... Done
Building dependency tree... Done
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:
 virtualbox : Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
              Depends: python3.9 but it is not installable
              Depends: libgsoap-2.8.104 but it is not installable
              Depends: libssl1.1 (>= 1.1.1) but it is not installable
              Depends: libvpx6 (>= 1.6.0) but it is not installable
              Recommends: virtualbox-qt (= 7.0.12-dfsg-1~fto11+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

尝试从下载的存储库文件安装 VirtualBox:

$ sudo apt install .../virtualbox-7.0_7.0.14-161095~Debian~bookworm_amd64.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'virtualbox-7.0' instead of '.../virtualbox-7.0_7.0.14-161095~Debian~bookworm_amd64.deb'
Recommended packages:
  linux-image
The following NEW packages will be installed:
  virtualbox-7.0
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/92.4 MB of archives.
After this operation, 218 MB of additional disk space will be used.
Get:1 .../virtualbox-7.0_7.0.14-161095~Debian~bookworm_amd64.deb virtualbox-7.0 amd64 7.0.14-161095~Debian~bookworm [92.4 MB]
Preconfiguring packages ...
Selecting previously unselected package virtualbox-7.0.
(Reading database ... 343483 files and directories currently installed.)
Preparing to unpack .../virtualbox-7.0_7.0.14-161095~Debian~bookworm_amd64.deb ...
Unpacking virtualbox-7.0 (7.0.14-161095~Debian~bookworm) ...
Setting up virtualbox-7.0 (7.0.14-161095~Debian~bookworm) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
vboxdrv.sh: failed: Unable to sign vboxdrv.ko.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1) ...
Processing triggers for shared-mime-info (2.2-1) ...
Processing triggers for mailcap (3.70+nmu1) ...
N: Download is performed unsandboxed as root as file '.../virtualbox-7.0_7.0.14-161095~Debian~bookworm_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

通知中心记录的错误消息:

VM Name: Ubuntu 22.04

The virtual machine 'Ubuntu 22.04' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code:
NS_ERROR_FAILURE (0X80004005)
Component:
MachineWrap
Interface:
IMachine {300763af-5d6b-46e6-aa96-273eac15538a}

弹出窗口中的错误消息:

VirtualBox - Error in suplibOsInit

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
‘/sbin/vboxconfig’
as root.

If you system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: sublibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

运行给出的命令的结果:

$ sudo /sbin/vboxconfig 
vboxdrv.sh: Stopping VirtualBox services. 
vboxdrv.sh: Starting VirtualBox services. 
vboxdrv.sh: Building VirtualBox kernel modules. 
vboxdrv.sh: Signing VirtualBox kernel modules. 
vboxdrv.sh: failed: Unable to sign vboxdrv.ko. 
 
There were problems setting up VirtualBox.  To re-start the set-up process, run 
  /sbin/vboxconfig 
as root.  If your system is using EFI Secure Boot you may need to sign the 
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load 
them. Please see your Linux system's documentation for more information. 

脚本:sign-virtualbox

#!/bin/bash
for modfile in $(dirname $(modinfo -n vboxdrv))/*.ko; do
        echo "Signing $modfile"
        /usr/lib/linux-kbuild-6.1/scripts/sign-file sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der "$modfile"
#       /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der "$modfile"
done

如您所见,没有vboxpci模块:

$ sudo KBUILD_SIGN_PIN=[passcode] sign-virtualbox 
Signing /lib/modules/6.1.0-18-amd64/misc/vboxdrv.ko 
Signing /lib/modules/6.1.0-18-amd64/misc/vboxnetadp.ko 
Signing /lib/modules/6.1.0-18-amd64/misc/vboxnetflt.ko

附加信息:

$ sudo modinfo vboxdrv 
filename:       /lib/modules/6.1.0-18-amd64/misc/vboxdrv.ko 
version:        7.0.14 r161095 (0x00330004) 
license:        GPL 
description:    Oracle VM VirtualBox Support Driver 
author:         Oracle and/or its affiliates 
srcversion:     152A8CB5D422DE621E72BD6 
depends:         
retpoline:      Y 
name:           vboxdrv 
vermagic:       6.1.0-18-amd64 SMP preempt mod_unload modversions  
parm:           force_async_tsc:force the asynchronous TSC mode (int)

$ sudo modinfo vboxnetadp 
filename:       /lib/modules/6.1.0-18-amd64/misc/vboxnetadp.ko 
version:        7.0.14 r161095 ((0xA2CDe001U)) 
license:        GPL 
description:    Oracle VM VirtualBox Network Adapter Driver 
author:         Oracle and/or its affiliates 
srcversion:     DE548A71E9FEE840BC241DC 
depends:        vboxdrv 
retpoline:      Y 
name:           vboxnetadp 
vermagic:       6.1.0-18-amd64 SMP preempt mod_unload modversions  
 
$ sudo modinfo vboxnetflt 
filename:       /lib/modules/6.1.0-18-amd64/misc/vboxnetflt.ko 
version:        7.0.14 r161095 ((0xA2CDe001U)) 
license:        GPL 
description:    Oracle VM VirtualBox Network Filter Driver 
author:         Oracle and/or its affiliates 
srcversion:     5B4916269D291622038DB48 
depends:        vboxdrv 
retpoline:      Y 
name:           vboxnetflt 
vermagic:       6.1.0-18-amd64 SMP preempt mod_unload modversions 
virtualbox
  • 1 个回答
  • 102 Views
Martin Hope
Joshua E. Vines
Asked: 2024-02-02 04:11:57 +0800 CST

运行 Debian 12 的 Clevo 计算机没有声音

  • 5

我有一台蓝天 PD70SND-G,刚从中国运来。安装了 Debian 12 Bookworm(与 Windows 10 Pro 双重启动)。没有声音。切换到Windows,我已经验证它不是有缺陷的硬件。Debian 检测声音硬件并加载驱动程序。尝试播放音频文件,音量控制闪烁,好像正在尝试将音频发送到扬声器。尝试插入耳机,仍然没有声音。请帮忙。

Wed Jan 31 - 13:32:22 > [username] > ~ >
 1/85/0 $ neofetch
       _,met$$$$$gg.          [username]@ComputerName-Linux-Debian
    ,g$$$$$$$$$$$$$$$P.       --------------------------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) x86_64
 ,$$P'              `$$$.     Host: PD5x_7xSNC_SND_SNE
',$$P       ,ggs.     `$$b:   Kernel: 6.1.0-17-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 1 min
 $$P      d$'     ,    $$P    Packages: 2422 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15
 $$;      Y$b._   _,d$P'      Resolution: 1920x1080
 Y$$.    `.`"Y$$$$P"'         DE: Plasma 5.27.5
 `$$b      "-.__              WM: KWin
  `Y$$                        Theme: [Plasma], Breeze [GTK2/3]
   `Y$$.                      Icons: [Plasma], breeze [GTK2/3]
     `$$b.                    Terminal: konsole
       `Y$$b.                 CPU: Intel i9-14900HX (32) @ 2.200GHz
          `"Y$b._             GPU: Intel Raptor Lake-S UHD Graphics
              `"""            GPU: NVIDIA GeForce RTX 4060 Max-Q / Mobile
                              Memory: 2733MiB / 64000MiB

Wed Jan 31 - 11:59:39 > [username] > ~ >
 19/55/0 $ inxi -Fxz
 ...
 udio:
  Device-1: Intel vendor: CLEVO/KAPOK driver: snd_hda_intel v: kernel
    bus-ID: 0000:00:1f.3
  Device-2: NVIDIA driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1
  API: ALSA v: k6.1.0-17-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active
...
Wed Jan 31 - 12:20:22 > [username] > ~ >
 20/55/0 $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Wed Jan 31 - 12:39:13 > [username] > ~ >
21/56/0 $ cat /proc/asound/cards
0 [PCH            ]: HDA-Intel - HDA Intel PCH
                     HDA Intel PCH at 0x6205230000 irq 225
1 [NVidia         ]: HDA-Intel - HDA NVidia
                     HDA NVidia at 0x77000000 irq 17

Wed Jan 31 - 19:19:18 > [username] > ~ >
8/92/0 $ systemctl status --user pipewire.service
● pipewire.service - PipeWire Multimedia Service
    Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
    Active: active (running) since Wed 2024-01-31 19:18:14 EST; 1min 22s ago
TriggeredBy: ● pipewire.socket
  Main PID: 6709 (pipewire)
     Tasks: 2 (limit: 76722)
    Memory: 3.8M
       CPU: 44ms
    CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pipewire.service
            └─6709 /usr/bin/pipewire

Jan 31 19:18:14 ComputerName-Linux-Debian systemd[1741]: Started pipewire.service - PipeWire Multimedia Service.
Wed Jan 31 - 19:19:36 > [username] > ~ >
 9/93/0 $ systemctl status --user wireplumber.service
● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-01-31 19:19:18 EST; 52s ago
   Main PID: 6740 (wireplumber)
      Tasks: 4 (limit: 76722)
     Memory: 7.8M
        CPU: 164ms
     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/wireplumber.service
             └─6740 /usr/bin/wireplumber

Jan 31 19:19:18 ComputerName-Linux-Debian systemd[1741]: Started wireplumber.service - Multimedia Service Session Manager.
Jan 31 19:19:18 ComputerName-Linux-Debian wireplumber[6740]: Failed to set scheduler settings: Operation not permitted
Jan 31 19:19:18 ComputerName-Linux-Debian wireplumber[6740]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
Jan 31 19:19:18 ComputerName-Linux-Debian wireplumber[6740]: PipeWire's libcamera SPA missing or broken. libcamera not supported.
Jan 31 19:19:19 ComputerName-Linux-Debian wireplumber[6740]: Trying to use legacy bluez5 API for LE Audio - only A2DP will be supported. Please upgrade bluez5.
Jan 31 19:19:19 ComputerName-Linux-Debian wireplumber[6740]: <WpPortalPermissionStorePlugin:0x55e0903dbc80> Failed to call Lookup: GDBus.Error:org.freedesktop.po>
lines 1-16/16 (END)...skipping...
● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-01-31 19:19:18 EST; 52s ago
   Main PID: 6740 (wireplumber)
      Tasks: 4 (limit: 76722)
     Memory: 7.8M
        CPU: 164ms
     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/wireplumber.service
             └─6740 /usr/bin/wireplumber

Jan 31 19:19:18 ComputerName-Linux-Debian systemd[1741]: Started wireplumber.service - Multimedia Service Session Manager.
Jan 31 19:19:18 ComputerName-Linux-Debian wireplumber[6740]: Failed to set scheduler settings: Operation not permitted
Jan 31 19:19:18 ComputerName-Linux-Debian wireplumber[6740]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
Jan 31 19:19:18 ComputerName-Linux-Debian wireplumber[6740]: PipeWire's libcamera SPA missing or broken. libcamera not supported.
Jan 31 19:19:19 ComputerName-Linux-Debian wireplumber[6740]: Trying to use legacy bluez5 API for LE Audio - only A2DP will be supported. Please upgrade bluez5.
Jan 31 19:19:19 ComputerName-Linux-Debian wireplumber[6740]: <WpPortalPermissionStorePlugin:0x55e0903dbc80> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
linux
  • 1 个回答
  • 63 Views

Sidebar

Stats

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

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve