PDA

View Full Version : [SOLVED] Can't install any packages.



md-riaj197
March 18th, 2015, 01:45 AM
I am using ubuntu 14.10. I am trying to install all updates, but it's show me the following result: :(

The package system is broken

Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f

Details:



The following packages have unmet dependencies:

gcc-4.9-multilib: Depends: gcc-4.9-base (= 4.9.1-16ubuntu6) but 4.9.1-16ubuntu6 is installed
Depends: gcc-4.9 (= 4.9.1-16ubuntu6) but 4.9.1-16ubuntu6 is installed
Depends: libc6-dev-i386 (>= 2.11) but it is not installed
Depends: lib32gcc-4.9-dev (= 4.9.1-16ubuntu6) but 4.9.1-16ubuntu6 is installed
Depends: libx32gcc-4.9-dev (= 4.9.1-16ubuntu6) but 4.9.1-16ubuntu6 is installed
libc6-dev-x32: Depends: libc6-x32 (= 2.19-10ubuntu2.3) but 2.19-10ubuntu2.3 is installed
Depends: libc6-dev-i386 (= 2.19-10ubuntu2.3) but it is not installed
Depends: libc6-dev (= 2.19-10ubuntu2.3) but 2.19-10ubuntu2.3 is installed


Then I removed the third party repositories and run the command in terminal 'sudo apt-get -f install'. But after all I got the following error: :cry:



dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-10ubuntu2.3_amd64.deb (--unpack):
trying to overwrite '/usr/include/fpu_control.h', which is also in package libc6-dev-amd64 2.19-10ubuntu2.3
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev-i386_2.19-10ubuntu2.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


So, now I need the person who can fix the problem. Great pleasure if you can help me to get out this problem. Please... :-|

ian-weisser
March 18th, 2015, 03:29 AM
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-10ubuntu2.3_amd64.deb (--unpack): trying to overwrite '/usr/include/fpu_control.h', which is also in package libc6-dev-amd64 2.19-10ubuntu2.3

You have two packages: libc6-dev-i386 2.19-10ubuntu2.3-amd64.deb libc6-dev-amd64 2.19-10ubuntu2.3
Those two packages have a file conflict (/usr/include/fpu_control.h).
You cannot install both packages at the same time. Ever. They conflict.

The conflict makes sense - they seem to be the same package for two different architectures.

The package manager does not know which one you wish to keep, and the error is it's way of telling you. Uninstall one of them.
Since it's merely a -dev package, it may be simpler to uninstall both until you get your apparent multiarch problem sorted.

md-riaj197
March 18th, 2015, 03:35 PM
The package manager does not know which one you wish to keep, and the error is it's way of telling you. Uninstall one of them.

I am trying to remove the file but they said 'E: Unable to locate package /var/cache/apt/archives' though I have already the 'archives' package consists of 'libc6-dev-i386_2.19-10ubuntu2.3_amd64.deb' file. So, kindly please tell me how can I uninstall one of them file that you suggested.

md-riaj197
March 18th, 2015, 03:57 PM
Ok, I have solved the issue. Thank you :)

dino99
March 18th, 2015, 03:57 PM
it is : /var/cache/apt/archives/