Ubuntu 24.04: How to Automate Updates with Unattended Upgrades

Поділитися
Вставка

КОМЕНТАРІ • 48

  • @kil-roy
    @kil-roy 2 місяці тому

    Man has mastered the perfect length little chunk of new information to learn and apply. love it

  • @ChrisGilland
    @ChrisGilland 2 місяці тому +28

    Jay, I really hope you see this comment. If you could please like it just so I get a notification that you saw it, that would be appreciated. I am totally blind, since birth, and use a screen reader on all of my devices. You verbally did not really speak and say what the lines you were editing in the configuration file specifically said, you just visually showed yourself editing them. Might I make a suggestion that going forward in your video production, while it might take a little more time to do so, for blind people like myself who are just starting out, it would be very very very helpful if you could tell exactly what the line is in the configuration file that we need to find, and exactly what to change it to specifically. Visual cues are not going to work for blind people. Thank you for your consideration. Keep up the great work.

    • @chandanpuri2428
      @chandanpuri2428 2 місяці тому

      For precision sake I think it would be better to put the exact commands in text form with timestamps (linked in the video description) or as captions on the video itself (assuming those are compatible with screen readers).
      Also, in my experience, many commands can't be spoken in a way that avoids ambiguity without sounding weird or taking up an excessive amount of runtime. I'm sure that for listeners with lots of experience with screen readers, that is not a problem, but that isn't me or the vast majority of the audience.

    • @TroubledTrooper
      @TroubledTrooper Місяць тому +1

      I hope he does this. I gave you a like. This won't be a problem for people who view either, I remember that Fred Rogers got a letter from a blind viewer who asked him to describe things too and after that he did it in every episode and it just made them better for everyone.
      UA-cam needs to make a feature that copies text on the video in an overlay, it wouldn't be too hard for them considering you can screengrab (prt scr on keyboard), copy image and then paste it into chatgpt and ask it to write out text thats on the video screen. The AI can already transcribe from a desktop screengrab perfectly. I often do this to copy code thats not in descriptions, so yeah that may help too. Google could do something similar with AI, and it would be so helpful for you.

    • @ChrisGilland
      @ChrisGilland Місяць тому +1

      @@TroubledTrooper you make a valid point about using things like ocr with tools like ChatGPT, or even things like google Gemini, etc. The problem is, AI isn't perfect. It still doesn't mitigate the fact that people need to be inclusive in their videos. I'm not saying for one second that Jay was not trying to be inclusive. That's not at all what I meant. i'm simply just saying that the more inclusive people can be, the better. I don't really like the idea suggested by the other comment or about timestamp overlays. While I get your point entirely, those really would not be very accessible from a screen reader standpoint. I understand that verbally describing things can be a bit more time-consuming, but consider how much more people you could reach if you were willing to just take that extra couple of seconds. And to people like myself who are blind, to our defense, if that extra time is a problem for you, there's always the fast-forward icon. It's simple enough for people that are cited to click.

    • @ChrisGilland
      @ChrisGilland Місяць тому

      @@chandanpuri2428 by the way, just don't a sidenote, I do remember exactly what you're talking about with the whole situation with Mr. Rogers, and you are correct. He was very very inclusive once receiving that letter. This is just another example of how bringing a little bit of awareness can go a long way.

  • @tubeDude48
    @tubeDude48 2 місяці тому +1

    This one of the best you have done; most have been basic for me since I go back to the UNIX days. Started using Linux in 2002. 👍

    • @TroubledTrooper
      @TroubledTrooper Місяць тому +1

      I started 4 months ago, respect, you guys who used Linux back then paved the way for us.

  • @PatrickMagill
    @PatrickMagill 22 дні тому

    Thank you so much for all of your efforts in sharing your knowledge and making fantastic videos. You have no idea how much I appreciate this. Thank you.

  • @tcbquick
    @tcbquick 2 місяці тому

    I am using ansible-pull cron job for this. But this appears to have some additional granularity offerings. I will be examining further.. thanks alot for your videos! Most people I share your videos with like your presentation methods.

  • @Practical-IT
    @Practical-IT 2 місяці тому +1

    Great video, Jay!

  • @wiepcorbier
    @wiepcorbier Місяць тому

    I'm glad youtube makes it possible to skip the bs about sponsors and other crap. 😊
    Love your video's btw. ❤

  • @Errantduvide
    @Errantduvide 2 місяці тому +2

    Thanks Jay, with this and my ubuntu pro sub i can go walk in the jungle for ten years long.

    • @TroubledTrooper
      @TroubledTrooper Місяць тому +1

      You can make that 12 years if you pay after 10 years if I recall correctly, pretty cool that Canonical offer such long support.

  • @leewardwx
    @leewardwx 2 місяці тому

    Wish this video had come out a few months sooner 😀 Maybe cover the logs to check to see what updates are getting installed... I know you covered the email method.

  • @FatLavaCake
    @FatLavaCake 5 днів тому

    Awesome Tutorial. Thank you

  • @SGMPhil
    @SGMPhil 2 місяці тому

    Very helpful - thank you!

  • @jacksoncremean1664
    @jacksoncremean1664 2 місяці тому +2

    unattended-upgrades is definitely one of those things that are a must have for a server, it can get tedious to patch manually and often it'll patch issues faster than you. A must have with unattended-upgrades is needrestart so services can be automatically restarted, just make sure it's configured to restart services without any interaction.

    • @javabeanz8549
      @javabeanz8549 2 місяці тому +1

      Just be sure your need-restart is updated first! Nasty little bug was in there...

    • @jacksoncremean1664
      @jacksoncremean1664 2 місяці тому

      @javabeanz8549 Or use unattended upgrades to patch needrestart

    • @TroubledTrooper
      @TroubledTrooper Місяць тому

      I am getting into Linux servers now so I am trying to learn all I can. I used Linux Desktop now for 4 months and I want to get into server stuff too, I think I will use Ubuntu, thanks for the tip.

  • @sidneyking11
    @sidneyking11 Місяць тому

    Is there a video showing how to setup the mail part of this video to be able to send out the report?

  • @ronm6585
    @ronm6585 2 місяці тому +1

    Thank you.

  • @FrankRueth
    @FrankRueth Місяць тому

    Got stuck on 5:55 in this video.
    The file 20auto-upgrades did not exist in /etc/apt/apt.conf.d with Debian 12 on a Zimaboard.
    Solution:
    The file /etc/apt/apt.conf.d/20auto-upgrades can be created manually or by running the following command as root: dpkg-reconfigure unattended-upgrades

  • @RK-ly5qj
    @RK-ly5qj 2 місяці тому +1

    That unattended upgrades broke my debian xD

    • @javabeanz8549
      @javabeanz8549 2 місяці тому +1

      I had Debian eat itself manually running updates...

  • @anashanachi9859
    @anashanachi9859 3 дні тому

    but using a cronjob that runs periodiically
    for apt update -y && apt upgrade -y wouldn't be enough ?

  • @gormhatre
    @gormhatre 2 місяці тому

    You shoud have shown how to run the command manually and any option available to check how much it has completed.

    • @benlemcke2863
      @benlemcke2863 2 місяці тому

      You can also do a mock run to test, if the config works.

    • @markettrader7112
      @markettrader7112 2 місяці тому

      feel free to enlighten us

    • @gormhatre
      @gormhatre 2 місяці тому +1

      @@markettrader7112 I don't kno all the options either. That's why I said he shoud have shown it.

    • @michaeljaques77
      @michaeljaques77 2 місяці тому +1

      @@gormhatre unattended-upgrades -v --dry-run

  • @NetBandit70
    @NetBandit70 2 місяці тому

    Unintended upgrades!

  • @Ranblv
    @Ranblv 2 місяці тому +1

    I just added a cronjob for root that does the same but it's nice.

  • @MartinWoad
    @MartinWoad 2 місяці тому +8

    Unattended updates is exposing yourself to a supply chain attack. If you are an individual user then you don't need it, if you are an enterprise then you should have your own team review the patches anyway.

    • @islammu9207
      @islammu9207 2 місяці тому +8

      Sometimes you need to trust security updates and install it as fast as possible specially kernel sec updates. If something went wrong globally because of the "update" which happened already this year. Then it's not the cyber security team's fault. To they did their job very well. And how many companies could hire experts to review every package update to make sure it is have no issues. Even Microsoft itself pushes courrpted updates sometimes. It is the tech companies responsibility to push safe and tested updates. Not us.

    • @michaeljaques77
      @michaeljaques77 2 місяці тому +2

      If Debian or Ubuntu, two of the bigger server platforms on the internet, are hacked, we have MUCH bigger problems!

    • @K2teknik.
      @K2teknik. 10 днів тому

      @@michaeljaques77 Attacks by hacking is just one issue, an other is updates that breaks your server or applications on it. Updating blindfolded is not necessarily the way forward.

    • @michaeljaques77
      @michaeljaques77 10 днів тому

      @@K2teknik. In Debian at least, as long as you are not using sid/testing, Updates are well tested and only security based normally. If you don't manually check your servers for updates daily, patching and the

    • @j.c.5011
      @j.c.5011 2 дні тому +2

      Pure nonsens.

  • @eljw247
    @eljw247 2 місяці тому +1

    Is there a benefit to using this over crontab? I have a plex server & use crontab to upgrade, update & autoclean/remove.

  • @AdrianF-x9v
    @AdrianF-x9v 2 місяці тому +2

    Recommended reboot if required after an unattended upgrade? Really? lol.
    That’s ok for toy servers but what about the real world running mission critical business services?

  • @sotecluxan4221
    @sotecluxan4221 2 місяці тому

    !

  • @ChrisGilland
    @ChrisGilland 2 місяці тому

    also, what exactly is /etsy? at least that's how it sounds like you're saying it. Are you sure you don't mean "slash e t c?

  • @giannakossimos1
    @giannakossimos1 2 місяці тому

    Very nice , just enabled , very cool and flexible