by overshard · 4y ago · 0 comments
Swapped to Arch and haven't looked back yet, Arch took me a lot more work to get set up but once it was it's been pretty invisible, which is how I like my OS to be.
I'd probably happily swap back to Ubuntu if I read somewhere that Snap was removed entirely/canceled or something.
Except, snap can't update applications while they are running!
i.e. try to do a snap refresh while firefox is running, nothing to update, because its running, quit it wait for all processes to die and then refresh, and it will update and cause you to wait 30-60s while it does it, and then you can restart firefox.
This has to be one of the most idiotic design decision ever made by a containerized application system showing the designers don't understand containerization at all.
one of the primary points of containerization is the ability to have multiple copies of an application running in parallel using different "application images". One should be able to upgrade (i.e. install a new image in parallel to the old one) without disrupting existing execution environments.
Basically all firefox has to do is
1) if a container is running for the current user, execute firefox in its context
2) if no container is running for the current user, create a new container
3) every so often, garbage collect old images that don't have containers running for them.
these concepts are so simple, even docker basically does it!
and that's my rant for the day.
Oh, it's worse than that. When there is an update available but firefox is running you get:
> % snap refresh
> All snaps up to date.
It doesn't even tell you there is an update and that you need to close firefox to get it. In fact, it tells you there isn't one.
Can Firefox itself, when installed via Snap, notify the user that it needs security updates? If so, can users effectively do that, or do they have to know this incantation of closing, waiting, running a terminal command, and restarting?
Snap done properly it’d download and install the new version, point launchers to that and prompt the user to restart running snaps.
When a statement has many examples it is correct to use "e.g.," which is an abbreviation of _exempli gratia_, which in turn is Latin for "for example." For example: There are many emotions a person may feel, e.g., happiness.
When a statement has only one logical conclusion it is correct to use "i.e.," which is the abbreviation of _id est_ which in turn is Latin for "that is." For example: It was the same colour as a clear summer's day sky, i.e., blue.
It seems a bit trite to pick on a single element of language out of the whole post. But it was delightfully communicated and factually educational.
TIL.
It seems you live on a completely different planet to me... "i.e." simply does not mean "for example", and no one who has a good, academic level of English would ever think so.
For basically any app I use that's installed via snap, I eventually run into a gamebreaking issue and have to remove the snap version and find a normal .deb to install from. Whether it's customization issues (setting up custom fonts in VS Code didn't work) or stability issues (the tab bar in Firefox windows freezing up), there always seems to be some kind of problem
Applications like Firefox, IntelliJ, Chromium, etc. shouldn't be tied to system dependencies managed by apt. They should be entirely monolithic and hermetic.
Long term this deb vs snap approach will make sense and be good for Desktop Linux.
Is snap enough of improvement of Flakpak to ignore community standard and deal witb all the user hostile craziness like non-removable updater? No way.
I hope it goes the way of the Mir and upstart - replaced with a competitor and silently removed.
No. When we have flatpak and appimage, snap makes zero sense. I just see it as a way to implement a centralized walled garden into the OS, and don't install Ubuntu systems even in VMs for five minute test drives.
The way Canonical rolled it out is flat out insulting to the free software community and distro culture, IMHO.
It's too late here to write about its technical problems, so I'll leave it at that.
Snap is immature, and not ready for production deployment. The way Ubuntu/parent company have pushed snap has been damaging to its image.
There's a particular irony to this statement. Before adopting Wayland, Canonical tried to do their own thing with Mir[1]. Years later they gave up and reluctantly adopted Wayland. Their investment in Snap rhymes with this. Snap is an inferior competitor to Flatpak, and in the end it's likely the dust will settle for Snap the same way it did for Mir—in the dirt.
Canoncial as an organization has some serious NIH syndrome and they are putting "Linux on the Desktop" through a lot of unnecessary pain.
So, flatpak will win, after years of Canonical messing about with snaps?
I remember seeing it demoed at Canonical in 2015 or so. It’s been 7 years. How much longer should we wait?
That comparison is not helping to sell it.
How much time? We've been waiting for over 10 years for the dust to settle with Wayland.
I'm not entirely sure if Firefox is updateable via the UI. It's truly awful; and that's coming from an Ubuntu lover.
Agreed that the process sucks :)
No, you don't need to do this at all. You need to shut down Firefox, open a terminal, run 'sudo snap remove firefox', then 'sudo apt install firefox', wait for it to complete, then re-open Firefox.
(I might be missing a step here)
I still get notifications that to update the snap ai need to close firefox, so I wonder what is really happening…
Bonus, I don't need to be root to update it!
It's amazing that they're managing to make it so confusing that someone who wrote .xsession files can no longer understand it without doing a bunch of research. This shouldn't be tricky... that message, in particular, is absurd. Why would you show that and then not have a button that says "update"?
> Except, snap can't update applications while they are running!
What's worse is the unblockable notifications.
And I just de-snapped my xubuntu 22.04 , and doing so upgraded firefox-snap v113 to their repo v116 ! I mean, I thought the purpose was fully updated. Evidently not.
Snap needs to die in a fire.
Firefox can't do that. The simplest reason being that it is stateful and keeps records of history, bookmarks and whatnot which not only can't be accessed concurrently, but the specific storage model chosen can only be forward migrated. Accessing this data from two different versions of Firefox would inevitably lead to corrupt data, even when concurrency is not an issue.
That's just the obvious reason with profiles. But there are also various other issues where Firefox interacts with the plugin system and other external data. All of these could probably be fixed, but it would require a radical redesign of the software which right now no one has stepped up to do.
The least problematic method of using Firefox on Linux for most users is probably the official tarball. It's the trivial method of unpacking a software and running it from the destination folder. It has implications for freeness and DRM, and the obvious problems bundled dependencies bring, but Firefox is unusually well maintained software with the manpower to make it work.
And containerization or producification on top of Firefox will only make it more complicated and worse supported than upstream is.
i.e. you install a new firefox, the data on disk (i.e. file xyz) is no longer what the firefox version running expects and bad things happen. It could cache everything in memory (I guess) and never have to read anything from disk, after it starts up (relative to it, cache/cookies in local profile shouldn't matter in regards to disk).
so when you update the deb you are replacing file 'xyz' and old xyz no longer exists (as opposed to unlinking and replacing "/usr/bin/firefox" as even though unlinked it will still exist (for paging purposes) until every execution of it terminates and only then will it actually be removed from the file system.
this is where containerization can help on a "multi user" system, if everyone ran firefox in a container, every time they started it fresh, they would get the most up to date copy installed (in a non "multi user" setting, its less important, but can still have some value). (quotes because I mean multiple simultaneous desktop graphical desktop users, which if we're honest, most desktop linux users aren't doing).
Would you like to run a completely new Firefox with a completely new profile whenever you update it? You do know that you can't use the same profile even with the same version of Firefox in two separate Firefox instances concurrently, right? If the updater was aware of snap and snap aware of the application it's updating, you could have a graceful update procedure that serializes the current state and reloads the new container, but that's a lot of hoops to jump through, and the jumping must be coordinated between multiple stakeholders.
1. Install and start Firefox. There is one container and one directory full of profiles.
2. Start the upgrade. This creates a second Firefox installation (container) sharing the same profile directory.
3. Try to run Firefox without quitting the old one. Does nothing because the runtime is smart enough to know that the old one is running. Maybe pop up a message suggesting restarting Firefox.
4. Quit Firefox. Start it again. The new one runs. All the data is still there.
5. The old installation goes away.
The runtime has plenty of flexibility in how to make this work. There could be multiple containers. There could be one container with multiple parallel versions. There could be one container with a staged upgrade that can swap in essentially instantaneously once the container is idle (although this may fall apart on multi-user systems or where the containerized program regularly has multiple running copies of itself at once, e.g. a program like bash).
But the fact that snap apparently has trouble with this seems a bit embarrassing.
Every critical piece of information is available to Snapd, and yet, they have chosen the wrong and broken implementation.
> if a container is running for the current user, execute firefox in its context
So there is no need for snap to fancy serialization, just have new and old firefox ready, and keep using old one while it has running processeses. And if the old one exits for any reason, start new one instead.
That's all snap has to do! But it does not, because it really likes to make strange texhnical decisions for some reason.
(For "coordination", snap could make a common file in old app dir like "bin/new_version_availablec, and if firefox detects it, it shows that "your browser needs to be updated" button. I would not be surprised if something like this already exists in firefox. But I doubt snap would use this approach because it is not complex enough for it :) )
You don't need to serialize or reload anything.
Snap can't even update snap-store because it is running in the background.
There is no way for a non-tech savvy person to even figure out how to get past that error.
You either have to ask the user to restart firefox (that would be the sane choice) or corrupt user data.
But i agree that snap sucks. Snap sucks particularly bad because they also push it where it's not only unnecessary but also detrimental to the user experience.
Simple dumb example: i had gnome-calculator in my toolbar. I sometimes need to make basic calculations, it's easy and I keep it handy. I realized that gnome-calculator (a 500k binary) was taking 30 fcking seconds to appear. Turns out it was "updated" to a snap, and now launching it meant for stuff to be mounted around and for snap to do whatever it wanted with my time.
At some point after an update, launching that app would take multiple seconds. How could the most basic gtk app be so slow to launch.
Investigating further, I found the update had transformed the normal gcalc package into a snap, probably just to prove how great snaps could be for desktop apps?
What a bad way to introduce your latest tech canonical. From then on, my opinion of snaps was very negative and I still do everything possible to avoid them. Even if they are technically great or more secure, canonical messed up their introduction and are now stuck pushing a dead horse.
My first brush with fat-packages was Digikam stopping producing .deb packages, it put in so much overhead I couldn't run it on my (admittedly weak) system. The forced use of Firefox snap lost configuration, then failed to work properly (permission problems) ... it's like how the use of file managers via sudo was stopped, seemingly without a proper plan to replace it; make the new tech first, then implement it when it works! It's like going back to Windows, having fragmented app sources and forced updates that wreck everything.
I'm not sure where to move to next, I came to Ubuntu years ago because I no longer wanted to do the config work necessary to run Slackware. Looks like Mint/Arch/Debian are contenders.
At least until 22.04 I could dodge snaps pretty easily, but now, since Firefox is now a snap package, things went worse, at least for me. I gave it a try and, while the experience was not as bad as I feared, I soon encountered problems with things like trying to use a smartcard reader for signing documents, something that used to work out of the box with the non sanboxed version of Firefox and now it's broken with snaps (or at least some weeks ago).
I ended up downloading a Firefox tarball from the official site. I know you can use a PPA for that, but I don't feel comfortable having software as critical as a web browser from a third-party Ubuntu PPA.
Maybe I should give Pop OS a try...
I'm just hoping that it will remain available until this snap thing subsides, or until I make the switch to GNU Guix or something.
Edit: It seems that the latest stable Firefox is available, too.[1] I thought it was only ESR and that Ubuntu's switch to snap was requested by Mozilla. I'm confused.
[1] https://launchpad.net/~mozillateam/+archive/ubuntu/ppa/+pack...
If that's the case, maybe it's a limitation of Launchpad?
/opt/firefox contains the latest binary download from the official site.
The application is one that updates frequently enough that the gain is worthwhile.
Some distros manage to get it right. I haven't had any trouble using OpenSUSE Tumbleweed's packaged Firefox.
I tend to see new releases announced on lwn.net, and this site, so I just make sure I download it a day or two later so that I'm always current.
I'm a big fan: it's like Ubuntu, but with much of Canonical's divisive changes reverted, and with a few other improvements.
I switched from Ubuntu to Pop!_OS a few releases back when I got a System76 computer. (I also use it on my Lenovo laptop.)
A couple more recent annoyances, of many: Plasma looks great but frequently my panels go missing and don't reappear until I restart plasma shell. Dolphin has all the functionality I want and looks great, but frequently fails to watch directories for new files, forcing me to F5. Lots of little things like this turn into death by a thousand papercuts.
GTK 4 along with Gnome’s decision to limit customization is a massive step forward IMO.
Gnome will be able to build a consistent and stable desktop and developers building apps using GTK will not be bombarded with bugs caused by random user customizations, which are usually hard to reproduce, hard to debug, hard to fix, affect a small number of users, and are likely simply frustrating to deal with for devs.
But, maybe that’s not the right choice. Great thing about Linux is that if that’s the case Gnome will wither away and KDE (or other DEs) will quickly surpass it.
My bet is on Gnome however.
Hmm, I assumed that PopOS pretty much just added their own extra stuff to an Ubuntu install. I didn't realize they got rid of the default snap cruft?
Anyways, the last time I used Pop it had this weird upgrade to nowhere thing happened where it prompted me to update and then the update files were nowhere to be found.
Regarding their business model, they do design the laptops (even if they don't produce them themselves), but I get their impression their competitive edge are two different things:
1. Branding/marketing (to non-mainstream users, but we're talking about them right now, so I guess it's working)
2. Software: Ensuring everything works smoothly. It's not just firmware and drivers - having their own distribution seems quite key, otherwise it's trickier to cater to _their_ users needs. Keeping it close to the most popular distributions seems smart to me.
Pop OS clearly is a big deal for (2), but I think it even contributes to (1). Since they make money (apparently sustainably so) from selling hardware, and given that it appears Pop OS is an important driver of that business, I'd wager it's not going anywhere as long as they have a working hardware business.
But if you buy from them it comes with linux pre-installed (yeah!) which saves time and stress. It was easy and they do support you, and my 2 experiences with support where very good (Os and hardware). Plus Mat screens.
I was skeptical about yet another distro, but after using I kinda like Pop!_os despite the name. Its my daily driver now. The "Pop shop" where it does upgrades and software installs is decent enough. It seems to let me choose "flatpack (flathub)" or "debs" for most software. I haven't had any issues with either, though looking though my list its vscode and gimp which are my flatpack installs..
One great thing about Ubuntu and variants is that it’s got a lot of software that works well with it.
[0] https://launchpad.net/~mozillateam/+archive/ubuntu/ppa?field...
[1] https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-d...
I think that Fedora Workstation[1] is a #1 alternative to Ubuntu in terms of smoothness and ease of use. And if .deb is a requirement – then simply Debian.
I love fedora, it just works. I've had 1 issue so far, NVidia GPU on Dell XPS 15. Had to disable noveau and its rock solid.
Now enter Fedora for the past 4-5 months and I have to say I'm rather impressed. In particular, their package archives seem to keep current with a lot of the software I rely on far better than Debian/Ubuntu. Using dnf feels much more familiar than pacman ever did, and as of now I feel like my search for a daily driver has ended. I would recommend anyone else that's not happy with the experience of Ubuntu anymore to do likewise and see how Fedora feels in its place.
With Ubuntu it's all out of the box.
Nah it's pretty close if you have an integrated Intel or AMD system, you really don't need closed-source drivers for much except Nvidia these days. Chrome is in the non-free Fedora repositories (or can be installed easily from the website with an .rpm) and that's all most normal users need.
My dad is a retired accountant and a computer enthusiast since the 80s. Never a programmer, but he does this kind of stuff. Has managed his own linux installations for about 15 years.
I am wondering why it isn't more popular. Is there any sentiment/experience people would like to share about this distro?
However, the licensing agreement with Microsoft put many people in the open source community off, so I think that's contributed to its decline among hobby users.
22.04 has been very invasive by defaulting Firefox to a snap (there is still an alternative though, which is easy and well known, but still), but the repositories are still there in apt/deb format, with all the usual (thousands of) programs.
There may be a few exceptions, but they're very likely programs that have never been in the standard repositories; Subsync is an example. This is a decisions of the developers more than Ubuntu.
I can see another case being programs whose developers did not want to update dependencies, but I've never found such case.
That said, I'm definitely afraid of a real push of snaps, although I'm not sure if Ubuntu itself will be involved more. At the very end, containerized packaging programs take space, and there's only so much that a distribution can provide (before enraging users).
It also upgrades in place nicely. Excellent distro for Ubuntu and Mint to base themselves in.
I personally prefer using EFISTUB instead of a bootloader, and this was very difficult to do on Ubuntu last time I tried.
Mint might be an OK stopgap, but I wouldn't call it a long-term solution to Ubuntu's snap infestation. Just like you won't get a good OS by playing whack-a-mole with the various workarounds you have to do to avoid Windows' latest user-hostile bullshit.
I learned a lot about linux when I decided to try Arch. And as OP, I also never looked back :)
The Arch Linux Wiki is a fantastic resource.
Heck, even just reading the installation guide gives you a better understanding of how a Linux machine operates.
I needed specifically Python 3.6 to test something, and man that was hard to get working in Tumbleweed. First of all, it is not available in standard repos or pre-built on python's website. Second of all, downloading 3.6 source and building it fails because (apparently) the GCC version I have is too new and creates problems with the `-O3` flag passed during building. So now I have to install an older version of GCC that plays nice with python 3.6 source code...
Eventually I just said "screw it" and used the docker python:3.6 image. Not quite as convenient as having a native python3.6, but "good enough". Not sure what I would do if that image became unavailable.
But Canonical insists on their own implementation which is entirely controlled by them. Only they have a Snap repo, they follow the hated Windows model of forced updates, etc.
Someday I think Ubuntu will have to give up Snaps to remain relevant and switch to (probably) Flatpak, but they're going to lose a lot of users in the mean time.
Don’t get me wrong, snap is like a great conceptual ideal, but it seems to work only for Ubuntu/Canonical developers (or to people with access to them), no one else. It is not well programmed/thought for some reason. Pretty stupid issues, and the read-only fs thing is also weird, how can one test things On-The-Go?
I can't see it being harder than during the forming years with ever-changing libs and tools. Haven't seen a new end-user desktop app on Linux for over a decade either.
I do use flatpak for a lot of stuff, but it's better than Snap in many ways: it's faster, you can upgrade while apps are running, it allows third party repos, etc...
So it's kind of like saying "well you don't have to stay in the pit" except you keep pushing me in the pit every time I climb out.
That being said, I worry about the archaic community and contributor-tooling behind debian to be a barrier that will lead to its demise though. Makes me sad, but it is what it is. We are all getting old, and to us this interface looks normal, but to new people and those making the apps that the kids depend on, it looks like a shitshow of antiquated code.
Nobody wants to interact with savannah, it's ugly, move those projects somewhere else.
Nobody wants to use mailing lists or byzantine social arrangements through IRC just to get their package submitted.
I've got to be real with you, not a lot of people give a shit about 'free' beyond price either. Make non-free the default and put 'free-only' as the apt option. I love free software and it hurts me to say it, but there's a reason why AUR is killing the game right now. It's easy to use, easy to enter, easy to see people using your code in a mainstream OS without having to opine to holy neckbeards for the mercy to allow your package to be published.
Debian is a great OS, and I'd happily use it for the rest of my life if given the choice, but reality is staring me in the face that this won't last in its current form, and its current form won't be maintained if anything changes. It's a catch-22.
Those holy neckbeards are doing a great job maintaining this OS and it’s got quite enough packages.
Maybe Debian needs to port itself to use rpms and Fedora tooling.
RPM on the other hand is an over-engineered mess: <https://xyrillian.de/thoughts/posts/argh-pm.html>. Tangentially, YUM and DNF were the slowest package managers I've ever used. They're a real pain.
This whole process worked great back in the day, but now the kids will just go somewhere else or release outside of repositories.
I know Ubuntu loves the smell of their own codes, but part of me thinks PPA was Canonical's way to address how difficult and crusty the process to get software into Debian is. To this day if you can get in Debian repos, Ubuntu will include you in theirs 'for free'.
I feel so bad saying this.. Debian was supposed to be The One, imo. I've been at this linux thing since the mid 90s, I could not have predicted the current state of things decades ago. It truly disappoints me that things have gone this wrong with modern Linux, but I can't say it had a chance to play out any other way. You see the same with cryptocurrency (gasp!) where in order to achieve legitimacy in the eyes of the opposition a novel industry sought to emulate the legacy systems enough to be familiar and charm the opposing users, but ended up gaining users sold on that dream who lo and behold demanded an effigy to their old systems. We brought this on ourselves.
Now we have Ubuntu aiming to be the new Microsoft at an org level, aesthetically emulating MacOS at a UI level, and meanwhile pretending to be a crossplatform user experience perfect for phone and desktop. I call bullshit. Ubuntu took the dark path after 10.04 and 10.10 when Ubuntu Netbook Remix first reared its ugly head. Someone misunderstood the instructions, fed it after midnight, and now it's achieved its final form- Unity.
This is 100% our fault, my generations fault. We didn't keep with the times and I don't see that changing fast enough.
Didn't they just vote to do this?
[0]: https://www.phoronix.com/news/Debian-Non-Free-Firmware-Resul...
I see juju is recommended to be installed via snap, and landscape is recommended to install via juju:
https://juju.is/docs/olm/installing-juju
https://discourse.ubuntu.com/t/landscape-beta-juju-installat...
https://ubuntu.com/blog/landscape-beta-test-the-landscape-se...
- bottom (Modern top)
I had a somewhat similar experience to you and tried Fedora first and it works well. Fedora seems to follow the same "just work" direction that Ubuntu aimed/aims for, minus some aspects I wasn't a fan of. Since Fedora worked for me, I never bothered checking out any other distributions. Was there a big draw to Arch over some of the others, or was it just the first one you tried out and stuck with?
Since it isn't something where I can easily test if the problem still exists, I just avoided RPM completely. That means I have a knowledge and learning benefit in using other systems, and even in learning new (simpler) systems over investing in Fedora.
The split between Fedora and RHEL is also not IMHO as clearly advertised as with other distributions, so I do worry that I will hit a very expensive support wall that might also require me to switch distributions.
Next up need an alternative to Firefox, it's very disapointing how much has to be configured to turn off all the bullshit analytics, "colorways?", and get a blank new tab page.
I did this when I run Ubuntu.
Ubuntu still is offers pretty polished and reliable OS that is easy to install and has most third-party support.
But Firefox packaged by Ubuntu was always gimped as they didn't enable certain optimizations like PGO/LTO so official tar.gz from Mozilla was superior anyway. (They fixed this recently for snap). I think it's similar for Chromium.
So I didn't use snaps and I never been in situation that I needed to use snap.
But even if it were only firefox, telling people they should download tarballs instead of having their distro ship packages is really missing the point.
The latest and greatest recommendation is now openSUSE Tumbleweed (rolling yet stable). Fedora was the recommendation of 2021. Manjaro was the recommendation of 2020. Try one and see if it works on your hardware. If not, pick the next one. :)
Mint was pretty much rock solid on my Dell XPS. It just worked. Pop has been a bit more exciting, but still a great distro!
Btw I used Arch , when I had time and tinkering with software was still pleasurable( I could do a full dual boot install without any documentation in one hour but this kind of stuff displease me this days)