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.

When I run command

sudo apt-get -f 

I get this error

dpkg: error processing gcc-4.8-base:i386 (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Errors were encountered while processing:
gcc-4.8-base:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm using Ubuntu 13.10

share|improve this question
add comment

2 Answers 2

Package is in a very bad inconsistent state - you should reinstall it before attempting configuration.

You have to reinstall the package:

sudo apt-get --reinstall install gcc-4.8-base:i386
share|improve this answer
    
when i run that command , i will get this se (= 4.8.1-10ubuntu8) but 4.8.1-10ubuntu9 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). –  Awis Qirani Dec 2 '13 at 9:42
    
@AwisQirani edit your question, I can't read anything. –  Braiam Dec 2 '13 at 13:13
add comment

Actually the problem is related to gcc 4.8 ,use the following to solve this issue -

Remove gcc-

sudo apt-get purge gcc-4.8

now check -

sudo apt-get -f

for correcting all broken downloads.

Add repository-

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update

install again -

sudo apt-get install gcc-4.8

hope it will work.

share|improve this answer
add comment

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.