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

Ubuntu 24.04 LTS missing dependency #4145

Open
hremling opened this issue Aug 29, 2024 · 9 comments
Open

Ubuntu 24.04 LTS missing dependency #4145

hremling opened this issue Aug 29, 2024 · 9 comments

Comments

@hremling
Copy link

hremling commented Aug 29, 2024

Describe the bug

The installation of betaflight configurator on Ubuntu 24.04 LTS fails due to a missing dependency. A packet called libgconf-2-4 has no install candidates in the official noble nombat repositories. I researched the issue and found some forum posts, saying that libgconf-2-4 is deprecated from 23.10 onwards.

A workaround might be to add the 22.04 LTS repositories to the sources.list file and install the missing packet manually.

However it should be reviewed, if the dependency is really necessary or if another package could be used instead.

To Reproduce

Ubuntu 24.04.1 LTS Clean Install

Download betaflight-configurator_10.10.0_amd64.deb file

dpkg -i betaflight-configurator_10.10.0_amd64.deb

Expected behavior

All dependencies are installed automatically from the default Ubuntu 24.04 repository without errors

Configurator version

10.10.0

Flight controller configuration

No response

Add any other context about the problem that you think might be relevant here

No response

@nerdCopter
Copy link
Member

nerdCopter commented Aug 30, 2024

duplicate
#3969
#3869
#2950

Can also try the still-in-development https://app.betaflight.com/

@shahmirthesquid
Copy link

Hello, you can fix this issue by manually installing the following packages:

gconf2-common_3.2.6-5_all.deb
libgconf-2-4_3.2.6-5_amd64.deb

Google these package names, download them, and install. I downloaded them from debian pkgs org. Then you will be able to install betaflight with no problem. This was working for me on Linux Mint 22 and 23.

After installing betaflight I did the USB permissions command like it says in the betaflight wiki for linux, and everything was connecting perfectly.

@nerdCopter
Copy link
Member

i feel like using the portable (.zip) is a functional "fix" as well. however, the included .desktop file should be edited to point to the correct location of the executable (not /opt/...).

@hremling
Copy link
Author

I think both of those options shouldn't be called a "fix" because they require manual intervention from the user. In addition, those workarounds could stop working at any time because they rely on the deprecated libgconf-2-4 package. Even if that's not happening anytime soon, it poses a security risk at least.
My issue was just intended to give a heads up to the developers since the Ubuntu 24.04.1 LTS was being rolled out to the users. As one of the most widely used Linux distributions, this might have lead to many more users having to face the same issue.

@nerdCopter
Copy link
Member

understood. Binary installables are no longer in the Betaflight workflow in favor of https://app.betaflight.com

@haslinghuis
Copy link
Member

haslinghuis commented Sep 24, 2024

  • Have maintained ubuntu build documentation for 4 years now.
  • We use the version used in our CI for firmware which was updated just this month.
  • Since we are migrating to app.betaflight.com which is backwards compatible with firmware version 4.3 and up this has less priority as Android builds are broken recently too.
  • Linux users should be capable to work around issues with provided info.

@shahmirthesquid
Copy link

Could we please add some kind of disclaimer somewhere on how to do the linux fix. I was able to figure it out by scouring enough forums, but it would be a lot better if betaflight itself linked to safe mirrors of libgconf and other dependencies. I think its reasonable for users to have to download some extra .deb files and install those first. That happens on windows all the time. But making the users scour the internet themselves and possibly download an unsafe version of libgconf seems like a bad idea.

@hremling
Copy link
Author

+1 for the idea. I suggest putting it in into the Readme beneath the paragraph on how to fix the serial interface permission.

@haslinghuis
Copy link
Member

For ubuntu 22.04:

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

No branches or pull requests

4 participants