Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying hard! to update the gcc-msp430 compiler on my ubuntu, but it does not work (I guess because of the older version of the same compiler that is already installed). Here is the command I used as well as the output.

saeid@saeid-Satellite-C660:~$ sudo dpkg --force-all -i ~/Downloads/gcc-msp430_4.6.3~mspgcc-20120406-3_i386.deb; sudo apt-get -f install
[sudo] password for saeid: 
(Reading database ... 164599 files and directories currently installed.)
Unpacking gcc-msp430 (from .../gcc-msp430_4.6.3~mspgcc-20120406-3_i386.deb) ...
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/bin/msp430-cpp', which is also in package msp430-gcc-tinyos 4.5.3-20110821
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/bin/msp430-gcc', which is also in package msp430-gcc-tinyos 4.5.3-20110821
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/bin/msp430-gcov', which is also in package msp430-gcc-tinyos 4.5.3-20110821
dpkg: gcc-msp430: dependency problems, but configuring anyway as you requested:
 gcc-msp430 depends on msp430mcu; however:
  Package msp430mcu is not installed.
 gcc-msp430 depends on binutils-msp430 (>= 2.21~); however:
  Package binutils-msp430 is not installed.
Setting up gcc-msp430 (4.6.3~mspgcc-20120406-3) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  binutils-msp430 msp430mcu
Suggested packages:
  msp430-libc
The following NEW packages will be installed:
  binutils-msp430 msp430mcu
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/11.1 MB of archives.
After this operation, 57.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 164845 files and directories currently installed.)
Unpacking msp430mcu (from .../msp430mcu_20110613-3_all.deb) ...
dpkg: error processing /var/cache/apt/archives/msp430mcu_20110613-3_all.deb (--unpack):
 trying to overwrite '/usr/msp430/lib/msp430mcu.spec', which is also in package msp430mcu-tinyos 20110613-20110821
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking binutils-msp430 (from .../binutils-msp430_2.22~msp20110716p5-1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/binutils-msp430_2.22~msp20110716p5-1_i386.deb (--unpack):
 trying to overwrite '/usr/bin/msp430-strip', which is also in package msp430-binutils-tinyos 2.21.1-20110821
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/msp430mcu_20110613-3_all.deb
 /var/cache/apt/archives/binutils-msp430_2.22~msp20110716p5-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please let me know if you need more information (I don’t know what to provide at this point).

share|improve this question
1  
Have you tried to uninstall the already installed compiler, And then install the new one? –  blade19899 Sep 13 '12 at 8:10
    
Well I don't know how to uninstall the pervious package. I couldn't find it in software manager –  Saeid87 Sep 13 '12 at 8:34
    
try sudo apt-get remove gcc*? –  blade19899 Sep 13 '12 at 10:35
    
Thanks blade, I could install the package after uninstalling the previous version with the command you gave! You may post it as answer so I can mark it. –  Saeid87 Sep 13 '12 at 13:27

1 Answer 1

up vote 4 down vote accepted

Run this to remove the older gcc compiler

sudo apt-get remove gcc*

and then

sudo dpkg --force-all -i ~/Downloads/gcc-msp430_4.6.3~mspgcc-20120406-3_i386.deb; sudo apt-get -f install

:)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.