<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ubuntu 系統更新關閉 &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/ubuntu-%E7%B3%BB%E7%B5%B1%E6%9B%B4%E6%96%B0%E9%97%9C%E9%96%89/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Wed, 18 Jan 2023 09:38:02 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>Ubuntu 系統更新關閉 &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>關閉 Ubuntu 自動更新</title>
		<link>https://noter.tw/10518/%e9%97%9c%e9%96%89-ubuntu-%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0/</link>
					<comments>https://noter.tw/10518/%e9%97%9c%e9%96%89-ubuntu-%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Tue, 22 Nov 2022 12:25:58 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu 停用自動更新]]></category>
		<category><![CDATA[Ubuntu 系统自動更新關閉]]></category>
		<category><![CDATA[關閉 Ubuntu 自動升级]]></category>
		<category><![CDATA[禁用 Ubuntu 自動升级]]></category>
		<category><![CDATA[Ubuntu 自動更新禁止]]></category>
		<category><![CDATA[關閉 Ubuntu 自動更新]]></category>
		<category><![CDATA[Ubuntu 自動更新關閉]]></category>
		<category><![CDATA[禁用 Ubuntu 自動更新]]></category>
		<category><![CDATA[Ubuntu 更新自動關閉]]></category>
		<category><![CDATA[Ubuntu 系統更新關閉]]></category>
		<category><![CDATA[Ubuntu 關閉自動更新]]></category>
		<guid isPermaLink="false">https://noter.tw/?p=10518</guid>

					<description><![CDATA[<p>前幾天一大早就收到通知網站掛了，上去看了 log 之後發現錯誤竟然是找不到 pagespeed 模組 ... 查了一下發現是自動更新造成，這裡把關閉 Ubuntu 自動更新的方法記下來。</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/10518/%e9%97%9c%e9%96%89-ubuntu-%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0/" data-wpel-link="internal">關閉 Ubuntu 自動更新</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>前幾天一大早就收到通知網站掛了，上去看了 log 之後發現錯誤竟然是找不到 pagespeed 模組 &#8230; 查了一下發現是自動更新造成，這裡把關閉 Ubuntu 自動更新的方法記下來。</p>



<span id="more-10518"></span>



<p>某次遇到 Ubuntu 20.04 安裝完一切後，過不久發現原本好好的功能突然出問題，查了一下才發現原本的設定不一樣了，到底發生什麼事？一度懷疑被其他工程師更新了，只好硬著頭皮快點把問題修復，讓網站上線，之後就忘記這件事情。</p>



<p>直到最近有一台新機器也是安裝完畢後，過不久使用 nginx + phpfpm 的網站自己突然就掛了，一直噴 <code>pagespeed module not found</code> 的錯誤 &#8230;？一度懷疑是不是主機被入侵 &#8230; 經過仔細盤查後才發現原來這台也是 Ubuntu 20.04，預設會開啟自動更新 &#8230;</p>



<p>根據 <a href="https://shengyu7697.github.io/ubuntu-disable-auto-update/" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Ubuntu 關閉自動更新<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 及 <a href="https://idroot.us/disable-automatic-updates-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">How To Disable Automatic Updates on Ubuntu 20.04 LTS<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 這兩篇文章，關閉自動更新很簡單，只要把以下設定都改為 0 就可以了！</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">vim /etc/apt/apt.conf.d/20auto-upgrades

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";</pre>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/10518/%e9%97%9c%e9%96%89-ubuntu-%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0/" data-wpel-link="internal">關閉 Ubuntu 自動更新</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/10518/%e9%97%9c%e9%96%89-ubuntu-%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
