When i try to install a (random) package i got the following error.
The following packages have unmet dependencies: linux-tools-3.2.0-24 : Depends: linux-tools-common but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I tried :
apt-get -f install
And i got the following error message :
The following extra packages will be installed: linux-tools-common The following NEW packages will be installed: linux-tools-common 0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded. 2 not fully installed or removed. Need to get 0 B/69.3 kB of archives. After this operation, 183 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 183468 files and directories currently installed.) Unpacking linux-tools-common (from .../linux-tools-common_3.2.0-25.40_all.deb) ... dpkg: error processing /var/cache/apt/archives/linux-tools-common_3.2.0-25.40_all.deb (--unpack): trying to overwrite '/usr/share/man/man1/perf.1.gz', which is also in package linux-base 3.4ubuntu2 Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/linux-tools-common_3.2.0-25.40_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
What should I do next?
I manage to remove the error rebooting ubuntu in the recovery mode and i ran dpkg Repair broken Package