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
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[virtualbox](ubuntu)

Martin Hope
mathlete
Asked: 2025-01-11 05:59:15 +0800 CST

多种 gedit 变体

  • 6

语境:

我目前正在 VirtualBox 上设置 Ubuntu 24.04.1 LTS VM。早些时候,我注意到 gedit 不再是默认的文本编辑器;我本来可以更换编辑器,但 gnome-text-editor 似乎缺少 gedit 的许多有用功能(例如注释快捷方式之类的插件)。

我第一次安装 gedit 时,无法打开“首选项”;应用程序似乎冻结了,但实际上它只是消耗了大量内存。最后,我收到了无响应的通知,过了一会儿,程序完全崩溃了。

最后,我想起插件需要从外部安装(sudo apt-get install gedit-plugins),所以我运行了它,然后能够打开“首选项”。过了一会儿,我又遇到了同样的问题。经过一些故障排除后,我注意到我现在有 2 个不同的 gedit(请参阅下面的一些屏幕截图)。

在我的环境中,黄色变体无法使用 - 除了上述的首选项问题之外,当我尝试在其中执行任何操作时,我经常收到无响应的通知。

我已将蓝色变体固定在仪表板上,但在“显示应用程序”窗口中我看到的是黄色。此外,正如您在下面看到的,我无法将蓝色变体配置为任何程序的默认程序。

TLDR:有没有办法让黄色变体可用?


编辑:已经确定一个版本(不可用的版本)是 snap,另一个版本(未沙盒化的版本)是 apt。我曾假设推荐的应用程序将被沙盒化,因为它们似乎可以在“设置”中配置,但后来有人指出,新的系统默认程序(gnome-text-editor)也不是沙盒化/可配置的。因此,坚持使用 apt 可能是最好的前进方式。


附加信息:清除 apt 后发现了以下残留软件包:

gedit-common gedit-plugins-common gir1.2-amtk-5 gir1.2-ggit-1.0
  gir1.2-gtksource-300 gir1.2-gucharmap-2.90 gir1.2-tepl-6 libgedit-amtk-5-0
  libgedit-amtk-5-common libgedit-gtksourceview-300-0
  libgedit-gtksourceview-300-common libgit2-1.7 libgit2-glib-1.0-0
  libgucharmap-2-90-7 libhttp-parser2.9 libssh2-1t64 libtepl-6-4
  libtepl-common python3-gi-cairo python3-netifaces

此外,gedit 的缓存策略表明它是来自http://ca.archive.ubuntu.com/ubuntu-noble/universe-amd64-Packages的 46.2-2 (由于部分自动链接,我用破折号替换了空格)。


这两个 gedit 都可以在打开方式菜单中选择

可用的变体未经过沙盒处理

不可用的变体是可配置的

virtualbox
  • 1 个回答
  • 61 Views
Martin Hope
user2003586
Asked: 2025-01-07 21:07:55 +0800 CST

Xubuntu 24.10 + Wayland

  • 5

我的 VBox 版本是 7.1.4,由 Windows 11 Home 托管,客户操作系统是 Xubuntu Desktop 24.10。我想尝试一下 Wayland 窗口管理器。在安装了我可能需要的所有东西后,我在登录窗口中选择了 Xubuntu + Wayland。显示屏只闪了一下,然后又重新显示了登录窗口。其他选择“Xfce4、Xubuntu Desktop、Ubuntu 和 Ubuntu Desktop”都有效。我遗漏了一些东西,但我不知道那是什么。

virtualbox
  • 1 个回答
  • 59 Views
Martin Hope
mpemburn
Asked: 2024-11-22 21:46:09 +0800 CST

需要安装有 PHP 7.4 的 Ubuntu

  • 7

我有一个客户,他的网站需要 PHP 7.4 来运行一些自定义代码。为了测试修复,我需要创建一个可以运行 7.4 的本地 VM,但据我所知,此版本不再可供安装。我希望能够找到一个预装了 7.4 的映像,可以在 VirtualBox 或 VMWare Fusion 下运行。有人有什么建议吗?

virtualbox
  • 1 个回答
  • 104 Views
Martin Hope
Corentin
Asked: 2024-09-19 18:59:52 +0800 CST

LabTainer VM 无法在 Ubuntu 24.04 中的 VirtualBox 上启动 – 修复还是替代方案?

  • 7

我是一名工程专业的学生,​​在网络安全课上,教授假设每个人都使用 Mac 或 Windows(我是唯一一个使用 Ubuntu 的人)。他希望我们使用一个名为 LabTainer 的虚拟机,它在 VirtualBox(.ova 扩展名)上运行。不幸的是,当我尝试启动虚拟机时,我收到了错误消息

Result Code:
NS_ERROR_FAILURE (0x80004005)

Component:
MachineWrap

Interface:
IMachine {e36a5081-a82a-40bd-9e4e-42a44d6ce50f}

~/VirtualBox VMs/La​​btainerVM24 文件夹中没有创建日志。经过几个小时的搜索,我找不到解决方案,这很令人沮丧,因为我在实际工作上浪费了时间。你知道如何解决这个问题吗?或者是否有 VirtualBox 的替代方案?我目前正在尝试转换 ova 文件以与虚拟机管理器一起使用。我已经尝试使用命令 purge and remove 卸载并从官方网站重新安装最新的 VirtualBox 版本 7.1,并且我有最新的 Qt 和 SDL 依赖项。

谢谢!

编辑:我终于找到了解决方案

virtualbox
  • 1 个回答
  • 39 Views
Martin Hope
Blue Grass
Asked: 2024-07-28 06:39:50 +0800 CST

Vagrant 安装过程卡在 VirtualBox Guest Additions 上

  • 4

我的 vanilla Vagrant Ubuntu 24.04 安装在 VirtualBox Guest Additions 的同一位置卡住了。我尝试了多次,但每次都停在相同的步骤和以下消息:

XXXXXXX@XXXXXX-PC MINGW64 /d/vagrant/projects/project6

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'apavy/ubuntu-24.04-desktop-amd64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'apavy/ubuntu-24.04-desktop-amd64' version '0.1.0' is up to date...
==> default: Setting the name of the VM: project6_default_1722119127024_28694
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.0.0
VBoxService inside the vm claims: 7.0.14
Going on, assuming VBoxService is correct...
[default] GuestAdditions versions on your host (7.0.20) and guest (7.0.14) do not match.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.0.0
VBoxService inside the vm claims: 7.0.14
Going on, assuming VBoxService is correct...
Reading package lists...
Building dependency tree...
Reading state information...
linux-headers-6.8.0-31-generic is already the newest version (6.8.0-31.31).
build-essential is already the newest version (12.10ubuntu1).
dkms is already the newest version (3.0.11-1ubuntu13).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.
Installing Virtualbox Guest Additions 7.0.20 - guest version is 7.0.14
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.20 Guest Additions for Linux  100%
VirtualBox Guest Additions installer
Removing installed version 7.0.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.8.0-31-generic.
update-initramfs: Generating /boot/initrd.img-6.8.0-31-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules and services 7.0.20 r163906 reloaded
VirtualBox Guest Additions: NOTE: you may still consider to re-login if some
user session specific services (Shared Clipboard, Drag and Drop, Seamless or
Guest Screen Resize) were not restarted automatically

这Vagrantfile:

Vagrant.configure("2") do |config|
  # Machine Image
  config.vm.box = "apavy/ubuntu-24.04-desktop-amd64"

  # Provisioning
  config.vm.provision :shell, path: "provision.sh"
end
virtualbox
  • 1 个回答
  • 120 Views
Martin Hope
Blue Grass
Asked: 2024-07-28 05:04:39 +0800 CST

使用 Vagrantfile 命令和 provision.sh 文件的正确顺序是什么?

  • 5

我正在尝试使用 Vagrant 创建一个 Ubuntu 24.04 机器。我在 vagrantfile 中配置了一些配置选项,在 provision.sh 文件中配置了相当多的配置选项。这两个文件的内容都发布在下面。但是,看起来我的 Provision.sh 文件根本没有被执行。我需要帮助解决这个问题,这样我才能正确配置我的机器。

Vagrant文​​件:

Vagrant.configure("2") do |config|
  config.vm.box = "apavy/ubuntu-24.04-desktop-amd64"

  config.vm.provider "vmware_desktop" do |v|
    v.gui = true
  end
  
  config.vm.provider "virtualbox" do |v|
    v.memory = 2048
    v.cpus = 2
    v.name = "my_vm"
    v.gui = true
    v.check_guest_additions = false
  end

  # Provisioning Script
  config.vm.provider "vmware_desktop" do |v|
    v.vm.provision :shell, path: "provision.sh"
  end

provision.sh:

#!/usr/bin/env bash

# Change the Default Keyboard Layout
sudo sed -i 's/"fr"/"us"/g' /etc/default/keyboard

# Install OS updates
sudo apt update
sudo apt upgrade -y

# Disable Unix Firewall
sudo ufw disable

# Install Desktop Tools
sudo apt install -y open-vm-tools-desktop build-essential dkms linux-headers-$(uname -r) curl wget git vim nano bash-completion

sudo poweroff
virtualbox
  • 1 个回答
  • 49 Views
Martin Hope
user291614
Asked: 2024-06-21 00:53:42 +0800 CST

几乎可以在 vbox 7.0.18 上运行 24.04

  • 5

今天我花了大约一个小时安装它,因为安装失败了很多次。最后,我没有跳过这个步骤,而是接受了安装程序关于使用新版本的问题,它确实成功了!

嗯,至少在一段时间内是这样。机器启动了,添加了客户机,重新启动了,但几分钟后它显示图形失真。然后重新启动后,客户机添加不起作用(vboxclient 记录了一些东西但停止了挖掘)。有没有什么已知的解决方案?所有这些虚拟机创建都像它应该的那样简单。

virtualbox
  • 1 个回答
  • 42 Views
Martin Hope
dmkonlinux
Asked: 2024-05-04 12:57:48 +0800 CST

Ubuntu 22.04.2 / VirtualBox 7.0.18 集成模式关闭时不包含捕获的鼠标

  • 5

我有一个虚拟盒子运行 Windows XP 以便使用一些旧的 OEM 数码相机程序和一些游戏。VirtualBox 通过其 ppa 进行安装,并在安全模式下将扩展包和来宾添加安装到 XP 中。最近更新到 7.0.18 后,我开始在缩放模式下的来宾中遇到鼠标问题,并且关闭了鼠标集成。光标最初停在 VirtualBox 窗口的边缘,然后穿过边缘进入 Ubuntu 桌面。在窗口上来回挥动一段时间后,光标有时会被映射到窗口中的错误位置或无法到达边缘。即使我卸载了来宾添加项,这种情况仍然会继续,而这是不应该发生的。捕获后,鼠标应完全包含在 VirtualBox 内。这是我在非窗口游戏中执行鼠标控制滚动的首选方法。

我尝试重新安装扩展包和来宾添加,但行为没有改变。

virtualbox
  • 1 个回答
  • 26 Views
Martin Hope
Arman Tahery
Asked: 2024-04-26 21:51:24 +0800 CST

无法在 ubuntu24.04LTS 中安装 virtualbox,因为它不是针对此版本的 ubuntu 发布的

  • 8

我想在 Ubuntu24.04 LTS 上安装 virtualbox,但我没有找到 virtualbox 适用于 Ubuntu 24.04 的软件包,我下载了 jammy 的 virtualbox 并尝试安装它,我得到了这个输出

arman@salar:~/Downloads$ sudo apt install ./virtualbox-7.0_7.0.16-162802~Ubuntu~jammy_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.16-162802~Ubuntu~jammy_amd64.deb'
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-7.0 : Depends: libvpx7 (>= 1.10.0) but it is not installable
                  Recommends: libsdl-ttf2.0-0 but it is not going to be installed
                  Recommends: gcc but it is not going to be installed
                  Recommends: make or
                              build-essential but it is not going to be installed or
                              dpkg-dev but it is not going to be installed
                  Recommends: binutils but it is not going to be installed
E: Unable to correct problems, you have held broken packages

有什么办法可以绕过这个错误,或者我们必须等待 virtualbox 官方网站为 ubuntu24.04TS 发布适当的软件包?

virtualbox
  • 1 个回答
  • 1912 Views
Martin Hope
Mugen
Asked: 2024-01-19 17:06:55 +0800 CST

卡在将 Windows 主机中的来宾添加安装到 virtualbox 上的 Ubuntu 来宾上时卡住(无法卸载)

  • 7

我的主机是 Windows 10 机器。我已经安装了 VirtualBox 7,它运行 Ubuntu 20.04 桌面操作系统。

VirtualBox 为我提供了插入 Guest Additions CD 的选项,我尝试过。它安装了访客附加功能。剪贴板共享工作正常。重启。剪贴板共享停止工作。

之后我花了两天时间尝试卸载 Guest Additions。我尝试尽我所能删除现有的安装:

sudo rmmod vboxguest
sudo rm -rf /opt/VBoxGuestAdditions-*
sudo find /usr/src -name "*vboxguest*" -exec rm -rf {} +
sudo find /usr/lib -name "*vboxguest*" -exec rm -rf {} +
reboot

现在我尝试按照以下步骤从 CD 再次安装它:

  • cd /media/$USER/VBOXADDITIONS_<version>/
  • sudo sh ./VBoxLinuxAdditions.run

此安装不起作用,因为它仍然不断检测现有安装并尝试卸载它。这是输出:

...
VirtualBox Guest Additions installer
/usr/sbin/vbox-uninstall-guest-additions: 9: /opt/VBoxGuestAdditions-7.0.12/uninstall.sh: not found
Failed to remove existing installation. Aborting...

该文件夹/opt/VBoxGuestAdditions-7.0.12甚至不存在。但它仍然强迫性地尝试从那里卸载。

  1. 有没有办法强制安装(覆盖)来宾添加?
  2. 为什么安装程序不断搜索现有安装?有没有办法卸载所有痕迹?
virtualbox
  • 1 个回答
  • 51 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