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 / 问题 / 1537553
Accepted
ykoavlil
ykoavlil
Asked: 2025-01-08 22:00:46 +0800 CST2025-01-08 22:00:46 +0800 CST 2025-01-08 22:00:46 +0800 CST

运行 mongodb-compass 时,错误为“非法指令(核心转储)”

  • 772

我尝试为 amd64 安装这两个版本:

  • https://github.com/mongodb-js/compass/releases/tag/v1.44.7
  • https://github.com/mongodb-js/compass/releases/tag/v1.45.0

安装没有错误

sudo apt install ./mongodb-compass_1.45.0_amd64.deb

which mongodb-compass
/usr/bin/mongodb-compass

但是当我启动两者时出现错误

mongodb-compass --version
Illegal instruction (core dumped)

fastfetch我的系统信息,命令的简短输出

OS: Ubuntu 24.10 x86_64
Kernel: Linux 6.11.0-13-generic
DE: GNOME
CPU: Intel(R) Celeron(R) G530 (2) @ 2.40 GHz

我读到它可能与处理器指令有关

cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family  : 6
model   : 42
model name  : Intel(R) Celeron(R) CPU G530 @ 2.40GHz
stepping  : 7
microcode : 0x2f
cpu MHz   : 1596.394
cache size  : 2048 KB
physical id : 0
siblings  : 2
core id   : 0
cpu cores : 2
apicid    : 0
initial apicid  : 0
fpu   : yes
fpu_exception : yes
cpuid level : 13
wp    : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave lahf_lm epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid xsaveopt dtherm arat pln pts vnmi md_clear flush_l1d
vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest
bugs    : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown
bogomips  : 4789.13
clflush size  : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family  : 6
model   : 42
model name  : Intel(R) Celeron(R) CPU G530 @ 2.40GHz
stepping  : 7
microcode : 0x2f
cpu MHz   : 1596.376
cache size  : 2048 KB
physical id : 0
siblings  : 2
core id   : 1
cpu cores : 2
apicid    : 2
initial apicid  : 2
fpu   : yes
fpu_exception : yes
cpuid level : 13
wp    : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave lahf_lm epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid xsaveopt dtherm arat pln pts vnmi md_clear flush_l1d
vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest
bugs    : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown
bogomips  : 4789.13
clflush size  : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

根据要求@waltinator

file $(type -p mongodb-compass)
/usr/bin/mongodb-compass: symbolic link to ../lib/mongodb-compass/MongoDB Compass
lscpu

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 36 bits physical, 48 bits virtual
Byte order: Little Endian
...
24.10
  • 1 1 个回答
  • 48 Views

1 个回答

  • Voted
  1. Best Answer
    ykoavlil
    2025-01-09T23:15:21+08:002025-01-09T23:15:21+08:00

    解决方案如下。

    我删除了不起作用的包。

    sudo apt purge mongodb-compass
    

    为了安全起见,我清除了缓存。

    sudo apt clean
    

    根据我的记录,我在旧的 Ubuntu 22.04 系统上使用的最新版本是 - 1.42.0

    因此我发现最新的可用版本 1.42.* 已经安装并且能够运行。

    sudo apt install ./mongodb-compass_1.42.5_amd64.deb
    

    我进一步研究了 1.43.6 - 也有效。

    sudo apt install ./mongodb-compass_1.43.6_amd64.deb
    

    如果你安装 1.44.7,一切都会崩溃。当然,你可以继续学习,尝试从 1.44.0 开始,然后继续。

    https://github.com/mongodb-js/compass/releases/tag/v1.43.6

    但我决定回到工作版本 1.43.6。

    • 0

相关问题

  • Ubuntu 正在重置 fs.inotify.max_user_watches - 如何让它停止干扰?

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