DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I toyed around with Debian for many years. When Windows 10 came out and Microsoft decided that they own my computer and should be able to install their updates when they want, I made the switch to Debian on my laptop. Now Debian seems to be going down the same path.
I absolutely would like to be notified when there are updates available so that I can install them when I have time. However, it is not appropriate for an OS to install updates on its own whenever you [try to] shutdown, particularly not on a laptop.
I went in to /etc/apt/apt.conf.d/##unattended-upgrades and commented out the lines that were uncommented (in my case these were:
"origin=Debian,codename=${distro_codename},label=Debian";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
"origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
)
Somehow, I still seem to be getting updates that install when I shutdown though. Last night when I went to shutdown, the shutdown prompt said "Install updates and shutdown", but did not give me any option to shutdown without installing the update (after starting up this morning, it appears that update was for skypeforlinux).
My question is: How can I fully disable automatic updates (such that I don't get prompts like the above, nor do I have updates installed at any time without my approval, nor do I have to give my approval for updates in order to shutdown/startup)?
Uninstall unattended-upgrades I guess. The package is neither required nor important nor standard.
Well, that's a simple solution. Just done, hopefully it works. If I don't have any issues for a couple weeks I'll come back and mark this solved.
I'm not so sure there is not something else involved though. The logs in /var/log/unattended-upgrades/ didn't mention anything about any of the updates I've seen, and as I said originally, commenting out the lines that tell it where to pull updates from didn't seem to have any effect.
The package may not be supposed to be standard, but it seems like it was installed by default when I installed bullseye. When I uninstalled it, the only thing depending on it was some python3 package, which recommended unattended-upgrades. I did not install python3 myself.
I think the viewpoint is that the default packages are the best idea for newcomers or Microsoft refugees. Typically a transfer isn't going to be super concerned with stuff like this, they may even expect it. As such I think one is in the minority not being happy with stuff like that, at least new to the linux world. But at any rate you can make those choices for yourself. You have the option. Microsoft does not give you that option. Also while there are probably no hard statistics I'm thinking most long term users will do a net install and add the packages they want rather than using the base installation image with all it brings. Again, the choice is yours.
Unfortunately, merely uninstalling unattended-upgrades was not the solution; I still got a notice today "Install updates and shutdown?" with no option to shutdown without installing updates.
Perhaps it is time to explore other desktop environments, and/or take this up on the official Debian forums.
Unfortunately, merely uninstalling unattended-upgrades was not the solution; I still got a notice today "Install updates and shutdown?" with no option to shutdown without installing updates.
Perhaps it is time to explore other desktop environments, and/or take this up on the official Debian forums.
Looks like maybe gnome-software is doing this. If you can't configure it to leave you alone, perhaps just remove it. Eg
Some of the things I would do.
I have not installed Debian Stable in a while, but Debian installer (testing) asks you during installation if you want to enable auto updates, the default is 'No'.
You can also comment out all lines in /etc/apt/sources.list, no sources means no metadata checks, no software available for install or anything.
Actually
I do recall installing Testing where the default for auto update was set to 'Yes'. In virtual machine installs I think, where it uses Ethernet not WiFi.
I think if you install Debian over WiFi auto updates will default to off, install over Ethernet the default is on. Just an observation based assumption.
My method:
Download net install CD ISO, download firmware-atheros package from here for my wifi device, burn to USB and stick the firmware-atheros package in the firmware folder of the USB. No need to download ISO with tons of firmware you don't need if you know which firmware package you need.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.