I am sure this is a duplicate but I have looked extensively without finding an answer.
I am trying to run apt-get update on Ubuntu 18.04 LTS.
It always quits without an error message
When I type su -c "apt-get update" the output is as follows:
Hit:1 http://mirrors.linode.com/ubuntu bionic InRelease
Hit:2 http://mirrors.linode.com/ubuntu bionic-updates InRelease
Hit:3 http://mirrors.linode.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
And the I get the command prompt. I have tried logging in as root and using sudo instead of su -c.
When I tried it as root, it got farther:
Get:37 http://mirrors.linode.com/ubuntu bionic-updates/multiverse amd64 Packages [6,408 B]
Get:38 http://mirrors.linode.com/ubuntu bionic-updates/multiverse Translation-en [3,452 B]
Get:39 http://mirrors.linode.com/ubuntu bionic-backports/universe amd64 Packages [3,472 B]
Get:40 http://mirrors.linode.com/ubuntu bionic-backports/universe i386 Packages [3,472 B]
Get:41 http://mirrors.linode.com/ubuntu bionic-backports/universe Translation-en [1,604 B]
Fetched 29.3 MB in 11s (2,604 kB/s)
Killedg package lists... 53%
I am only using 25% of a 25 gig drive (it's a Linode).
According to the Linode dashboard, the server CPU load is generally at about 20%.
I have previously resolved this problem by temporarily upgrading the server to double the RAM and double the HD size.
I assume that the problem is not enough RAM, since the HD is far from full.
Is there any way I can update the server without having to resize it?
Can I temporarily dedicate all the ram to the update process?