我尝试为 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
...
解决方案如下。
我删除了不起作用的包。
为了安全起见,我清除了缓存。
根据我的记录,我在旧的 Ubuntu 22.04 系统上使用的最新版本是 - 1.42.0
因此我发现最新的可用版本 1.42.* 已经安装并且能够运行。
我进一步研究了 1.43.6 - 也有效。
如果你安装 1.44.7,一切都会崩溃。当然,你可以继续学习,尝试从 1.44.0 开始,然后继续。
https://github.com/mongodb-js/compass/releases/tag/v1.43.6
但我决定回到工作版本 1.43.6。