You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04.4 LTS开机反复弹出‘Software Updates Installed’通知问题求助

Ubuntu 22.04.4 LTS开机反复弹出‘Software Updates Installed’通知问题求助

Hey there, let's tackle this annoying false notification issue together! It's super frustrating to get that alert every time you boot up even when no actual updates were installed. Here are a few practical steps to fix this without disabling update notifications entirely:

1. Reset the update notification state files

The most common culprit here is a corrupted state file that's tricking the system into thinking updates were just installed. Let's fix that:

  • First, kill any running update-notifier processes to make sure we're working with a clean slate:
    pkill update-notifier
    
  • Next, delete the file that tracks pending/just-installed updates. This will force the system to re-check and update its status correctly on your next boot:
    sudo rm /var/lib/update-notifier/updates-available
    
  • You can also delete the timestamp file that records when the last update check ran, just to be thorough:
    sudo rm /var/lib/update-notifier/last-run
    

2. Verify automatic update timers

Sometimes, the apt-daily or apt-daily-upgrade system timers might be triggering too early during boot, causing a false positive alert. Let's check their settings:

  • List all related timers to see their current configuration:
    systemctl list-timers apt-daily*
    
  • If you notice a timer set to run immediately on boot, you can adjust its delay to prevent the false alert. For example, to add a 10-minute delay to the apt-daily timer:
    sudo systemctl edit apt-daily.timer
    
    Then paste the following content into the editor that opens, save, and exit:
    [Timer]
    OnBootSec=10min
    OnUnitActiveSec=1d
    
  • Repeat the same for apt-daily-upgrade.timer if needed.

3. Reinstall the update-notifier components

If the above steps don't work, there might be a corrupted file in the update-notifier package. Reinstalling it can fix this:

sudo apt update && sudo apt install --reinstall update-notifier update-notifier-common

After trying any of these steps, reboot your system and see if the false notification goes away. You'll still get alerts when actual updates are installed, which is exactly what you want!

备注:内容来源于stack exchange,提问作者psuhasfa

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 07:34:36