我配置了这个:
但是更新管理器一直不请自来地弹出,我完全无法控制。感觉好像又回到了使用Windows的日子。
我希望能够偶尔手动安装更新。
我该怎么办?
Automatically check for updates: Never
但是更新管理器一直不请自来地弹出,我完全无法控制。感觉好像又回到了使用Windows的日子。
我希望能够偶尔手动安装更新。
我该怎么办?
Automatically check for updates: Never
禁用配置中的弹出窗口似乎是不可能的,正如coteyr在这个页面的评论中所说(https://askubuntu.com/a/218780/19753:"需要注意的是,除了删除update-manager-core,你不能真正停止弹出。你只能把它推迟到其他东西运行apt-get update
" - coteyr Nov 18 '12 at 9:14)。
我也想摆脱弹出窗口和底层程序,这些程序会消耗我的Ubuntu 12.04系统上的资源,并且我的计算机是一台弱小的Toshiba AC100(ARM)-- https://answers.launchpad.net/ac100/+question/214505/。
因此,最简单的工作解决方案必须是删除"update-manager"(正如我在https://unix.stackexchange.com/a/46315/4319的评论中提到的):
apt-get remove update-manager
ubuntu-desktop
:http://paste2.org/xHxWLBtf - 一个可能的解决方案是:删除二进制文件(/usr/bin/update-manager
),并使用apt hold命令来阻止更新(echo update-manager hold | sudo dpkg --set-selections
)。 - antivirtelupdate-notifier
而不是整个更新管理器。在删除它之后记得运行pkill update-notifier
(或重新启动),否则Ubuntu会在指示面板中显示错误信息。 - Dylan Parryupdate-notifier
也会同时移除 update-manager
,所以实际上没有任何区别。 - Ruslannano /etc/apt/apt.conf.d/99update-notifier
#DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi "; };
//
开头的行 - 只要APT脚本跳过无效的行而不是停在语法错误上,这个解决方案可能有效。 - RichVelupdate-manager
。 - PavoDiveupdate-manager
。apt-get update
就是罪魁祸首了。那么如果我移除 update-manager-core,我会失去什么呢?我记得在某个地方看到说如果你使用 Unity,它还会一并移除桌面。 - ChocoDeveloperapt-get remove update-manager-core
会删除几乎整个系统。正确的包要删除的是 update-notifier:apt-get remove update-notifier
,这样也会删除 update-manager-core 而不会导致其他包被删除。祝好!:) - Rho/etc/apt/apt.conf.d/10periodic
只会停止apt-get
自动检查更新,但不会停止通知。 - Anwarapt-get remove update-notifier
是最好的解决办法。 - Mendhakupdate-notifier
时,我得到了这个列表:ubuntu-desktop* ubuntu-release-upgrader-gtk* update-manager* update-notifier*
。我不太确定为什么,但它想要摆脱ubuntu-desktop
,这可以说是有问题的...(这是在18.04版本中) - Alexis Wilke# sudo apt-get --purge remove lubuntu-update-notifier
pkill update-notifier
sudo mv /usr/bin/update-notifier /usr/bin/update-notifier.real
echo -e '#!/bin/bash\nwhile :; do /bin/sleep 86400; done' | sudo tee /usr/bin/update-notifier
sudo chmod 755 /usr/bin/update-notifier
sudo dpkg-divert --divert /usr/bin/update-notifier.ubuntu --rename /usr/bin/update-notifier
告诉打包系统系统管理员已经接管了该文件。 - Sean PerryUbuntu自动检查更新是好事,但弹出窗口却不受控制。你可以通过gnome栏或基于终端的应用程序(如Byobu)获得更少侵入性的通知。
要在保持更新管理器自动检查更新的同时禁用更新通知器,请从终端运行以下命令:
sudo apt-get install gconf-editor
(如果尚未安装)sudo gconf-editor
(注意sudo属性)gconf-editor
(这次作为用户,即不使用sudo)update-notifier
(13.04)。看起来这个指令至少对于13.04版本已经过时了? - pileofrocksupdate-notifier
条目,您可以使用命令行:gconftool-2 --set "/apps/update-notifier/regular_auto_launch_interval" --type int 9999
。 - webbertigersudo chmod a-x /etc/cron.daily/update-notifier-common
sudo chmod a-x /etc/cron.weekly/apt-xapian-index
sudo chmod a-x /etc/cron.weekly/update-notifier-common
gsettings set com.ubuntu.update-notifier regular-auto-launch-interval 3650
gsettings set com.ubuntu.update-manager launch-time 1900000000
sudo mv /etc/xdg/autostart/update-notifier.desktop /etc/xdg/autostart/update-notifier.desktop.old
sudo mv /etc/xdg/autostart/gnome-software-service.desktop /etc/xdg/autostart/gnome-software-service.desktop.old
.desktop
,这些命令将不会在系统启动时运行。/etc/apt/apt.conf.d/10periodic
。APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
/etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";
sudo chmod 000 /usr/bin/update-manager
sudo chmod 000 /usr/bin/update-notifier
update-manager
是否正在运行:ps auxwww | grep update
dbus-monitor --session "interface=org.freedesktop.Notifications"
…我在识别发送通知信号的服务时遇到了很大困难,这个方法帮助了我很多。 - jmunsch