我有一个运行 Amazon Linux 2023 的 EC2 实例。我按照说明添加了 fish repo。我使用了dnf config-manager --add-repo...
,然后dnf config-manager --enable-repo...
。我还添加了g++, cmake, pcre2, gettext, gcc, pip
和任何构建类型的包。
[root@ip-172-31-24-201 /etc/yum.repos.d]# ls
amazonlinux.repo fish.repo kernel-livepatch.repo
我跑了:
[root@ip-172-31-24-201 /etc/yum.repos.d]# dnf clean all
22 files removed
[root@ip-172-31-24-201 /etc/yum.repos.d]# dnf update
Amazon Linux 2023 repository 38 MB/s | 25 MB 00:00
Amazon Linux 2023 Kernel Livepatch repository 55 kB/s | 10 kB 00:00
Fish shell - 3.x release series (CentOS_8) 27 kB/s | 18 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
当我尝试安装 FISH 时,收到以下错误:
[root@ip-172-31-24-201 ec2-user]# dnf install fish
Last metadata expiration check: 0:14:58 ago on Wed Jun 19 22:30:39 2024.
Error:
Problem: conflicting requests
- package fish-3.7.1-3.1.aarch64 from shells_fish_release_3 does not have a compatible architecture
- nothing provides /usr/libexec/platform-python needed by fish-3.7.1-3.1.aarch64 from shells_fish_release_3
- nothing provides ld-linux-aarch64.so.1()(64bit) needed by fish-3.7.1-3.1.aarch64 from shells_fish_release_3
- nothing provides ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) needed by fish-3.7.1-3.1.aarch64 from shells_fish_release_3
- nothing provides libdl.so.2(GLIBC_2.17)(64bit) needed by fish-3.7.1-3.1.aarch64 from shells_fish_release_3
- nothing provides libm.so.6(GLIBC_2.17)(64bit) needed by fish-3.7.1-3.1.aarch64 from shells_fish_release_3
- nothing provides libpthread.so.0(GLIBC_2.17)(64bit) needed by fish-3.7.1-3.1.aarch64 from shells_fish_release_3
- nothing provides /usr/libexec/platform-python needed by fish-3.7.1-3.1.x86_64 from shells_fish_release_3
(try to add '--skip-broken' to skip uninstallable packages)
我没有使用ARM/aarch64
所以我运行了:
[root@ip-172-31-24-201 yum.repos.d]# dnf install fish --skip-broken
Last metadata expiration check: 0:01:27 ago on Wed Jun 19 23:02:14 2024.
Dependencies resolved.
Problem: cannot install the best candidate for the job
- nothing provides /usr/libexec/platform-python needed by fish-3.7.1-3.1.x86_64 from shells_fish_release_3
==================================================================================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================================================================================
Skipping packages with broken dependencies:
fish x86_64 3.7.1-3.1 shells_fish_release_3 4.8 M
Transaction Summary
==================================================================================================================================================================================================================
Skip 1 Package
Nothing to do.
Complete!
有人知道如何修复或安装吗/usr/libexec/platform-python
?
谢谢。