Skip to content

[maker-deb] Failed to create DEB package #3804

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

Open
3 tasks done
hron84 opened this issue Jan 17, 2025 · 2 comments
Open
3 tasks done

[maker-deb] Failed to create DEB package #3804

hron84 opened this issue Jan 17, 2025 · 2 comments
Labels
blocked/needs-info Issues lacking information for resolution bug maker/deb platform/linux

Comments

@hron84
Copy link

hron84 commented Jan 17, 2025

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

7.6.0

Electron version

v33.3.1

Operating system

Ubuntu 24.04.1 LTS

Last known working Electron Forge version

No response

Expected behavior

DEB package corretly builds

Actual behavior

❯ Making distributables
  ✖ Making a deb distributable for linux/x64
    › Command failed with a non-zero return code (2):
      fakeroot dpkg-deb --build /tmp/electron-installer--51997-DZStMEFPGauK/youtube-desktop_1.0.5_amd64
      dpkg-deb: error: control directory has bad permissions 750 (must be >=0755 and <=0775)

Steps to reproduce

I want to build https://github.com/mikepruett3/youtube-desktop on my machine based on the documentation of the project.

As far as I see, the project itself does not configure anything for electron-forge/maker-deb other than the icon file. Therefore I don!t think it is the project's fault, I assume Ubuntu changed some expectations in dpkg-deb according to the control directory and electron-forge setups the folder incorrectly.

Additional information

No response

@erickzhao
Copy link
Member

Does this work for you for the base Forge template (via npx create-electron-app@latest)?

@erickzhao erickzhao added bug blocked/needs-info Issues lacking information for resolution labels Feb 8, 2025
@iDom818
Copy link

iDom818 commented Apr 23, 2025

Running into the same problem here at my company. Using @electron-forge/maker-deb version 7.8.0. Specifically, it is failing in a GitHub CodeSpace based on the mcr.microsoft.com/devcontainers/python:3.12 image. It is Debian based and required us to install dpkg and fakeroot after that, we were hit with the same error up above. No problems on Ubuntu.

Seems like this is a common issue with certain distros since I saw the same error in a different Electron package as well when looking into the error. electron-userland/electron-installer-debian#347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/needs-info Issues lacking information for resolution bug maker/deb platform/linux
Projects
None yet
Development

No branches or pull requests

3 participants