aaron@Server:~$ sudo apt autoremove [sudo] password for aaron: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: openjdk-9-jdk : Depends: openjdk-9-jdk-headless (= 9~b114-0ubuntu1) but it is not installed Recommends: libxt-dev but it is not installed E: Unmet dependencies. Try using -f. aaron@Server:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: openjdk-9-jdk-headless Suggested packages: openjdk-9-demo openjdk-9-source The following NEW packages will be installed: openjdk-9-jdk-headless 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/328 kB of archives. After this operation, 773 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 205889 files and directories currently installed.) Preparing to unpack .../openjdk-9-jdk-headless_9~b114-0ubuntu1_amd64.deb ... Unpacking openjdk-9-jdk-headless:amd64 (9~b114-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/openjdk-9-jdk-headless_9~b114-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/lib/jvm/java-9-openjdk-amd64/include/linux/jawt_md.h', which is also in package openjdk-9-jdk:amd64 9~b114-0ubuntu1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/openjdk-9-jdk-headless_9~b114-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) aaron@Server:~$