I've been getting the error below every time i try to upgrade my system. Where could the problem be? And how can I solve it?? Any help will be greatly appreciated
Error and some of the commands i ran to try and solve the problems are shown below:
Laptop specs: HP Elitebook 8440p,
OS: Windows and Kali linux dual booted
Processor: Intel core i5
Graphics card: Intel HD graphics
THANKS IN ADVANCE
KALI LINUX KERNEL SPECS:
Code:
Linux localhost.localdomain 4.7.0-kali1-amd64 #1 SMP Debian 4.7.5-1kali3 (2016-09-29) x86_64 GNU/Linux
Code:
root@localhost:~# apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
Hit:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Reading package lists... Done
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:
codeblocks-contrib : Depends: libhunspell-1.3-0 (>= 1.3.3) but it is not installable
Depends: libwxsmithlib0 (= 16.01) but 16.01+dfsg-2 is installed
Depends: codeblocks (= 16.01) but 16.01+dfsg-2 is installed
Recommends: valgrind but it is not installed
Recommends: cppcheck but it is not installed
Recommends: cscope but it is not installed
Recommends: cccc but it is not installed
E: Unmet dependencies. Try using -f.
root@localhost:~# 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:
codeblocks-contrib
Recommended packages:
valgrind
The following packages will be upgraded:
codeblocks-contrib
1 upgraded, 0 newly installed, 0 to remove and 177 not upgraded.
7 not fully installed or removed.
Need to get 0 B/4,327 kB of archives.
After this operation, 2,749 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 362909 files and directories currently installed.)
Preparing to unpack .../codeblocks-contrib_16.01+dfsg-2_amd64.deb ...
Unpacking codeblocks-contrib (16.01+dfsg-2) over (16.01) ...
dpkg: error processing archive /var/cache/apt/archives/codeblocks-contrib_16.01+dfsg-2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/codeblocks/wxContribItems/libwxchartctrl.so.0.0.1', which is also in package codeblocks-libwxcontrib0 16.01
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/codeblocks-contrib_16.01+dfsg-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@localhost:~#