user@XM4002951:~$ sudo apt-get install linux-server
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be upgraded:
1 upgraded, 0 newly installed, 0 to remove and 382 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,734 B of archives.
After this operation, 1,024 B of additional disk space will be used.
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 18.104.22.168.90); however:
Version of linux-image-server on system is 22.214.171.124.98.
linux-server depends on linux-headers-server (= 126.96.36.199.90); however:
Version of linux-headers-server on system is 188.8.131.52.98.
dpkg: error processing linux-server (–configure):
dependency problems – leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@XM4002951:~$ sudo dpkg-reconfigure linux-server
/usr/sbin/dpkg-reconfigure: linux-server is broken or not fully installed
sudo dpkg –remove linux-server
sudo apt-get install linux-server