Rya*_*yan 12 linux ubuntu apt ubuntu-12.04
在 Ubuntu 12.04 LTS 上,使用 512MB RAM 的服务器,apt-check
最多使用 250 个内存并导致我的系统每晚都无法使用,例如
ps ax | grep apt
14895 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14896 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14899 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14902 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14906 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14912 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14913 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14914 ? DN 0:01 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14915 ? DN 0:01 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14916 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14917 ? DN 0:01 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
14920 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
15299 ? DN 0:01 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
15302 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable
16368 pts/0 D+ 0:00 grep apt
Run Code Online (Sandbox Code Playgroud)
这个脚本运行多次并占用我的系统资源到底是什么鬼?这里有一个错误 [1],已确认但没有任何解决方案。我有点惊讶这个错误很关键并且存在于 LTS 中,叹息...
无论如何,不确定 ubuntu 团队何时能够修复,知道我们该怎么做吗?
[1] https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/746508
如果您想禁用更新通知程序,您可以按照此链接中的说明进行操作。
来自链接的修改报价
方法 1 - 为一位用户禁用
创建一个本地(用户)副本 update-notifier.desktop
mkdir -p ~/.config/autostart
cp /etc/xdg/autostart/update-notifier.desktop ~/.config/autostart/
vim ~/.config/autostart/update-notifier.desktop
Run Code Online (Sandbox Code Playgroud)
在本地文件中找到这一行
X-GNOME-Autostart-Delay=60
Run Code Online (Sandbox Code Playgroud)
用。。。来代替:
X-GNOME-Autostart-enabled=false
Run Code Online (Sandbox Code Playgroud)
现在注销并再次登录,或者终止正在运行的更新通知程序:
killall update-notifier
Run Code Online (Sandbox Code Playgroud)方法 2 - 对所有用户禁用
与方法 1 相同,但不是修改本地/用户副本,而是修改 /etc/xdg/autostart/update-notifier.desktop
禁用更新通知程序后,使用更新管理器(GUI)或以下命令行检查包更新
sudo apt-get update
sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)
第一行从存储库下载最新的包列表。第二行将显示所有可用更新的已安装软件包。
归档时间: |
|
查看次数: |
7289 次 |
最近记录: |