Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
"dpkg: unrecoverable fatal error" when trying to update monitoring agent
I’m following the guide to upgrade the monitoring agent https://www.digitalocean.com/docs/monitoring/how-to/upgrade-legacy-agent/
However when I run
sudo apt-get purge do-agent
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
I run the command as instructed and then re-run the first command but that results in
Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: linux-headers-4.4.0-154 The following packages will be REMOVED: do-agent* letsencrypt The following packages will be upgraded: linux-headers-4.4.0-154 1 upgraded, 0 newly installed, 2 to remove and 213 not upgraded. 3 not fully installed or removed. Need to get 0 B/10.2 MB of archives. After this operation, 63.2 MB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 870640 files and directories currently installed.) Removing letsencrypt (0.19.0-1+ubuntu16.04.1+certbot+1) ... dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2)
Can anyone help?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×