Highlight of my Morning
Highlight of my Morning
apt-get update and apt-get upgrade…
It’s fine! You were trying to show how Windows is better because you can’t make a mistake like that and succeeded!
I’m joking
Maybe OP knew all along that they wanted to use the previous package list to upgrade and fetch the new one after! Maybe we’re all actually inverting it…
(I’m just being silly, I recognize that an old package list would probably cause issues with installing or upgrading packages.)
(I’m just being silly, I recognize that an old package list would probably cause issues with installing or upgrading packages.)
No problems anywhere you can always install older versions from a repo.
Upgrade -> update two days ago and then again today will leave me with exactly the same packages as it would if I ran it correctly the first time and then not at all today. Just the state of two days ago.
If you’re too stupid to remember one or two commands there are GUI applications available where you can click “a button” to update your system.
Or make an alias with the update command and name it “update”. This works on every distro.
If you can’t remember one or two commands then you are in fact stupid. With that said, Linux is for everyone.
There are distros that have auto updates as a feature they ship (Linux Mint comes to mind). There are distros that are basically impossible to break and there are distros where you are responsible for building your own system and keeping it functioning. It all depends on your own needs. Linux gives you the freedom to choose and there are more than one way to do things.
Which is what you see happening when updating or reinstalling a gpu driver.
Funny thing is, gpu drivers can still cause a bsod by causing fuckups in the directx driver, which ive seen happen :')
apt update updates the local package cache of apt so it knows what packages have updates. apt upgrade then installs those updates.
apt-get is so old it officially misses packages that apt… gets.
apt-get is supposed to be the script-safe variant, i.e. I'd imagine it's the more stable of the two.
apt generally downloads more things than apt-get on my Debian machine. apt-get never broke anything, but I tend to eye it suspiciously now.
It’s actually just personal experience, but I stopped using apt-get a few years back now because I noticed if I did apt after apt-get there would often be a bunch of packages it missed.
Edit: looks like it might be because apt-get can’t satisfy dependencies install new packages when upgrading while apt can since apt is a suite of different apt tools rolled into one.
apt-get can’t install new packages during an upgrade. On initial reading I was thinking there were specific packages it couldn’t download or something, but this makes sense too. Regardless, this is news to me; I always assumed that apt and apt-get were the same process, just with apt-get having stable text output for awk’ing and apt being human-readable. I’ve been using nala for a long time anyway, but this is very useful knowledge.
I’ve been using nala for a long time anyway
Does Simba know about this?
Wait what.
apt-get is made for scripting, apt is interactive. Both should resolve dependencies. dpkg does not resolve them.
But for interactive usage always use apt, guides using apt-get have no idea what they are doing
apt-get upgrade --with-new-pkgs
apt-get just for a bit of frivolity
yay. permissions for sudo will be asked for automatically.
unattended-upgrades and cron jobs for everything else ftw.
Yeah alright. That’s one way of looking at it 🙂
I guess what I meant is that I don’t like upgrades that happen without me explicitly requesting each and every one of them, and me watching the upgrade process as it happens for errors.
I never got unattended-upgrades to work for me on the machine I tried it on. Best I could tell, it just didn’t do anything. It was frustrating.
But many years back I set up my raspberry pi with a cron job that was effectively (if not literally) apt update && apt full-upgrade && reboot and that seemed to be working just fine.
It broke some things (horrifically) for me because headers didn’t get updated, modules didn’t get rebuilt.
To make it worse, I didn’t set it up. That shit is disabled now. Defunct. Toast. Never again to run.
I followed a number of guides to try to get it to work. Including doing that. No dice.
I still think it’s probably user error on my part, but I’m still shocked there was no command to effectively “force run an unattended upgrade now” to test that it works correctly.
I even set it up using ansible, should work lol
Install the package, edit the config file, maybe enable a systemd service, maybe not even that
alias up=‘topgrade’