2

I was just wondering how to completely disable updates on my Yoga 2 11, which has a corrupted BIOS-- I can't fix broken updates with a reinstall anymore. I was wondering specifically if there was a way to disable the commandsudo apt-get upgradeand the update manager as well. I don't want my laptop being updated at all, and I know I'll break my system or something if I update! Thanks for any and all input.

2

In the System Settings go to Software & Updates, under "Updates" set "Automatically check for updates" to Never

And Disable unattended upgrades:

sudo dpkg-reconfigure unattended-upgrades  

Select "no" when asked "Automatically download and install stable updates?" then select "ok".

Instead of disabling apt-get it would be better to place a hold on packages you dont't want to get updated as shown in the answer to this question:

How to prevent updating of a specific package?

  • When I type in sudo apt-get upgrade, it asks me if I want to upgrade packages still. I'm afraid to see if it will. Will it, now? It shows that the upgrades are there. – Robert Sederholm Apr 7 '18 at 7:10
  • apt-get update only updates the list of available packages and their versions, but it does not install or upgrade any packages. As long as you have disabled updates and unattended-upgrades no packages should automatically update. – stumblebee Apr 7 '18 at 7:22
  • Yeah I'm not afraid of automatic updates, I'm afraid I'll stupidly type in sudo apt-get upgrade -y and upgrade everything. – Robert Sederholm Apr 7 '18 at 7:25
  • Sorry I mis-read your first comment. Yes - if you manually run apt-get upgrade it will install the updated packages. It shows upgrades are there (available) because apt-get uptates had been already run. – stumblebee Apr 7 '18 at 7:52
  • 1
    Well yeah, but you haven't given me a solution to keep my update-happy a** from updating/upgrading with the proper commands w/o thinking about it lol – Robert Sederholm Apr 8 '18 at 2:38

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.