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.
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
- sunrat
- 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
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
Note that's from a Ubuntu forum page. I'm just guessing it's the same in Debian but can't check currently.
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"
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: Set Debian to NOT check for updates
Anything in /etc must be edited as root (or sudo)johntandy wrote:does it require root access with sudo or su -?
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: Set Debian to NOT check for updates
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
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)
Code: Select all
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
- 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
johntandy wrote:does it require root access with sudo or su -?
Code: Select all
sudoedit
deadbang
- Hallvor
- 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
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
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
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
Re: Set Debian to NOT check for updates
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.Hallvor wrote:If you don't have Internet access, why not just disable networking altogether?
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.