News for hackers. Stuff that matters.
Re:Ubuntu Snap update spoiled my World Cup Final by thot_experiment on Sunday December 18, 2022 @04:14PM (#34043497)
Snap is awful, no arguments there. I think the more important thing here is that the very idea that something should update itself is so incredibly insanely broken and I cannot for the life of me understand why it's the norm.

The number of times I've been hacked and suffered a data loss is astronomically small compared to the number of times I've had something update and suffered a data loss, or more importantly the number of times I've had something update and cause a regression or break something. Then I have to spend my precious time bringing something that was PREVIOUSLY IN A WORKING STATE back to a working state, which is one of the most infuriating feelings.

Re:Ubuntu Snap update spoiled my World Cup Final by charcircuit on Sunday December 18, 2022 @04:42PM (#34043841)
>I cannot for the life of me understand why it's the norm.

If updates were not automatic a large number of people would not upgrade and would not receive important security updates along with various fixes and new features. If a user keeps running into a bug that has already been patched in a newer version that user will just think your software is bad and they will not realize that this poor experience they are having is because they are on an old version.

>The number of times I've been hacked and suffered a data loss is astronomically small

Being hacked even once is a bad thing. It is something that the industry tries to minimize as much as possible.

>the number of times I've had something update and suffered a data loss

Personally I have not experienced this, but it sounds like this would still happen when you update later. This is why doing gradual updates of rollouts and collecting telemetry is important. It is very useful in being able to detect a bad update and stop it from going out. Unfortunately, the Linux ecosystem is still behind the rest of the industry which leads to people having a poor user experience.

Re:Ubuntu Snap update spoiled my World Cup Final by tttttt5ts on Sunday December 18, 2022 @05:02PM (#34044048)
Is this response generated by ChatGPT? Seriously, we are talking Linux here and this is a generic response that ignores audience.
Re:Ubuntu Snap update spoiled my World Cup Final by omg_ponies on Sunday December 18, 2022 @05:09PM (#34044147)
OP posted a since-the-dawn-of-time complaint about automatic updates that ignores why they are necessary, and clearly states that he's just refusing to engage with the usual reasons for them.

The "generic" response is beacuse the complaint is simiarly generic.

Re:Ubuntu Snap update spoiled my World Cup Final by thot_experiment on Sunday December 18, 2022 @08:14PM (#34046893)
Sorry, I'm not sure I'm parsing this right, you're saying "security updates are necessary and I as a user am going to have worse outcomes for not updating my stuff"?

My personal experience does not match this at all, so is the explanation there that I'm just lucky?

Re:Ubuntu Snap update spoiled my World Cup Final by thot_experiment on Sunday December 18, 2022 @11:20PM (#34048439)
Sorry for the reply to my own reply here but I'm genuinely incredibly curious for someone to explain to me why updates are necessary. It really seems like a cargo cult thing to me but I'm not the smartest person and if someone can explain to me where I'm doing my threat model/attack surface analysis incorrectly I'd love to learn.
Re:Ubuntu Snap update spoiled my World Cup Final by charcircuit on Monday December 19, 2022 @12:17AM (#34048776)
>I'm genuinely incredibly curious for someone to explain to me why updates are necessary.

Because software is never finished. There are always bugs to fix, new platforms to support, new features to be added, more polish to be added, etc. It is the developers goal to have the quality of their software to go up over time.

It is in developers interest for their users to remain secure, not experience bugs, have a good experience, and to solve a problem or need they have. Updates to applications try and address one or more of these things.

If making the user's life better is a cargo cult thing. Then maybe that cargo cult isn't such a bad thing.

If you are specifically talking about why should you care about a chrome 0day patch because you've never visited a shady site that tried to exploit it then the reason is that it's important for the ecosystem to be seen as secure. You want to make it as least financially viable to exploit Chrome as possible, you want to ensure people think of the web as a secure platform they can use without being afraid, as Google you want to avoid bad PR about a big hack. The first point is important. You want to increase the customer acquisition cost for an attacker which is "the cost to get a visitor divided by the chance a user's browser has not gotten the patch yet." Google's lever for increasing an attacker's CAC is to use autoupdates to lower the chance. When CAC > LCV (lifetime customer value) then the attacker does not have a financial incentive to compromise users and this results in a large drop in the rate of attacks. The required updates remove the incentives to use the attacks which is why you feel like you aren't being targeted.

It's like how some management don't understand the value of a system administrator because when a system administrator does their job correctly everything appears to just work. When security updates are properly going out it may feel like they are unneccessary, but that just means that the defenders are doing a good job.

Re:Ubuntu Snap update spoiled my World Cup Final by thot_experiment on Monday December 19, 2022 @03:23AM (#34049766)
In the first bit you have not described why updates are necessary, you've given some reasons why updates can be useful. Opting into updates sometimes is fine. The context of the parent and grandparent posts is specifically security and security updates.

Security wise for most applications there's the oft overlooked possibility of just not connecting to the internet. Though when it comes to my personal experience running antivirusless Windows with updates disabled it has not been a problem for me for a decade now. According to my router I'm not part of a botnet either. It just doesn't seem necessary at all. Your attack surface as an individual on a reasonably well secured network is minuscule and your threat model is basically just the background radiation of bots trying whatever random exploits. Sure, I keep my router patched because it's on the edge, but other than that it doesn't matter.

Though I will give you that browsers are a special case where the tool is specifically used all the time to connect to potentially hostile content and give that content the ability to execute code on your machine. Things on the edge are a scenario where keeping up with security patches actually make sense.

Re:Ubuntu Snap update spoiled my World Cup Final by charcircuit on Sunday December 18, 2022 @05:11PM (#34044158)
No, this response was not generated by ChatGPT. I would like to point out that there is one part of the Linux ecosystem that does automatic updates well which is Android based operating systems. What this post is about, desktop Linux, is much further behind so a more generic response is deserved.

Before we get the point where we are discussing aspects like under what conditions should updates be applied or the priority of which updates should be installed first, desktop Linux needs to show that it can handle the basics.

Re:Ubuntu Snap update spoiled my World Cup Final by tttttt5ts on Sunday December 18, 2022 @05:23PM (#34044345)
My phone hasn't gotten update in over a year as Google dropped support for my old pixel. My 10 year old Linux desktop updated yesterday... Oh, and I didn't have to reboot my machine (live patching for the win). Android update is not "better" it is different with different goals.
Re:Ubuntu Snap update spoiled my World Cup Final by charcircuit on Sunday December 18, 2022 @05:36PM (#34044616)
The support duration of an operating system is different from the quality of how it handles autoupdates. Unsupported Android devices can still receive updates to apps from the Play Store. We were talking about application updates specifically and not operating system updates which while similar, are typically handled differently.

Upgrading Android apps does not need a reboot of the device either. Again live patching is a separate feature from automatic application updates.

Re:Ubuntu Snap update spoiled my World Cup Final by bombolo on Sunday December 18, 2022 @04:18PM (#34043547)
Doesn't apt also update itself?
Re:Ubuntu Snap update spoiled my World Cup Final by f1refly on Sunday December 18, 2022 @04:21PM (#34043590)
Apt updates itself if you instruct it to, the updates also won't restart anything by themselves. I don't think unattended upgrades are enabled on debian or on ubuntu.
Re:Ubuntu Snap update spoiled my World Cup Final by bragr on Sunday December 18, 2022 @04:26PM (#34043653)
>also won't restart anything by themselves

Is it very not true? Apt restarts processes and services all the time during upgrades.

Re:Ubuntu Snap update spoiled my World Cup Final by tssva on Sunday December 18, 2022 @04:29PM (#34043679)
Apt always prompts me as to which services I want to restart following an upgrade.
Re:Ubuntu Snap update spoiled my World Cup Final by bombolo on Sunday December 18, 2022 @04:25PM (#34043635)
I think they might be in ubuntu server installations. I think they aren't enabled by default on debian… at least not on my installs.
Re:Ubuntu Snap update spoiled my World Cup Final by f1refly on Sunday December 18, 2022 @04:33PM (#34043720)
I have a bunch of ubuntu containers at work, none of them self update by default, I know that because I had to enable unattended upgrades manually in all of them. Maybe it's a lxc template thing?
Re:Ubuntu Snap update spoiled my World Cup Final by bombolo on Sunday December 18, 2022 @07:09PM (#34046179)
If you got them from dockerhub or similar… that's not a default ubuntu install.
Re:Ubuntu Snap update spoiled my World Cup Final by pmontra on Sunday December 18, 2022 @05:25PM (#34044385)
When Firefox is updated by apt on 20.04, it keeps working until I open a new tab. Then it shows a page asking me to restart the browser and won't do anything else until I comply. This is a choice of Mozilla.

When Ubuntu prompts me to restart the system after an update I can dismiss the dialog even for weeks, but at a certain point the cumulative updates start making the system behave erratically and I have to restart. Probably kernel, drivers, libc, other vital stuff get too much disaligned.

Re:Ubuntu Snap update spoiled my World Cup Final by ElectricalUnion on Sunday December 18, 2022 @08:49PM (#34047228)
> When Firefox is updated by apt on 20.04, it keeps working until I open a new tab. Then it shows a page asking me to restart the browser and won't do anything else until I comply. This is a choice of Mozilla.

Parts of the program were updated and now the program is in a not tested, half-updated, half-old state.

The "other choice" for Mozilla is pretending nothing happened, attempt to open the tab, probably immediatly segfaulting and losing all your current work in a potentially unrecoverable way. Not really a good choice under most circunstances.

Re:Ubuntu Snap update spoiled my World Cup Final by pmontra on Monday December 19, 2022 @03:06AM (#34049675)
It started doing that only a few months ago. Apparently it worked in the half updated state before then but of course the implementation and the update process could have changed.
Re:Ubuntu Snap update spoiled my World Cup Final by mmis1000 on Sunday December 18, 2022 @07:47PM (#34046613)
> I don't think unattended upgrades are enabled on debian or on ubuntu.

I don't think it's true, I had the disable unintended upgrade on Ubuntu because it runs cpu at 100% and make very big noise at night.

Re:Ubuntu Snap update spoiled my World Cup Final by jrm4 on Sunday December 18, 2022 @05:02PM (#34044049)
100%.

Ubuntu doesn't seem to realize (or simply doesn't care that) enterprise servers and user desktops are entirely different beasts.

Re:Ubuntu Snap update spoiled my World Cup Final by bobmaxup on Sunday December 18, 2022 @05:16PM (#34044203)
snap keeps the last three revisions, doesn't it?
Re:Ubuntu Snap update spoiled my World Cup Final by lmm on Sunday December 18, 2022 @05:36PM (#34044617)
Maybe. Good luck figuring out what the method to run them is this week.
Re:Ubuntu Snap update spoiled my World Cup Final by abdullahkhalids on Sunday December 18, 2022 @05:17PM (#34044219)
Firefox on the release channel downloads updates automatically. And it applies the updates when you next restart the browser. This does not interrupt your browsing in any way. Which I think is fair decision for a browser with a large attack surface.

Most other software should only update when specifically instructed to.

Re:Ubuntu Snap update spoiled my World Cup Final by aliraheem on Sunday December 18, 2022 @05:59PM (#34045084)
The biggest problem is that Firefox updates the next time you open the app, without warning.

That's not a sane decision. Sane would be to update on closing.

Same way Windows offers to "Update and Shutdown" (you don't need the PC anymore why don't I under after you walk away) and not "Update on next Start up" (I'll wait until you need me to get in your way).

Re:Ubuntu Snap update spoiled my World Cup Final by yellowapple on Sunday December 18, 2022 @06:48PM (#34045889)
> Same way Windows offers to "Update and Shutdown" (you don't need the PC anymore why don't I under after you walk away) and not "Update on next Start up" (I'll wait until you need me to get in your way).

This presumes that shutting down is never a time-sensitive action. If I had a nickel for every time Windows decided it wants to spend a half hour installing updates when I'm trying to shut down a laptop so that I can put it in my bag and go somewhere with it, I'd be able to actually buy a Windows license instead of resorting to vlmcsd.

Re:Ubuntu Snap update spoiled my World Cup Final by Throwawayaerlei on Sunday December 18, 2022 @07:42PM (#34046552)
I run a desktop workstation with a UPS, its lead acid batteries are not infinite and don't like staying discharged, so at times shutting down quickly and cleanly is very important. The more I hear, the happier I am that I moved to Linux a decade and a half ago, and this general topic is a major reason I'm planning to go back to Debian after using Ubuntu LTS for my last two versions.
Re:Ubuntu Snap update spoiled my World Cup Final by vel0city on Sunday December 18, 2022 @08:56PM (#34047284)
You would probably script out that shutdown sequence, and IIRC shutdown.exe can bypass the install updates step.
Re:Ubuntu Snap update spoiled my World Cup Final by aliraheem on Monday December 19, 2022 @01:14PM (#34055460)
I should have left a "sequence shortened" warning. Windows 10/11 offer you 4 options when an update is pending. "Update and shutdown", "Update and reboot", "Shutdown" and "Reboot".

Perfect!

Re:Ubuntu Snap update spoiled my World Cup Final by k_sze on Sunday December 18, 2022 @11:15PM (#34048416)
As a side note, I've never understood why Windows and macOS updates take so long compared to Linux updates.
Re:Ubuntu Snap update spoiled my World Cup Final by rieTohgh6 on Monday December 19, 2022 @05:34AM (#34050565)
I wanted to check if it is due to stacking (security) patches instead of just extracting whole tarballs and the first result I got from Google was: https://www.quora.com/Why-are-updates-in-Linux-much-faster-t...

Quora always had reputation for being shit but I am impressed by how terrible that page is. I mean there are only two 2 types of answers there: "Window$ is BAD" and stuff that looks like generated by GPT-3( or straight up from those infamous "recipe sites" a.k.a. SEO farms).

Re:Ubuntu Snap update spoiled my World Cup Final by toast0 on Sunday December 18, 2022 @10:17PM (#34047968)
If you use win-x to access the shutdown menu, it will give you options of shutdown or update and shutdown. Although, I think that's really shutdown and update on next boot though. At least this is available in Windows 10.
Re:Ubuntu Snap update spoiled my World Cup Final by yazzku on Sunday December 18, 2022 @09:12PM (#34047459)
Agree with yellowapple. Update on shutdown isn't great either. The sane decision to me is to let the user decide when to update their software.
Re:Ubuntu Snap update spoiled my World Cup Final by aliraheem on Monday December 19, 2022 @01:15PM (#34055468)
Windows does, you can update whenever you life. All 4 possible options are offered when you go to shutdown, including skipping the update to shutdown/reboot now.

Windows does sometimes get it correct.

Re:Ubuntu Snap update spoiled my World Cup Final by jerryzh on Tuesday December 20, 2022 @01:26AM (#34062335)
I would expect a software to close itself when I ask it to instead of hiding behind and update itself.
Re:Ubuntu Snap update spoiled my World Cup Final by jimmygrapes on Sunday December 18, 2022 @06:18PM (#34045371)
Just yesterday any new tabs I opened refused to load until I restarted Firefox due to a forced update. Existing tabs became unresponsive. Granted, it did restore my session upon restart, but it did not restore the DOM and data state of those tabs.
Re:Ubuntu Snap update spoiled my World Cup Final by reisse on Sunday December 18, 2022 @06:33PM (#34045643)
I see the "Firefox has updated, you must restart Firefox to continue using it" window every two weeks or so on Ubuntu.

Though I never seen it on Fedora or Windows, might be some quirks related to Ubuntu packaging.

Re:Ubuntu Snap update spoiled my World Cup Final by franga2000 on Sunday December 18, 2022 @06:41PM (#34045776)
This is a consequence of most Linux package managers not caring if apps are running and updating their files anyways. Firefox does this because it would crash otherwise (as most other software does when you pull its files from underneath it). If it happens frequently, you must have automatic live updates enabled - maybe you don't on Fedora and that's why you don't see that happen?

On Windows, where no standard update mechanism exists, Firefox updates itself, so it does it only when it knows it's fully shut down (before it opens or after you close all windows).

Re:Ubuntu Snap update spoiled my World Cup Final by reisse on Sunday December 18, 2022 @06:50PM (#34045916)
No, Fedora package manager (dnf) does the sane thing and not replaces app files from under the running apps by default - google "dnf offline upgrades".

And for Windows there is standard update mechanism - Microsoft Store - which also does the same sane thing.

So it's Ubuntu implementation problem, and not a Firefox one.

Re:Ubuntu Snap update spoiled my World Cup Final by noisem4ker on Sunday December 18, 2022 @07:40PM (#34046532)
>dnf offline upgrades

Do I understand correctly that it is based on systemd's offline upgrade mode, i.e. installation is done at the following boot? If so, you can do that on Ubuntu too. I'm not sure how (perhaps by invoking apt-offline?), but at least KDE Discover does it on Kubuntu.

Re:Ubuntu Snap update spoiled my World Cup Final by toast0 on Sunday December 18, 2022 @10:24PM (#34048029)
> Firefox does this because it would crash otherwise (as most other software does when you pull its files from underneath it).

Most software does fine, as long as it has already mapped in all of its libraries, those files can be unlinked in the filesystem, but will remain on disk in their current form. You do run into trouble if the software is part way through starting up and hasn't mapped all the libraries, or if you update the files rather than unlinking and copying new ones (at least, FreeBSD lets you update mmaped files and all processes will see the updates, which is usually not what you actually want when the files are code).

Windows makes it very hard to update program files while programs are running, so it's not surprising Firefox endeavors to do updates while it's not running.

Re:Ubuntu Snap update spoiled my World Cup Final by iggldiggl on Monday December 19, 2022 @07:07AM (#34051155)
Due to the way multi-process browsing works, Firefox at any time still needs to be able to launch new processes in order to accommodate new tabs, or thanks to site-isolation possibly even browsing to a different origin within the same tab. Once the old binaries have been unlinked, I assume there is no longer a sane way of launching a new process using the old binaries?
Re:Ubuntu Snap update spoiled my World Cup Final by toast0 on Monday December 19, 2022 @11:35AM (#34054073)
At start, you could start a new seed process, map all the libraries and what not, but don't do any browsing work... When it's time to launch an isolated process, fork the seed process and use the child.

This doesn't seem insane to me, but might not be an easy thing to fit in to the large body of code that's already there.

You still have issues if you're starting up during an upgrade, but that's a problem with anything dynamically linked.

Re:Ubuntu Snap update spoiled my World Cup Final by iggldiggl on Tuesday December 20, 2022 @04:53AM (#34063800)
Doesn't using fork make it more difficult to cleanly separate the various child processes from each other? It also makes address space layout randomisation less effective, because every forked process starts out with the same base memory layout, doesn't it?
Re:Ubuntu Snap update spoiled my World Cup Final by toast0 on Wednesday December 21, 2022 @09:05PM (#34088839)
> Doesn't using fork make it more difficult to cleanly separate the various child processes from each other?

I don't think so? As long as the main process is separate from the seed process, and the seed process is forked before specialization.

> It also makes address space layout randomisation less effective, because every forked process starts out with the same base memory layout, doesn't it?

Yeah, I think you're right. Not sure if you could maybe do some randomization post fork, but you're probably right.

Re:Ubuntu Snap update spoiled my World Cup Final by franga2000 on Sunday December 18, 2022 @06:51PM (#34045924)
Unfortunately, this breaks horribly if you're on a shitty network (for example I work a lot on the train) and/or slow hardware. The update check delays browser startup for more than a minute when connected to wifi with no internet (this happens a lot when going through rural areas) and the update after closing function has also burned me a few times when I closed the last window, then remembered I needed to check one last thing, but had to wait several minutes for the update to do its thing (a combination of old laptop, slow internet and many other things using resources).
Re:Ubuntu Snap update spoiled my World Cup Final by sebazzz on Monday December 19, 2022 @11:09AM (#34053700)
> The update check delays browser startup

Are you sure that originates in the update check? The update itself is downloaded asynchronously while the browser runs. The browser itself checks if an pending update has been downloaded when it is launched.

Re:Ubuntu Snap update spoiled my World Cup Final by signaru on Sunday December 18, 2022 @06:52PM (#34045933)
I wasn't able to verify how FF actually behaved under snap, but snap's confusing notifications was enough to make it annoying. After failed tweaks, I'm glad that I no longer have to deal with this since I already purged FF that comes with Ubuntu and just used the binary from Mozilla's site instead.
Re:Ubuntu Snap update spoiled my World Cup Final by yazzku on Sunday December 18, 2022 @09:14PM (#34047474)
This is not my experience on Ubuntu. It updates while I'm using Firefox. I then open a tab and get the stupid message saying that welp, you need to restart that browser boy because isn't this a great UX?

I don't think this is a fair decision. Virtually nothing requires such a forced update. And the browser should be sandboxed by the OS anyway.

Re:Ubuntu Snap update spoiled my World Cup Final by hysan on Sunday December 18, 2022 @09:20PM (#34047522)
I’m not so sure that they only download. On macOS, Firefox (and Chrome) sometimes stop working in odd ways when they do the background ”download”. For example, file pickers stop functioning or tabs stop loading. All of this starts working again after restarting and letting it update. It’s happens more than a handful of times every year. Enough so that I’ve picked up on the pattern that it only happens when I see it say “update” by the settings menu.
Re:Ubuntu Snap update spoiled my World Cup Final by andreareina on Monday December 19, 2022 @12:23AM (#34048805)
On my Ubuntu system it applies the update while still open. Then I open a new tab to do something and I'm told I have to restart.
Re:Ubuntu Snap update spoiled my World Cup Final by marssaxman on Monday December 19, 2022 @01:18PM (#34055528)
> This does not interrupt your browsing in any way.

That's not been my experience. I don't know what system you're using, but with Firefox on Ubuntu, I discover that Mozilla has put out another (goddamn) update (again, already, goddamnit!) when all my tabs suddenly crash, forcing me to restart the browser.

Re:Ubuntu Snap update spoiled my World Cup Final by forrestthewoods on Sunday December 18, 2022 @05:35PM (#34044588)
> I think the more important thing here is that the very idea that something should update itself is so incredibly insanely broken and I cannot for the life of me understand why it's the norm.

Eek hard disagree.

Most things I want to auto-update. Preferably at 4am. Somethings I want to disable auto-update.

What I never want is things to update when I’m in the middle of something.

Re:Ubuntu Snap update spoiled my World Cup Final by antiframe on Sunday December 18, 2022 @06:12PM (#34045286)
It sounds like you want to control a policy of when things should update. For example Firefox every 4am, Kernel when you say so, Python 2.6 never, etc. I understand "something should update itself" to mean that the user doesn't get to set the policy, it does.
Re:Ubuntu Snap update spoiled my World Cup Final by ezfe on Sunday December 18, 2022 @06:14PM (#34045313)
macOS never interrupts the user, for example. Even if you click the install button, if you (X) out of the "restarting" notification it won't restart/install the update.
Re:Ubuntu Snap update spoiled my World Cup Final by ezfe on Sunday December 18, 2022 @06:15PM (#34045326)
This is a big reason why macOS snapshots your disk before an update. If you ever have a problem, reboot to recovery mode and you'll see a "Restore backup" entry from just before your update that will instantly revert the system to the previous version.
Re:Ubuntu Snap update spoiled my World Cup Final by worik on Sunday December 18, 2022 @07:34PM (#34046472)
> the very idea that something should update itself is so incredibly insanely broken and I cannot for the life of me understand why it's the norm.

Yes. For user orientated interactive systems it is mad.

But it has its uses, IMO, for IoT devices.

It was the reason I do not use Ubuntu on my personal computer. If I were in the business of building connected devices I would be interested.

Re:Ubuntu Snap update spoiled my World Cup Final by wodenokoto on Monday December 19, 2022 @03:03AM (#34049657)
Because everything is connected to the internet and what was once working is now a security liability not just to your machine but to other connected machines.