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

问题[ubuntu](computer)

Martin Hope
codepleb
Asked: 2025-04-18 20:45:04 +0800 CST

如果使用 sudo 权限重新启动,Linux 服务是否只能执行网络请求?

  • 6
悬赏将于 3 天后到期。回答此问题的答案可获得+50声望奖励。codepleb 希望引起更多人对此问题的关注。

我有一个 Linux 服务,它运行一个执行网络请求、文件读写等操作的程序。

然而,不知何故,它似​​乎无法向外部网站发出网络请求,除非我用 运行它sudo systemctl restart minecraft.service。然后它突然工作了,但如果我只是启动主机,同样的请求不知何故无法完成。

如果您能在这里提供帮助,这将是我在 Ubuntu 22.04.4 LTS 上的 systemd 服务:

[Unit]
Description=Minecraft Cobble Server

[Service]
User=codepleb
WorkingDirectory=/home/codepleb/minecraft/
Environment="MOD_PW=123"
Environment="ADMIN_PW=123"
Environment="BACKUP_PATH=/home/codepleb/mc_backups/"
Environment="AUTO_SHUTDOWN=y"
Environment="MULTI_SERVER=y"
Environment="HOME=/home/codepleb"
Environment="ENABLE_DEBUG_MODE=y"
ExecStart=/home/codepleb/minecraft/cobble
Restart=always

[Install]
WantedBy=multi-user.target

如果有任何相关性,请求将在此处进行:https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.73.01.zip。

ubuntu
  • 1 个回答
  • 43 Views
Martin Hope
AlanQ
Asked: 2025-04-14 02:39:39 +0800 CST

加密的 mdadm raid 1 磁盘持续处于活动状态

  • 5

我的系统(Ubuntu 24.04LTS)位于 SSD 上。

我有两个内置硬盘,它们什么也没做,而且很安静。

然后我在两个硬盘上设置了 mdadm raid1,对它们进行了加密(luks),并格式化为 ext4。

重新启动后,磁盘现在会持续发出噪音 - 短脉冲、短间隙、短脉冲...... - 就好像正在进行读/写访问一样。

发生什么事了?

iotop似乎没有“仅查看此磁盘”的选项。

这是我对 mdadm 阵列的期望吗?

如果是这样,那么镜像 RAID 的好处是否被磁盘不断使用(即使没有明确写入或读取)的事实所抵消?

ubuntu
  • 1 个回答
  • 55 Views
Martin Hope
berger-devel
Asked: 2025-04-01 19:00:25 +0800 CST

环境变量和 systemd

  • 5

我正在 Ubuntu 上安装 SonarQube Community Build。我已将 Java 从 .tar.gz 安装到 /opt/java。我已将JAVA_HOME=/opt/java/和添加SONAR_JAVA_PATH=/opt/java/bin/java到我的 .profile 文件中。echo $JAVA_HOME并echo $SONAR_JAVA_PATH给了我预期的结果。

我已将 SonarQube 安装到 /opt/sonarqube,并且可以使用 启动它/opt/sonarqube/bin/linux-x86-x64/sonar.sh start。

仍然不起作用的是将其安装为 systemd 服务。日志显示

Java not found. Please make sure that the environmental variable SONAR_JAVA_PATH points to a Java executable

这是单元文件:

[Unit]
Description=SonarQube Community Build
[Service]
Type=simple
RestartSec=1
User=me
ExecStart=/bin/bash /opt/sonarqube/bin/linux-x86-64/sonar.sh start
WorkingDirectory=/opt/sonarqube
[Install]
WantedBy=multi-user.target

我遗漏了什么?谢谢。

ubuntu
  • 2 个回答
  • 60 Views
Martin Hope
jay.sf
Asked: 2025-03-30 21:52:31 +0800 CST

Brave 在多个工作区(而不是仅在一个工作区)中打开/关闭 — 如何停止这种情况?

  • 5

当我在工作区 1 + k 上打开基于 Chromium 的浏览器 Brave 时,它​​会在所有工作区 {1, ... , k} 上打开,关闭时也是一样。

这种情况始终存在,并且只在 Brave 中发生(与 Firefox 相反)。我希望它表现得像一个普通窗口:仅在当前工作区中打开/关闭。

感觉与这个线程相关,但是它并没有解决问题。

笔记:

Ubuntu 24.04.2 
Wayland
Brave Version 1.76.82 Chromium: 134.0.6998.178 (Official Build) (64-bit)
GNOME Shell 46.0
ubuntu
  • 1 个回答
  • 24 Views
Martin Hope
hmqcnoesy
Asked: 2025-03-25 08:57:30 +0800 CST

为什么使用 Lighttpd 浏览目录时链接末尾有一个斜杠字符?

  • 8

我在 ubuntu 24.04 上配置了 lighttpd 1.4.74 以允许目录浏览,通过 .conf 文件:

dir-listing.activate="enable"

我也尝试过

server.dir-listing = "enable"

它们似乎都给出了相同的结果,其中静态文件的链接带有尾随/。以下是目录内容的示例:

“ll”的结果显示目录中的 mp3 和 jpg 文件列表

以下是 lighttpd 提供的功能:

显示 mp3 和 jpg 文件的网页,但每个链接末尾都有一个斜杠

即使这些 mp3 和 jpg 文件的 有错误,它们的链接也能正常工作/。但即使它们工作正常,我也需要让它生成正确的链接文本,因为有一个进程正在解析这些href值,并且它认为它们是目录。

值得注意的是,我在其他地方有一台运行 Raspbian 和 lighttpd 1.4.59 的树莓派。它运行正常:

在 Raspberry Pi 上执行 ls -la 的结果显示的文件与前面提到的运行 ubuntu 的设备中的文件相同

网页正确显示 mp3 和 jpg 文件,没有尾部斜杠

我的新 Ubuntu/lighttpd 服务器可能出了什么问题导致出现这些多余的/字符?

ubuntu
  • 1 个回答
  • 57 Views
Martin Hope
Thom
Asked: 2025-03-14 20:37:30 +0800 CST

设置网桥至 wifi

  • 6

我被带到了这家公司。我的目标之一是升级现有的自助服务终端。这个自助服务终端是他们在美国各地的客户站点上保留的 100 多个生产自助服务终端中的测试自助服务终端。我必须将其从 Ubuntu 22.04 升级到 Ubuntu 24.04。

该信息亭不具备 wifi 功能,最近已转移到仅有 wifi 接入的设施。

我使用了一台旧电脑,并在其上安装了 Windows 11,并配备了 wifi 适配器和有线以太网控制器。这个想法是使用 Windows 11 电脑作为网络之间的桥梁。因此,我将信息亭的以太网电缆插入桥上的以太网端口并将其连接到 wifi,然后在网络连接设置中建立了一座桥梁。

我安装了一个我找到的 DHCP 服务器,让它分配一个地址 192,168.42.42。我将以太网卡的地址设置为 192.168.1.1。我将客户端计算机的网关设置为 192.168.1.1。

我的 wifi 适配器设置为 dhcp。我查看了它的以太网设置,并使用此处的默认网关作为我的以太网适配器的默认网关。我对 DNS 做了同样的操作,并将 DHCP 客户端的 DNS 指向同一个位置。这一切对我来说似乎都很好。

现在我使用 Ubuntu 24.04 安装盘启动信息亭并尝试访问 google.com。没有成功。它说找不到服务器。

现在我不知道该怎么办了。

1.) 有人有更好的主意吗? 2.) 知道我做错了什么吗?

ubuntu
  • 1 个回答
  • 73 Views
Martin Hope
Rodrigo
Asked: 2025-03-08 09:20:04 +0800 CST

如果我使用“--no-sandbox”,为什么 Google Chrome 仅在 WSL 上运行?

  • 5

我在 WSL 中使用 Ubuntu 20.04,如果我不使用--no-sandboxGoogle Chrome,它将无法在 WSL 上运行,为什么?运行命令后,屏幕截图中显示了错误消息google-chrome --no-sandbox

但是打开是正常的。

在此处输入图片描述

ubuntu
  • 1 个回答
  • 33 Views
Martin Hope
SolidSnackDrive
Asked: 2025-03-06 05:21:38 +0800 CST

为什么驱动器看起来很好,电缆也已更换,但却充满了 FPDMA 读取错误?

  • 6

不确定这是因为这里情况更好还是服务器故障,目前暂时尝试这里。

我有一台用作个人服务器的机器,其规格如下:

  • 2 个 Xeon E5-2690 v3
  • 华硕 Z10PA-D8 系列主板
  • Nvidia Quadro P4000
  • 1x 三星 SSD 870 EVO 500GB(系统驱动器)
  • 3x WDC WD40EFAX-68JH4N1(在 mdadm RAID5 配置中)
  • 1000W 黄金酷冷至尊电源
  • 运行 Ubuntu 24.04 LTS

它似乎有些间歇性,但我经常发现我的 dmesg 日志在多个驱动器上充斥着相同类型的 FDPMA READ QUEUED 错误。

[  +0.003702] ata10.00: status: { DRDY }
[  +0.001747] ata10.00: failed command: READ FPDMA QUEUED
[  +0.001794] ata10.00: cmd 60/40:38:80:89:33/05:00:a9:01:00/40 tag 7 ncq dma 688128 in
                       res 40/00:01:00:4f:c2/00:00:00:00:00/00 Emask 0x50 (ATA bus error)
[  +0.003511] ata10.00: status: { DRDY }
[  +0.001673] ata10.00: failed command: READ FPDMA QUEUED
[  +0.001828] ata10.00: cmd 60/40:40:c0:8e:33/05:00:a9:01:00/40 tag 8 ncq dma 688128 in
                       res 40/00:01:00:00:00/00:00:00:00:00/00 Emask 0x50 (ATA bus error)
[  +0.003079] ata10.00: status: { DRDY }
[  +0.000513] ata10.00: failed command: READ FPDMA QUEUED
[  +0.001324] ata10.00: cmd 60/40:48:40:99:33/05:00:a9:01:00/40 tag 9 ncq dma 688128 in
                       res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x50 (ATA bus error)
[  +0.003468] ata10.00: status: { DRDY }
[  +0.001671] ata10.00: failed command: READ FPDMA QUEUED
[  +0.001707] ata10.00: cmd 60/40:50:80:9e:33/05:00:a9:01:00/40 tag 10 ncq dma 688128 in
                       res 40/00:01:00:00:00/00:00:00:00:00/00 Emask 0x50 (ATA bus error)

我尝试过的:

  • 为每个驱动器购买了新的 SATA 电缆,替换了旧的
  • 重新安装连接到每个驱动器的电源线
  • 重新排列主板上使用的端口
  • 检查 BIOS 版本(是否为最新版本)
  • 检查 SMART 健康 (参见 pastebins)

系统似乎仍可用,但我不认为这些错误是好事。不过我不太确定下一步该如何诊断。驱动器 SMART 报告似乎表明它们都处于良好状态,并且 SATA 电缆都是全新的。

dmesg日志,截断(在我重新启动之前从我的终端回滚复制,下次出现错误时我将使用完整版本更新):https://pastebin.com/j0Jnhkgt

skdump对于每个磁盘

Device: sat16:/dev/sda
Type: 16 Byte SCSI ATA SAT Passthru
Size: 476940 MiB
Model: [Samsung SSD 870 EVO 500GB]
Serial: [S6PXNU0X400255M]
Firmware: [SVT02B6Q]
SMART Available: yes
Quirks:
Awake: yes
SMART Disk Health Good: yes
Off-line Data Collection Status: [Off-line data collection activity was never started.]
Total Time To Complete Off-Line Data Collection: 0 s
Self-Test Execution Status: [The previous self-test routine completed without error or no self-test has ever been run.]
Percent Self-Test Remaining: 0%
Conveyance Self-Test Available: no
Short/Extended Self-Test Available: yes
Start Self-Test Available: yes
Abort Self-Test Available: yes
Short Self-Test Polling Time: 2 min
Extended Self-Test Polling Time: 85 min
Conveyance Self-Test Polling Time: 0 min
Bad Sectors: 0 sectors
Powered On: 6.7 months
Power Cycles: 30
Average Powered On Per Power Cycle: 6.7 days
Temperature: 25.0 C
Attribute Parsing Verification: Good
Overall Status: GOOD
ID# Name                        Value Worst Thres Pretty      Raw            Type    Updates Good Good/Past
  5 reallocated-sector-count    100   100    10   0 sectors   0x000000000000 prefail online  yes  yes 
  9 power-on-hours               99    99     0   6.7 months  0xdb1200000000 old-age online  n/a  n/a 
 12 power-cycle-count            99    99     0   30          0x1e0000000000 old-age online  n/a  n/a 
177 wear-leveling-count          99    99     0   3           0x030000000000 prefail online  n/a  n/a 
179 used-reserved-blocks-total  100   100    10   0           0x000000000000 prefail online  yes  yes 
181 program-fail-count-total    100   100    10   0           0x000000000000 old-age online  yes  yes 
182 erase-fail-count-total      100   100    10   0           0x000000000000 old-age online  yes  yes 
183 runtime-bad-block-total     100   100    10   0           0x000000000000 prefail online  yes  yes 
187 reported-uncorrect          100   100     0   0 sectors   0x000000000000 old-age online  n/a  n/a 
190 airflow-temperature-celsius  75    63     0   25.0 C      0x190000000000 old-age online  n/a  n/a 
195 hardware-ecc-recovered      200   200     0   0           0x000000000000 old-age online  n/a  n/a 
199 udma-crc-error-count         99    99     0   475         0xdb0100000000 old-age online  n/a  n/a 
235 good-block-rate              99    99     0   n/a         0x130000000000 old-age online  n/a  n/a 
241 total-lbas-written           99    99     0   34642.150 TB 0x106d893d0000 old-age online  n/a  n/a 
252 attribute-252               100   100     0   n/a         0x020000000000 old-age online  n/a  n/a

Device: sat16:/dev/sdb
Type: 16 Byte SCSI ATA SAT Passthru
Size: 3815447 MiB
Model: [WDC WD40EFAX-68JH4N1]
Serial: [WD-WX22D11RCA6L]
Firmware: [83.00A83]
SMART Available: yes
Quirks:
Awake: yes
SMART Disk Health Good: yes
Off-line Data Collection Status: [Off-line data collection activity was never started.]
Total Time To Complete Off-Line Data Collection: 404 s
Self-Test Execution Status: [The previous self-test routine completed without error or no self-test has ever been run.]
Percent Self-Test Remaining: 0%
Conveyance Self-Test Available: yes
Short/Extended Self-Test Available: yes
Start Self-Test Available: yes
Abort Self-Test Available: yes
Short Self-Test Polling Time: 2 min
Extended Self-Test Polling Time: 120 min
Conveyance Self-Test Polling Time: 2 min
Bad Sectors: 0 sectors
Powered On: 3.6 years
Power Cycles: 43
Average Powered On Per Power Cycle: 1.0 months
Temperature: 27.0 C
Attribute Parsing Verification: Good
Overall Status: GOOD
ID# Name                        Value Worst Thres Pretty      Raw            Type    Updates Good Good/Past
  1 raw-read-error-rate         200   200    51   0           0x000000000000 prefail online  yes  yes 
  3 spin-up-time                201   200    21   2.9 s       0x7d0b00000000 prefail online  yes  yes 
  4 start-stop-count            100   100     0   45          0x2d0000000000 old-age online  n/a  n/a 
  5 reallocated-sector-count    200   200   140   0 sectors   0x000000000000 prefail online  yes  yes 
  7 seek-error-rate             200   200     0   0           0x000000000000 old-age online  n/a  n/a 
  9 power-on-hours               57    57     0   3.6 years   0x027b00000000 old-age online  n/a  n/a 
 10 spin-retry-count            100   253     0   0           0x000000000000 old-age online  n/a  n/a 
 11 calibration-retry-count     100   253     0   0           0x000000000000 old-age online  n/a  n/a 
 12 power-cycle-count           100   100     0   43          0x2b0000000000 old-age online  n/a  n/a 
192 power-off-retract-count     200   200     0   28          0x1c0000000000 old-age online  n/a  n/a 
193 load-cycle-count            194   194     0   20445       0xdd4f00000000 old-age online  n/a  n/a 
194 temperature-celsius-2       120   109     0   27.0 C      0x1b0000000000 old-age online  n/a  n/a 
196 reallocated-event-count     200   200     0   0           0x000000000000 old-age online  n/a  n/a 
197 current-pending-sector      200   200     0   0 sectors   0x000000000000 old-age online  n/a  n/a 
198 offline-uncorrectable       100   253     0   0 sectors   0x000000000000 old-age offline n/a  n/a 
199 udma-crc-error-count        200   200     0   1825        0x210700000000 old-age online  n/a  n/a 
200 multi-zone-error-rate       100   253     0   0           0x000000000000 old-age offline n/a  n/a

Device: sat16:/dev/sdc
Type: 16 Byte SCSI ATA SAT Passthru
Size: 3815447 MiB
Model: [WDC WD40EFAX-68JH4N1]
Serial: [WD-WX22D11RCFDP]
Firmware: [83.00A83]
SMART Available: yes
Quirks:
Awake: yes
SMART Disk Health Good: yes
Off-line Data Collection Status: [Off-line data collection activity was never started.]
Total Time To Complete Off-Line Data Collection: 54720 s
Self-Test Execution Status: [The previous self-test routine completed without error or no self-test has ever been run.]
Percent Self-Test Remaining: 0%
Conveyance Self-Test Available: yes
Short/Extended Self-Test Available: yes
Start Self-Test Available: yes
Abort Self-Test Available: yes
Short Self-Test Polling Time: 2 min
Extended Self-Test Polling Time: 121 min
Conveyance Self-Test Polling Time: 2 min
Bad Sectors: 0 sectors
Powered On: 3.6 years
Power Cycles: 43
Average Powered On Per Power Cycle: 1.0 months
Temperature: 28.0 C
Attribute Parsing Verification: Good
Overall Status: GOOD
ID# Name                        Value Worst Thres Pretty      Raw            Type    Updates Good Good/Past
  1 raw-read-error-rate         200   200    51   0           0x000000000000 prefail online  yes  yes 
  3 spin-up-time                201   200    21   2.9 s       0x640b00000000 prefail online  yes  yes 
  4 start-stop-count            100   100     0   45          0x2d0000000000 old-age online  n/a  n/a 
  5 reallocated-sector-count    200   200   140   0 sectors   0x000000000000 prefail online  yes  yes 
  7 seek-error-rate             200   200     0   0           0x000000000000 old-age online  n/a  n/a 
  9 power-on-hours               57    57     0   3.6 years   0x2d7b00000000 old-age online  n/a  n/a 
 10 spin-retry-count            100   253     0   0           0x000000000000 old-age online  n/a  n/a 
 11 calibration-retry-count     100   253     0   0           0x000000000000 old-age online  n/a  n/a 
 12 power-cycle-count           100   100     0   43          0x2b0000000000 old-age online  n/a  n/a 
192 power-off-retract-count     200   200     0   28          0x1c0000000000 old-age online  n/a  n/a 
193 load-cycle-count            194   194     0   20720       0xf05000000000 old-age online  n/a  n/a 
194 temperature-celsius-2       119   107     0   28.0 C      0x1c0000000000 old-age online  n/a  n/a 
196 reallocated-event-count     200   200     0   0           0x000000000000 old-age online  n/a  n/a 
197 current-pending-sector      200   200     0   0 sectors   0x000000000000 old-age online  n/a  n/a 
198 offline-uncorrectable       100   253     0   0 sectors   0x000000000000 old-age offline n/a  n/a 
199 udma-crc-error-count        200   199     0   1806        0x0e0700000000 old-age online  n/a  n/a 
200 multi-zone-error-rate       100   253     0   0           0x000000000000 old-age offline n/a  n/a

Device: sat16:/dev/sdd
Type: 16 Byte SCSI ATA SAT Passthru
Size: 3815447 MiB
Model: [WDC WD40EFAX-68JH4N1]
Serial: [WD-WX32D11ED8N5]
Firmware: [83.00A83]
SMART Available: yes
Quirks:
Awake: yes
SMART Disk Health Good: yes
Off-line Data Collection Status: [Off-line data collection activity was never started.]
Total Time To Complete Off-Line Data Collection: 46184 s
Self-Test Execution Status: [The previous self-test routine completed without error or no self-test has ever been run.]
Percent Self-Test Remaining: 0%
Conveyance Self-Test Available: yes
Short/Extended Self-Test Available: yes
Start Self-Test Available: yes
Abort Self-Test Available: yes
Short Self-Test Polling Time: 2 min
Extended Self-Test Polling Time: 502 min
Conveyance Self-Test Polling Time: 3 min
Bad Sectors: 0 sectors
Powered On: 3.6 years
Power Cycles: 43
Average Powered On Per Power Cycle: 1.0 months
Temperature: 28.0 C
Attribute Parsing Verification: Good
Overall Status: GOOD
ID# Name                        Value Worst Thres Pretty      Raw            Type    Updates Good Good/Past
  1 raw-read-error-rate         200   200    51   0           0x000000000000 prefail online  yes  yes 
  3 spin-up-time                202   199    21   2.9 s       0x430b00000000 prefail online  yes  yes 
  4 start-stop-count            100   100     0   45          0x2d0000000000 old-age online  n/a  n/a 
  5 reallocated-sector-count    200   200   140   0 sectors   0x000000000000 prefail online  yes  yes 
  7 seek-error-rate             200   200     0   0           0x000000000000 old-age online  n/a  n/a 
  9 power-on-hours               57    57     0   3.6 years   0x447b00000000 old-age online  n/a  n/a 
 10 spin-retry-count            100   253     0   0           0x000000000000 old-age online  n/a  n/a 
 11 calibration-retry-count     100   253     0   0           0x000000000000 old-age online  n/a  n/a 
 12 power-cycle-count           100   100     0   43          0x2b0000000000 old-age online  n/a  n/a 
192 power-off-retract-count     200   200     0   28          0x1c0000000000 old-age online  n/a  n/a 
193 load-cycle-count            200   200     0   2402        0x620900000000 old-age online  n/a  n/a 
194 temperature-celsius-2       119   106     0   28.0 C      0x1c0000000000 old-age online  n/a  n/a 
196 reallocated-event-count     200   200     0   0           0x000000000000 old-age online  n/a  n/a 
197 current-pending-sector      200   200     0   0 sectors   0x000000000000 old-age online  n/a  n/a 
198 offline-uncorrectable       100   253     0   0 sectors   0x000000000000 old-age offline n/a  n/a 
199 udma-crc-error-count        200   200     0   1783        0xf70600000000 old-age online  n/a  n/a 
200 multi-zone-error-rate       100   253     0   0           0x000000000000 old-age offline n/a  n/a

mdadm地位:

/dev/md0:
           Version : 1.2
     Creation Time : Sun Jul 11 18:12:41 2021
        Raid Level : raid5
        Array Size : 7813772288 (7.28 TiB 8.00 TB)
     Used Dev Size : 3906886144 (3.64 TiB 4.00 TB)
      Raid Devices : 3
     Total Devices : 3
       Persistence : Superblock is persistent

     Intent Bitmap : Internal

       Update Time : Wed Mar  5 12:58:11 2025
             State : clean 
    Active Devices : 3
   Working Devices : 3
    Failed Devices : 0
     Spare Devices : 0

            Layout : left-symmetric
        Chunk Size : 512K

Consistency Policy : bitmap

              Name : crab:0  (local to host crab)
              UUID : b9f769fb:49026686:78737cc2:90e8e63c
            Events : 23954

    Number   Major   Minor   RaidDevice State
       0       8       32        0      active sync   /dev/sdc
       1       8       16        1      active sync   /dev/sdb
       3       8       48        2      active sync   /dev/sdd

更新mdadm:如果我进行检查,我就能始终如一地重现该问题。

  • dmesg没有 noncq 标志的日志:https://pastebin.com/sz1sXNQ1
  • dmesg启用 noncq 标志的日志/etc/default/grub:https://pastebin.com/Aib0B8wz

我还注意到,尽管我的硬盘是 WD Reds,但实际上是 SMR 硬盘。我开始怀疑这可能是问题所在,但我不确定。

ubuntu
  • 1 个回答
  • 81 Views
Martin Hope
Dean Schulze
Asked: 2025-03-02 07:13:32 +0800 CST

为什么 Ubuntu 22.04 中的 Brave 和 Edge 浏览器上的退格键的作用类似于上一个箭头?

  • 6

当我在文本框中编辑文本时,我按下该backspace键,而不是将光标移回并删除一个字符,它就像我点击了浏览器顶部的上一个箭头一样。Brave 和 Edge 中都会发生这种情况。如果我按住该shift键,我会得到正常的backspace按键行为,但速度会更慢。

这刚刚开始发生。我重启后仍然出现这种情况。我使用的是 Ubuntu 22.04。

是什么原因造成的?请注意,这涉及编辑文本,例如输入搜索词时。当我点击时,backspace它会带我回到另一个网页,就像我点击了浏览器顶部的上一个箭头一样。

发生这种情况:

勇敢的:

  • 版本 1.73.105 Chromium:131.0.6778.265
  • 版本 1.75.181 Chromium:133.0.6943.141

边缘:

  • 版本 131.0.2903.112
  • 版本 133.0.3065.92

以下情况不会发生:

  • Brave 1.71.118 Chromium 130.0.6723.70
  • 边缘 130.0.2849.52
ubuntu
  • 1 个回答
  • 31 Views
Martin Hope
Mark
Asked: 2025-02-10 00:42:19 +0800 CST

无法将某些现有虚拟机添加到 Virtual Box

  • 5

我有几个虚拟机是用 VirtualBox 使用的(现在我在 Ubuntu 24.10 下运行 v7.0)。其中有些几个月前运行过的虚拟机现在都不能运行了。实际上,我无法将它们添加到 VirtualBox 中,它拒绝打开它们并出现以下错误:

NS_ERROR_INVALID_ARG (0X80070057)

经过搜索,似乎这是一个相当通用的错误代码,并没有说明根本原因。我确信文件没有损坏:不同的 SSD 和我也有备份,但行为是一样的。

此外,我检查了虚拟机和主机的日志(在~/.config/VirtualBox),但当发生此错误时,它们没有更新。

我现在陷入困境,我必须运行这些机器,但我甚至无法添加它们来更改设置。由于没有可用的日志,而且错误很普遍,我该怎么做才能调试这个问题?

如果这很重要,那么所有表现出此行为的虚拟机都将 Windows 10 作为客户操作系统

根据评论中的提示,我创建了一个新的 VBox,并添加了相同的视频。现在它拒绝运行,说缺少操作系统。 在这里我上传了日志文件。

这是失败的部分:

00:00:00.629510 Changing the VM state from 'POWERING_ON' to 'RUNNING'
00:00:00.629514 Console: Machine state changed to 'Running'
00:00:00.630193 VMMDev: Guest Log: BIOS: VirtualBox 7.0.22
00:00:00.630232 PCI: Setting up resources and interrupts
00:00:00.630850 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:00.631342 GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen 0 to 800x600
00:00:00.631444 GUI: HID LEDs sync is not supported on this platform
00:00:00.634813 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=1, Machine-state=6
00:00:00.648272 VMMDev: Guest Log: CPUID EDX: 0x178bfbff
00:00:00.648480 VMMDev: Guest Log: BIOS: No PCI IDE controller, not probing IDE
00:00:00.648593 AHCI#0: Reset the HBA
00:00:00.648595 VD#0: Cancelling all active requests
00:00:00.648617 AHCI#0: Port 0 reset
00:00:00.648630 VD#0: Cancelling all active requests
00:00:00.648836 VMMDev: Guest Log: BIOS: AHCI 0-P#0: PCHS=16383/16/63 LCHS=1024/255/63 0x000000000dc00000 sectors
00:00:00.648864 AHCI#0: Port 1 reset
00:00:00.649462 PIT: mode=2 count=0x48d3 (18643) - 64.00 Hz (ch=0)
00:00:00.685814 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000793114000000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:00.761245 GUI: UIMediumEnumerator: Medium-enumeration finished!
00:00:03.130467 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:03.130566 VMMDev: Guest Log: BIOS: Boot : bseqnr=1, bootseq=0231
00:00:03.130635 VMMDev: Guest Log: BIOS: Boot from Floppy 0 failed
00:00:03.130714 VMMDev: Guest Log: BIOS: Boot : bseqnr=2, bootseq=0023
00:00:03.131020 VMMDev: Guest Log: BIOS: CDROM boot failure code : 0003
00:00:03.131082 VMMDev: Guest Log: BIOS: Boot from CD-ROM failed
00:00:03.131157 VMMDev: Guest Log: BIOS: Boot : bseqnr=3, bootseq=0002
00:00:03.131967 VMMDev: Guest Log: BIOS: Booting from Hard Disk...
00:00:03.132021 VMMDev: Guest Log: BIOS: INT18: BOOT FAILURE
00:00:03.132038 PcBios: Boot failure
00:00:03.132051 VM: Raising runtime error 'VMBootFail' (fFlags=0x0)
00:00:03.132054 Console: VM runtime error: fatal=false, errorID=VMBootFail message="The VM failed to boot. This is possibly caused by not having an operating system installed or a misconfigured boot order. Maybe picking a guest OS install DVD will resolve the situation"

似乎没有找到硬盘,但 vdi 文件已连接到 SATA 控制器

ubuntu
  • 1 个回答
  • 31 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