News for hackers. Stuff that matters.
Re:Switching my parents over to Linux saved me a lot of head... by rhizome on Sunday January 20, 2019 @02:27PM (#18955023)
it's a pain to have to locate and reinstall from scratch all the packages I need.

    dpkg --get-selections | cut -f1 > ~/installed_pkgs.log
    cat installed_pkgs.log | xargs sudo apt install
Re:Switching my parents over to Linux saved me a lot of head... by bigbugbag on Sunday January 20, 2019 @03:13PM (#18955318)
Except it doesn't work that way as some package name have changed and the command fails due to some package not existing anymore.

It give something to start with but still requires human intervention from someone who knows how to navigate in this mess.

Re:Switching my parents over to Linux saved me a lot of head... by fro0116 on Monday January 21, 2019 @02:21AM (#18958374)
I actually remember running into this issue a lot when building Docker images. Generally you want your docker image to be reproducible so you'd want to lock versions of your dependencies. But when doing this with apt-get install, a lot of the time I find that when a new version of a package is released, the old one gets removed and becomes no longer accessible, so locking versions actually ends up resulting in _more_ build flakiness than just using the latest of whatever package available at build-time, which is obviously not ideal.

Deleting older versions of packages that people may still be relying on seems like a very obvious no-go in a dependency management system. Any idea why this happens regardless? Is it just a matter of costs? Or is there more nuance to it that I'm missing?

Re:Switching my parents over to Linux saved me a lot of head... by tsukikage on Monday January 21, 2019 @06:45AM (#18959670)
The entire software industry has shifted to a stance of not caring when updates break user workflow, experience, functionality and habits. For basically any modern piece of software, whether/when to take each update, rather than being a no-brainer, is a very difficult decision: it is impossible for the end user to separate security/functionality fixes from workflow/functionality-breaking behaviour changes. Everything, across the board, universally, suffers from this: web browsers (few plugins survive browser updates), office software (ui rearranged every time), operating systems (packages and entire applications just vanish)...

Visible behaviour and functionality is changed or removed without user involvement, choice or recourse, turning every update into a game of Russian Roulette. Even LTS builds don't mean no breakage of behaviours users rely on.

From the developer's POV maintaining security/bugfix-only forks of every feature branch rapidly becomes intractable as a project gains complexity / matures. Meanwhile, for startups, "move fast and break things" is the creed. So as we demand more from our software overall, this situation can only get worse, not better.

The temptation for modern users to say "you know what? it's MY bloody computer, not yours; my problems are actually more important to me than whatever you think you're solving" and unplug from the update streams is overwhelming.

Re:Switching my parents over to Linux saved me a lot of head... by gambiting on Tuesday January 22, 2019 @03:33AM (#18966863)
Yep. I think I'll literally stop taking Android upgrades because of this. Just few years ago I'd get really excited every time new version of firmware was released for my phone, but now I loathe it - every single damn time the interface changes and you can't do anything about it. Like now I have taken the upgrade to Android Pie for my OnePlus 5T, and....the clock moved to the left now. Ok, google for a solution - nope, can't move it back to the right. Someone somewhere decided that this is "better" so the customer has to accept it. Like you said, I'm getting really fed up with this - is it my phone, or not????
Re:Switching my parents over to Linux saved me a lot of head... by hnnh44 on Monday January 21, 2019 @11:47AM (#18961534)
Isn't this what semantic versioning tried to address?
Re:Switching my parents over to Linux saved me a lot of head... by rhizome on Monday January 21, 2019 @01:35PM (#18962364)
But when doing this with apt-get install, a lot of the time I find that when a new version of a package is released, the old one gets removed and becomes no longer accessible, so locking versions actually ends up resulting in _more_ build flakiness than just using the latest of whatever package available at build-time, which is obviously not ideal.

I would maintain a local apt repository for that situation.

Re:Switching my parents over to Linux saved me a lot of head... by izacus on Sunday January 20, 2019 @04:54PM (#18955843)
It gets worse when dependencies have changed and now you've installed a library that's incompatible with the dependencies of an app you need and everything grinds to a halt.
Re:Switching my parents over to Linux saved me a lot of head... by tempestn on Sunday January 20, 2019 @05:37PM (#18956063)
Yeah, I've found that enough things change between installs that it's really tough to automate the process. Instead I keep a document that lists all the steps I need to set up my dev machine from scratch (with a data backup), and each time I go through the process I update the document. That makes it much less taxing than trying to figure out and remember everything without a guide, but is flexible enough to handle the inevitable differences from one time to the next.

If you're provisioning machines on a regular basis it's a different story, but if it's your own personal machine that you're reinstalling maybe every couple years this seems like the most straightforward approach.

Also: Use LVM and snapshot before updating to save yourself a lot of headaches.

Re:Switching my parents over to Linux saved me a lot of head... by lostapathy on Sunday January 20, 2019 @08:06PM (#18956743)
I went one step farther and built an Ansible role for my workstation and try to install everything via that role. I don’t always, but it sure makes reloads and new machines easier to deal with. I have since split it into a couple roles for full desktop vs somewhere I just ssh into but have enough access to install things to suit me.
Re:Switching my parents over to Linux saved me a lot of head... by derefr on Wednesday January 23, 2019 @02:01PM (#18981439)
When package names change, or don't exist any more, it requires human intervention even when the rest of the update process is automatic. This is the difference between `apt-get upgrade` and `apt-get dist-upgrade`. All you're really doing by putting off the update in that case is compressing all the little bits of human intervention you'd have been doing during every update, into one big push.
Re:Switching my parents over to Linux saved me a lot of head... by akx on Sunday January 20, 2019 @03:56PM (#18955524)
`dpkg --get-selections` also lists explicitly deinstalled packages, so you'll want to grep the list first.
Re:Switching my parents over to Linux saved me a lot of head... by rabidrat on Sunday January 20, 2019 @02:57PM (#18955219)
Tell that to your grandmother over the phone and see how much of a pain it is :)
Re:Switching my parents over to Linux saved me a lot of head... by johnchristopher on Sunday January 20, 2019 @03:05PM (#18955267)
Story-time:

If she's like mine she's going to tell you everything is fine and when you visit her in a few months you'll see it isn't working.

I once helped my grandma, on the phone, navigate through a VCR to record a star trek episode. Everything was going well but I came home to an empty VHS.

"I told you it was fine so you wouldn't worry."

I miss my grandma more than that episode of star trek.

Re:Switching my parents over to Linux saved me a lot of head... by rhizome on Monday January 21, 2019 @01:32PM (#18962351)
I'm just jealous you had a grandma who watched Star Trek!
Re:Switching my parents over to Linux saved me a lot of head... by mrmyers on Sunday January 20, 2019 @08:42PM (#18956892)
Talk your grandmother through anything GUI related over the phone and compare. Spend half an hour trying to help her figure out which button she should press only to find out at step 3 she opened facebook instead of the start menu, and that she actually has been pressing buttons randomly for 15 minutes while producing assorted nonspecific vocalizations of agreement while doing literally none of the things you've asked.

Or even get the legendary confusion of them never having turned the machine on in the first place.

Generally, after years of experience doing exactly this, I've found it is a lot easier to dictate a literal sequence of characters over the phone than coordinate a complex visual action with only confused verbal feedback.

Of course, with terminal stuff, you have even further options in, say, sending an email with an attached bash file for them to download and click, or if this continues, set up a script for them (and ad an icon for it in their start menu) that ssh's them into a handy aws or digital ocean instance so you can then ssh into their machine from the comfort of your own home and do it yourself.

Re:Switching my parents over to Linux saved me a lot of head... by flukus on Sunday January 20, 2019 @05:58PM (#18956165)
This isn't a great example (or maybe it is considering how non-trivial the operation is), but running stuff from the command line can often be great for tech support. There is a reason support normally asks people to open things from the run dialog instead of asking them to go through the start menu.

This might be a bit too much to expect grandma to perfectly type, but "sudo apt-get update" and "sudo apt-get upgrade" to update her system is certainly easier then trying to describe what to click on a graphical UI.

Re:Switching my parents over to Linux saved me a lot of head... by rhizome on Sunday January 20, 2019 @07:05PM (#18956472)
If they're running Linux, I can ssh in and do it myself. :)
Re:Switching my parents over to Linux saved me a lot of head... by mmarx on Sunday January 20, 2019 @04:24PM (#18955688)
There's also dpkg --set-selections.