Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Set Debian to NOT check for updates

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
johntandy
Posts: 8
Joined: 2018-01-16 01:27

Set Debian to NOT check for updates

#1 Post by johntandy »

Hello all:

Been testing testing Debian 9 cinammon for a while.

I DON'T HAVE internet access and never will in my machine (obviously I'm in another machine just to ask this) so I can't constantly download updates. So how do I set Debian to NOT check for updates, using the graphical interface or terminal? Which is the correct command?

Thanks.

User avatar
sunrat
Administrator
Administrator
Posts: 6462
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 472 times

Re: Set Debian to NOT check for updates

#2 Post by sunrat »

A package called unattended-upgrades controls this. Maybe you can just remove it but be careful it doesn't also remove something you need along with it.

You can also disable it in /etc/apt/apt.conf.d/10periodic

Code: Select all

APT::Periodic::Unattended-Upgrade "0"; <--- line of interest, should be "0"
Note that's from a Ubuntu forum page. I'm just guessing it's the same in Debian but can't check currently.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

johntandy
Posts: 8
Joined: 2018-01-16 01:27

Re: Set Debian to NOT check for updates

#3 Post by johntandy »

does it require root access with sudo or su -?

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: Set Debian to NOT check for updates

#4 Post by 4D696B65 »

johntandy wrote:does it require root access with sudo or su -?
Anything in /etc must be edited as root (or sudo)

Dai_trying
Posts: 1101
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Set Debian to NOT check for updates

#5 Post by Dai_trying »

On my Stretch Xfce install the file that needs to be edited is /etc/apt/apt.conf.d/20auto-upgrades it contains just two lines

Code: Select all

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
just set the 1's to 0's if you don't want to auto update or upgrade. I usually leave the update on as I want to know if there are new packages but I prefer to install them myself in case of issues (although that doesn't happen often with the "stable" version)

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Set Debian to NOT check for updates

#6 Post by Head_on_a_Stick »

johntandy wrote:does it require root access with sudo or su -?

Code: Select all

sudoedit
^ That's the best way of editing system files.
deadbang

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2041
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 149 times
Been thanked: 212 times

Re: Set Debian to NOT check for updates

#7 Post by Hallvor »

If you don't have Internet access, why not just disable networking altogether?

systemctl disable networking.service
systemctl stop networking.service

To disable update checks in unattended-upgrades:
dpkg-reconfigure -plow unattended-upgrades
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
acewiza
Posts: 357
Joined: 2013-05-28 12:38
Location: Out West

Re: Set Debian to NOT check for updates

#8 Post by acewiza »

Hallvor wrote:If you don't have Internet access, why not just disable networking altogether?
No clue as to the OP's use case, but the Internet is not the only way to "network." Be that as it may, I suspect the update issue would become even more annoying absent networking.
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.

Post Reply