by dataflow · 8y ago · 0 comments
I don't understand this obsession with package managers. You guys really have less trouble with package managers than Windows installers? It was literally just 2-3 days ago I was trying to update Ubuntu and I couldn't, because of some stupid error (I don't remember exactly) along the lines of "libgl1-mesa-glx depends libglapi-mesa XX.YY but ZZ.WW is present" (again: I don't remember the error exactly). And no matter which packages I tried to upgrade/fix/uninstall/whatever or in what order I tried it, it wouldn't budge. I guess the package dependency graph was somehow impossible to satisfy? I assume because different packages required different versions of the same package? This was not the first time I've ran into problems like this... eventually I just wiped it and restored from a backup. (Which I had made from moments earlier, because, well, did I mention this wasn't the first time this has happened?) To say I don't see what all the fuss and obsession with package managers is about is putting it very... mildly.
Hell yeah. I remember when I had to set aside entire weekends to reinstall a Windows machine. These days, when I need to reinstall one of my Linux boxes, I just fire up the Arch installer, and instead of installing the "base" package group as the manual instructs you, I install my configuration package for that machine which pulls in all applications (from the kernel and coreutils all the way up to Steam) and contains all configuration. When I recently reinstalled my notebook to enable full-disk encryption, it took me around 30 minutes, of which most time was spent downloading packages, and downloading /home from the backup storage. Net working time was maybe 5 minutes. I actually watched a movie while doing it.
The issues that you're seeing are because the particular package manager you encountered is shit. (Or rather, because Debian's/Ubuntu's byzantine packaging processes create a ton of pathological cases.) I've never had such problems on Arch. (Except for those cases about once a year when they restructure something and the package manager is confused, in which case you go to archlinux.org and the most recent news item contains the magic shell incantation that immediately resolves the issue.)
I will concede that I usually run into far fewer problems/bugs with Arch's pacman than Ubuntu's apt/dpkg. It seems far more robust, and honestly more intuitive too. On the other hand, (1) getting things set up in Arch in the first place is so much more of a pain that it wastes just as much time, and (2) I have also had bad luck with Arch, when after re-downloading and re-trying the install a couple times, I finally realized the ISO I downloaded just had a broken build. (?) I would follow the setup instructions (yes, the appropriate ones, I know they change over time) but pacman would just somehow choke by the end. Once I realized it was a problem with their build I just went back to an earlier ISO and updated and it was fine. But yes, overall, I've had far better experiences with it.
When I switched to Linux full time, I basically replaced Ninite with a one line shell script and was done. It also removes any worry that Ninite might go sour in the future.
2. Because it's really convenient to just link people to its Github repo when they ask questions like "how do you configure MPD to use PulseAudio?".
No, I do not think Installers are better than package management. By far, package managers are a key factor in system stability.
I'm sorry, what kind of protection is this that only after trashing my installation Apt decided to inform me that it can't handle the package dependencies?
And on top of that, for some reason you think the only alternative is to _bypass_ the package manager and get an even more borked installation? You don't see a third option?
> Having to route around the protection
which I never did or suggested I should do...?
> is precisely why you should use a package manger properly
and you are insinuating this somehow implies I must be using my package manger "improperly" because... why and how exactly?
Yes, because:
>(I don't remember exactly)
There is your problem.
Your package manager prevented you installing something which would have caused instability, and you didn't grok it well enough to understand, and somehow this is the fault of package management?
Did you upgrade your dependency graph before deciding it was all too difficult to understand and use the tool to fix the problem? (apt upgrade && apt update)
apt was telling you something important: you chose to just ignore it because "too confusing" or whatever .. maybe because you grew up on the very poor habit of "just install it and who cares whatever may happen afterwards" of installers?
>_bypass_ the package manager and get an even more borked installation? You don't see a third option?
There is a third option - upgrade your dependencies, try again, and if it persists - remove the offending package and replace it with one that works. That dependency graph is there to tell you: your system may become unstable after you install this.
No such luxury happens with the plain ol' installer methods ..
sudo apt-get autoremove && sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
EDIT: A simple solution to your problem, only possible with package management:What "it" are you even talking about? I didn't "choose to ignore" anything. I Marked all Upgrades, clicked Apply, rebooted when it was finished, went to see if there were any more upgrades (there were some), tried to mark & apply them, and was greeted with this error. Apt/Synaptic got me into this broken state and couldn't get me out of it. I don't know what story you're reading, but it doesn't seem to be what I've been writing. There was nothing for me to ignore. The error wasn't something I ignored; it was the problem.
I know, that's really hard for Linux Desktop people to understand, because it goes against their nature of making everything as complicated as possible for no reason. It's not rocket science, lots of systems managed it in the past.
I prefer to just keep the system stable through careful application of well-curated dependency graphs. I've never run into any issue, having used Linux since the very first day, that I couldn't solve by proper application of package manager tools. It seems its easy for newbies and those who don't care enough to get into trouble, but with the right attitude you can easily have systems with years and years of uptime (personal experience).
I only hit a similar problem in Windows once, when it hung up installing a new C++ runtime, and since then I could neither install another C++ runtime nor rollback it (restore system did nothing), resulting in applications randomly crashing or refusing to run because they were loading the wrong C++ libraries, and the only solution I found was reinstalling Windows again.
Right, Windows isn't perfect either. What it does have going for it, though, is that on Windows there are comparatively very few external shared libraries -- in fact, the only ones I can think of are in fact the C, C++, .NET, and SQL runtimes. So, as you confirmed, it means application updates rarely break your system globally. (OS updates can still wreck the system... but that's no worse than Linux distros in my experience... but let's not go on this tangent.) Of course, that comes at the cost of needing to rely on the vendor for updates to their uses of third-party libraries. It's understandable that not everyone would like this trade-off (though mine tends to prefer an out-of-date system that works than a patched system that's broken), so that part (kind of) makes sense, especially if people are extra-worried about security over productivity. The part I find mind-boggling is that Linux users are obsessed with package mangers for the initial installations themselves, not merely updating. Package managers seem (almost?) fundamentally flawed in that regard, and that's what baffles me. Do they really only ever want to install FOSS software blessed by their OS distro, and do they really think it makes sense for a system to break if they install anything unblessed? More power to them if they can live like that, but I can't.
In terms of the problem you faced, do you mind if I ask how recent of a Windows version it occurred on? (i.e. was it on pre-XP, XP, 7, 8/8.1, or 10?) One generic tip I do have is to use VirtualBox to boot into the host OS with an immutable virtual disk, make all the changes, and verify everything works correctly before doing it for real. It can come in handy when installing programs or updates that you suspect might be problematic. I can provide more details on this if you're interested; just let me know.
Answering your question, I hit that problem on a Windows 7 machine, it was not a suspicious update, just the usual "install C++ redistributable 20xx to make this program work", but it crashed halfway for some reason. After a while I just reinstalled Windows (it was almost a clean install, so nothing starting anew was simply faster).
>The part I find mind-boggling is that Linux users are obsessed with package mangers for the initial installations themselves, not merely updating.
Yes, because it keeps the system functional and operating and - if you use it properly - package management is a hellaciously great way to build a system.
> Do they really only ever want to install FOSS software blessed by their OS distro, and do they really think it makes sense for a system to break if they install anything unblessed? More power to them if they can live like that, but I can't.
Its your system, manage it how you like. But the default of 'safety and stability first' in a package manager is a feature, not a bug. Don't blame the tool if you don't know how to use it properly - its clear that you simply do not know how to use package management to your benefit. This doesn't mean package management is of no benefit; it means your basis of operating/administering the system is flawed. I would suggest this is due to your attitude more than anything else; its certainly not for technical reasons.
I do. And like you said: "was". That's why I asked which version of Windows parent is talking abomut. Why are you bringing it up so many years later when you explicitly acknowledge it "was" rather than "is"?
> Don't blame the tool if you don't know how to use it properly
So many of you are baselessly claiming this yet none of you are telling me what I could have possibly done "improperly" to get into this mess. I told it to update everything. And there were no packages that had more updates... except these ones which wouldn't budge. If just telling my system to update and letting it do whatever it wants is "not using it properly" then -- to put it as nicely as I can put it -- there is a UI/UX problem. (Read: it would do a good job of explaining why a Linux distro isn't the main desktop OS, wouldn't it.)
Right now, my biggest nightmare are VST plugins. They are in fact the reason why I didn't upgrade my PC from an i7 920 for years. I estimate it will take me at least a week of full spare time use to deinstall them on the old machine and re-install them on the new machine. Steam would make many people a huge favor if they managed to enter the pro audio market, which still comes with their own installers, licensing schemes, DRM, spurious hidden support services, etc. All the bad stuff, exclusively for honest customers.
I probably need to look into QoS again, but my ISP's router has it locked down.
You wouldn't have this problem if you didn't give up your freedoms to mega corps (only some snark).
"I really really want this package and do whatever other proprietary shit this script I didn't read thought was a good idea (like maybe put it into the system with some bizarre name) on a system that will always have this NVIDIA card in it"
And now you are trying to upgrade to something (the proper mesa gl library) which conflicts with that request. But because the package you "installed" has no information (because it's not a real package; because it's a bundle of proprietary code that NVIDIA refuses to properly support) the package manager can't really help you (it can't remove a package it doesn't know how to, so it can't remove the dependencies it's providing, so it can't add a new package with the same provided dependencies). You have to undo whatever shit that script did before you can proceed with a stable system.
Also note, what you are trying, is basically impossible with a Windows system (e.g. installing an arbitrary video driver; moving a system - without re-installation - from hardware to a virtual box system, or even hardware to hardware). So if it doesn't work... it's not like you had any other options anyway. NVIDIA assumes the Windows paradigm here, the open source systems you bludgeon with their proprietary code can do nothing to stop the bad actors you force on them from doing bad things.
I don't know the list of NVIDIA driver packages off the top of my head, or whatever bizarre shit they did to your installation, and it's not the responsibility of the Linux community to provide tech support for your hardware manufacturer. I had considered trying to be more helpful, and do some cursory research into your problem, but your attitude towards someone else that was being extremely helpful showed you don't want to be helped, you want to angry at someone. We are not your tech support, so I can tell you: Fuck off.
Not in Virtualbox without the guest additions installed. Even with them, it would be a different binary blob. I mean, don't let me get in the way of your profane, unhelpful, and extremely unnecessary rant, but...
1. I wasn't here to seek tech support at all. The discussion was on package managers and I was sharing an experience I had. Users such as you decided to issue judgments that I must have necessarily ignored apt and broken my system by... installing non-OSS software (?!) without any information on my actual system setup. As I said in the very beginning, I already reverted to my backup. Nowhere did I solicit tech support, and nowhere did I expect any, especially based on almost complete lack of knowledge about the actual system configuration.
2. Flagged. This is the first time I've seen such an attack on HN. And you can imagine I have no interest in replying after this.