Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add required fuse package to fedora #229

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ctrlaltf24
Copy link
Contributor

@ctrlaltf24 ctrlaltf24 commented Nov 14, 2024

"fuse" package needed for fusermount
"fuse3" package provides fusermount3

When the fuse package isn't installed:

$ ./oudedetai --install-app
...
Installing registry file: /tmp/LBS.2r05magl/disable-winemenubuilder.reg
2024-11-14 14:57:56 ERROR: Error occurred in run_command() while executing "['/home/user/LogosBible10/data/bin/wine64', 'reg', 'query', 'HKCU\\Software\\Wine\\Fonts', '/v', 'Codepages']": Command '['/home/user/LogosBible10/data/bin/wine64', 'reg', 'query', 'HKCU\\Software\\Wine\\Fonts', '/v', 'Codepages']' returned non-zero exit status 127.
2024-11-14 14:57:56 WARNING: Failed to get registry value: HKCU\Software\Wine\Fonts\Codepages
2024-11-14 14:57:56 ERROR: wine.wine_proc: wine.get_registry_value returned None.
Failed to install reg file: /tmp/LBS.2r05magl/disable-winemenubuilder.reg
2024-11-14 14:57:56 CRITICAL: Failed to install reg file: /tmp/LBS.2r05magl/disable-winemenubuilder.reg
Killed
$ /home/user/LogosBible10/data/bin/wine64 reg query HKCU\\Software\\Wine\\Fonts /v Codepages
fuse: failed to exec fusermount: No such file or directory

Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information
open dir error: No such file or directory

This using Fedora-40 and fedora-41

"fuse" package needed for fusermount
"fuse3" package provides fusermount3

When the fuse package isn't installed:
```
$ ./oudedetai --install-app
...
Installing registry file: /tmp/LBS.2r05magl/disable-winemenubuilder.reg
2024-11-14 14:57:56 ERROR: Error occurred in run_command() while executing "['/home/user/LogosBible10/data/bin/wine64', 'reg', 'query', 'HKCU\\Software\\Wine\\Fonts', '/v', 'Codepages']": Command '['/home/user/LogosBible10/data/bin/wine64', 'reg', 'query', 'HKCU\\Software\\Wine\\Fonts', '/v', 'Codepages']' returned non-zero exit status 127.
2024-11-14 14:57:56 WARNING: Failed to get registry value: HKCU\Software\Wine\Fonts\Codepages
2024-11-14 14:57:56 ERROR: wine.wine_proc: wine.get_registry_value returned None.
Failed to install reg file: /tmp/LBS.2r05magl/disable-winemenubuilder.reg
2024-11-14 14:57:56 CRITICAL: Failed to install reg file: /tmp/LBS.2r05magl/disable-winemenubuilder.reg
Killed
$ /home/user/LogosBible10/data/bin/wine64 reg query HKCU\\Software\\Wine\\Fonts /v Codepages
fuse: failed to exec fusermount: No such file or directory

Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information
open dir error: No such file or directory
```

This using Fedora-40
@n8marti
Copy link
Collaborator

n8marti commented Nov 16, 2024

Here's what we have in system.py:

def get_package_manager():
    # Check for package manager and associated packages
    if shutil.which('apt') is not None:  # debian, ubuntu
        # ...
    elif shutil.which('dnf') is not None:  # rhel, fedora
        config.PACKAGE_MANAGER_COMMAND_INSTALL = ["dnf", "install", "-y"]
        config.PACKAGE_MANAGER_COMMAND_DOWNLOAD = ["dnf", "install", "--downloadonly", "-y"]  # noqa: E501
        config.PACKAGE_MANAGER_COMMAND_REMOVE = ["dnf", "remove", "-y"]
        # config.PACKAGE_MANAGER_COMMAND_QUERY = ["dnf", "list", "installed"]
        config.PACKAGE_MANAGER_COMMAND_QUERY = ["rpm", "-qa"]  # workaround
        config.QUERY_PREFIX = ''
        # config.PACKAGES = "patch fuse3 fuse3-libs mod_auth_ntlm_winbind samba-winbind samba-winbind-clients cabextract bc libxml2 curl"  # noqa: E501
        config.PACKAGES = (
            "fuse3 fuse3-libs "  # appimages
            "mod_auth_ntlm_winbind samba-winbind samba-winbind-clients cabextract "  # wine  # noqa: E501
            "p7zip-plugins "  # winetricks
        )

So we need to add fuse along with fuse3? It seems strange to me that both would be needed, but it could be the case.

Edit: We apparently would also need to add fuse-libs, since it's not an explicit dependency of fuse.

@ctrlaltf24
Copy link
Contributor Author

I'm not sure if just fuse (no fuse3) would work, I know we need fuse for fusermount

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants