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

[FR] flatpak / flathub build missing #8515

Closed
FossPrime opened this issue Dec 7, 2020 · 11 comments
Closed

[FR] flatpak / flathub build missing #8515

FossPrime opened this issue Dec 7, 2020 · 11 comments
Labels
area: pkging feature request priority: unplanned Work that we believe should be done, but does not have a higher priority.

Comments

@FossPrime
Copy link

FossPrime commented Dec 7, 2020

I already have flatpaks installed on all my many systems, from Raspberry Pi's to servers to Crostini Chromebooks. When I use Ubuntu, I use apt preferences to blacklist snapd from ever coming back and hogging my limited RAM... Please make a flatpak for our convenience.

Why did I switch to Flatpaks?

  • Third party repositories are not a thing in Snapd, which is extremely undesirable
  • Flathub is Open Source, Snapcraft is not
  • AppArmor (Key to Snap security) leaves serious holes on Fedora/RHEL/CentOS
  • Blender and Gimp ran so slowly on snapd that I thought the package was broken... snapd also takes a big chunk of my Raspberry Pi's RAM, which is antithetical to the purpose of Systemd's efficient socket triggered services. I've had almost no issues with Flatpaks on the other hand.

Thank you!

My operating system is (include version):

Debian Buster

I installed Certbot with (certbot-auto, OS package manager, pip, etc):

flatpak

I ran this command and it produced this output:

flatpak install certbot
Looking for matches…
error: No remote refs found similar to ‘certbot’

Certbot's behavior differed from what I expected because:

Flatpak is easy to support and becoming the most loved container format... yet certbot isn't ported

Here is a Certbot log showing the issue (if available):

Screenshot 2020-12-07 at 13 20 25

Here is the relevant nginx server block or Apache virtualhost for the domain I am configuring:

https://github.com/flathub/org.freedesktop.Platform.ffmpeg

@ohemorange ohemorange added area: pkging feature request priority: unplanned Work that we believe should be done, but does not have a higher priority. labels Dec 7, 2020
@ohemorange
Copy link
Contributor

We're unlikely to take this up in the near future, since we recently decided on snaps after an extensive research phase, and one of the main benefits is to not have to support multiple distribution methods.

@FossPrime
Copy link
Author

FossPrime commented Dec 7, 2020

The other, bigger, main benefit is resilience against dependencies braking the program and giving you control over update timelines... that would prevent people like me who are using way worse alternatives ( unofficial sources, outdated distro repos, etc ) that create massive headaches to the internet as a whole when updates are needed.

Seems like investing an hour on Flatpak support could save the community thousands of hours down the road... perhaps Flathub will take on the project.

@ohemorange
Copy link
Contributor

That would be great if they would! It's not just an hour, it's hours of upkeep every month, and fixing bugs in alternate distribution methods, and additional support for users having trouble with the distribution method.

@zoracon
Copy link
Contributor

zoracon commented Mar 2, 2021

@kallisti5 The Certbot team has taken into consideration different perspectives with snapd and has come to the conclusion that best supports a wide variety of adaption for their users. As well as being able to maintain the project efficiently. Refrain from belaboring the point on several issues in the repository, this triggers burdensome triage and we want to be able to move the conversation forward on the project. Please refer to our Code of Conduct to maintain a friendly and respectful community. Thank you.

@kallisti5

This comment was marked as duplicate.

@zoracon
Copy link
Contributor

zoracon commented Mar 3, 2021

@kallisti5 the CoC addresses the multiple comments across several issues and platforms about the same topic, that is already open on all platforms, is what triggered the warning.
certbot/website#698 (comment)
#8422 (comment)
https://community.letsencrypt.org/t/certbot-non-snapd-instructions/146534/7

As you saw, non-snapd instructions are being worked out here and here.

As far as decisions on issues, the Certbot team will determine how to close this out. Thank you for using Certbot and donating to EFF.

@smithfred
Copy link

smithfred commented Mar 15, 2021

Snap is tied to a single "store" (source of Snaps) - Snapcraft - controlled by a single vendor - Canonical. Canonical will loudly protest that "you can install Snaps from anywhere". But what they actually mean is you can manually download and install Snap files, not have access to other/multiple sources through the client.

This is in contrast to Flatpak, which is not tied to a single store, and does support multiple sources for Flatpaks when using a Flatpak client.

Additionally, the server code for Flathub (the main Flatpak store/source) is open source, whereas Snapcraft's is not.

Finally, Snap depends on AppArmor, so it definitely shouldn't be recommended for use on distributions that don't use AppArmor for mandatory access control (e.g. Red Hat/Fedora), since the format has no meaningful MAC-based protections on those distributions.

@FossPrime
Copy link
Author

Have we considered making a Certbot Snapd distribution with Flatpaks? There seems to be not technical limitation aside from a slight increase in overhead... But Which Snapd users won't notice

@zoracon
Copy link
Contributor

zoracon commented Mar 19, 2021

For now we do not have plans for Flatpak distribution. A lot research and discussion came yielded the conclusion Certbot architecture, a CLI based program, does not pair very well with Flatpak without having many issues. This experience was a complicated conversation in the Flatpak repository itself. Closing out for now and if distribution for CLI based software with Flatpak gets better in the future, we can reconsider.

@zoracon zoracon closed this as completed Mar 19, 2021
@GlenKPeterson
Copy link

Thank you for certbot! It has changed the internet for the better.

I'm currently in the process of uninstalling snaps and replacing them with flatpaks, with a long-term personal goal of moving from Ubuntu to Fedora Silverblue. Certbot is one of a handful of holdouts.

If it were easy to package certbot as a flatpak, someone would have done it already. I'm willing to help with testing installation and basic use of flatpak alpha-builds on my systems. If anyone makes progress on a flatpak certbot, please contact me or post a link.

@q2dg
Copy link

q2dg commented Nov 19, 2023

We're unlikely to take this up in the near future, since we recently decided on snaps after an extensive research phase, and one of the main benefits is to not have to support multiple distribution methods.

Sorry for being mr obvious, but that was a very bad move. At least provide a flatpak package too, please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: pkging feature request priority: unplanned Work that we believe should be done, but does not have a higher priority.
Projects
None yet
Development

No branches or pull requests

7 participants