A small Ubuntu 13.04 virtual machine instance I run in a cloud environment regularly becomes slow/unresponsive because of a proces called check-new-release. Is there any way to disable this process and maybe run it manually instead?
Asked
Active
Viewed 1.7k times
3 Answers
17
Try doing
apt-get remove ubuntu-release-upgrader-core
The script that you're seeing running is /usr/lib/ubuntu-release-upgrader/check-new-release, and removing the above package will remove that script completely.
A description of this package is:
ubuntu-release-upgrader-core - manage release upgrades
William Stein
- 582
13
In the file /etc/update-manager/release-upgrades change Prompt=normal to Prompt=never.
You can also do this through the GUI, but that may not be appropriate for a virtual server.
You can do a manual check for a new release with do-release-upgrade
Sameer
- 269
2
It is a pain on low RAM servers and 'Prompt=never' did not work for me on Ubuntu 18.04 so what I did (exit code 1 means NO_RELEASE_AVAILABLE):
mv /usr/bin/do-release-upgrade /usr/bin/do-release-upgrade.bak;
echo -n 'import sys; sys.exit(1);' > /usr/bin/do-release-upgrade
chmod 755 /usr/bin/do-release-upgrade
# chattr +i /usr/bin/do-release-upgrade
JVMHost
- 21