Centos 9 流:获取 wine:无法加载 ntdll.so [...] 权限被拒绝错误

Centos 9 流:获取 wine:无法加载 ntdll.so [...] 权限被拒绝错误

我想在 Centos Stream 9 上安装 notepad++。我按照以下教程进行操作:https://snapcraft.io/install/notepad-plus-plus/centos

运行 notepad++ 时出现以下错误:

[sudo] password for user: 
Initialising Wine..
wine: could not load ntdll.so: /snap/notepad-plus-plus/349/wine-platform/wine-stable/bin/../lib/wine/ntdll.so: cannot restore segment prot after reloc: Permission denied
wine: could not load ntdll.so: /snap/notepad-plus-plus/349/wine-platform/wine-stable/bin/../lib/wine/ntdll.so: cannot restore segment prot after reloc: Permission denied
Installing application..
Running hook '/snap/notepad-plus-plus/349/sommelier/hooks/pre-install'
Starting application..
wine: could not load ntdll.so: /snap/notepad-plus-plus/349/wine-platform/wine-stable/bin/../lib/wine/ntdll.so: cannot restore segment prot after reloc: Permission denied

答案1

问题出在以下部分: cannot restore segment prot after reloc: Permission denied

出现此问题的原因是计算机上安装了SELinux(安全增强型Linux)。 SELinux 配置阻止加载共享库“ntdll.so”。

仅在当前会话期间解决该问题: [user@localhost bin]$ /usr/sbin/setenforce 0

然后你应该能够正常运行 wine 了。

要永久解决此问题,请查看以下内容以了解更多详细信息: https://www.ibm.com/support/pages/error-cannot-restore-segment-prot-after-reloc-permission-denied-during-linux-installation

相关内容