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-dailytimer:
Then paste the following content into the editor that opens, save, and exit:sudo systemctl edit apt-daily.timer[Timer] OnBootSec=10min OnUnitActiveSec=1d - Repeat the same for
apt-daily-upgrade.timerif 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

