linux – 防止apt-check吃掉我所有的记忆

linux – 防止apt-check吃掉我所有的记忆,第1张

概述在Ubuntu 12.04 LTS上,使用512MB RAM的服务器,apt-check使用多达250个内存,导致我的系统每晚都无法使用,例如: ps ax | grep apt14895 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable14896 ? 在Ubuntu 12.04 LTS上,使用512MB RAM的服务器,apt-check使用多达250个内存,导致我的系统每晚都无法使用,例如:
ps ax | grep apt14895 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14896 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14899 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14902 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14906 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14912 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14913 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14914 ?        DN     0:01 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14915 ?        DN     0:01 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14916 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14917 ?        DN     0:01 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable14920 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable15299 ?        DN     0:01 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable15302 ?        DN     0:02 /usr/bin/python /usr/lib/update-notifIEr/apt-check --human-readable16368 pts/0    D+     0:00 grep apt

这个脚本多次运行并吃掉我的系统资源到底是什么?这里有一个错误[1]已经确认,但没有任何解决方案.我有点惊讶这个BUG很关键并存在于LTS中,叹息……

无论如何,不​​确定ubuntu团队何时能够修复,我们知道如何做到这一点?

[1] https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/746508

解决方法 禁用update-notifIEr

如果要禁用update-notifIEr,可以按照this link中的说明进行 *** 作.

来自链接的修改报价

>方法1 – 禁用一个用户

创建update-notifIEr.desktop的本地(用户)副本

mkdir -p ~/.config/autostartcp /etc/xdg/autostart/update-notifIEr.desktop ~/.config/autostart/vim ~/.config/autostart/update-notifIEr.desktop

在本地文件中找到此行

X-GNOME-autostart-Delay=60

用…来代替:

X-GNOME-autostart-enabled=false

现在注销并再次注销,或者终止正在运行的update-notifIEr:

killall update-notifIEr

>方法2 – 禁用所有用户

与方法1相同,但不是修改本地/用户副本,而是修改/etc/xdg/autostart/update-notifIEr.desktop

手动检查更新

禁用update-notifIEr后,使用Update Manager(GUI)或以下命令行检查包更新

sudo apt-get updatesudo apt-get dist-upgrade

第一行从存储库下载最新的包列表.第二行将显示所有已安装的包,并提供更新.

总结

以上是内存溢出为你收集整理的linux – 防止apt-check吃掉我所有的记忆全部内容,希望文章能够帮你解决linux – 防止apt-check吃掉我所有的记忆所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/yw/1042874.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存