lcreid / rails-5-jade

Rails 5 with Jekyll and Node on Ubuntu 18.04
MIT License
28 stars 3 forks source link

`dpkg` fails installing headers #21

Closed lcreid closed 7 years ago

lcreid commented 7 years ago

The upgrade or (more likely) dist-upgrade at the end of the build gives these messages:

virtualbox-iso: Unpacking linux-headers-4.4.0-77 (4.4.0-77.98) ...
virtualbox-iso: E: Sub-process /usr/bin/dpkg exited unexpectedly
virtualbox-iso: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
virtualbox-iso: Successfully installed i18n-0.8.1

Then any attempt to install software fails, and you have to do:

sudo dpkg --configure -a
sudo apt-get install -f
lcreid commented 7 years ago

Somewhere along the line, it appears that I should have started using sudo apt-get install linux-headers-generic instead of sudo apt-get install linux-headers-$(uname -r).

lcreid commented 7 years ago

This may have actually been due to lack of RAM. See Issue #17.