1

This question already has an answer here:

I have Ubuntu 13.10 on my desktop.I wanted to install the "D-Link DWR-730" 3G modem drivers, but the default autoplay software for Ubuntu says "kernel not supported" for this.

I ran the dpkg -i command to install the .dep files manually, but after this every apt-get command returns an error and tells me to run apt-get -f install to correct this.

I ran apt-get -f install, but it still returns an error, and I can't install anything from apt-get. The apt-get error is as follows:

Errors were encountered while processing: flashplugin-installer E: Sub-process /usr/bin/dpkg returned an error code (1)

I ran apt-get remove flashplugin-installer, but that also returns an error.

sudo apt-get -f install gives the following output:

Reading package lists... Done Building dependency tree
Reading state information... Done 
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 1 not fully installed or removed.
Need to get 0 B/7,008 B of archives. After this operation, 0 B of additional disk space will be used. 
dpkg: error processing flashplugin-installer (--configure): Package is in a very bad
inconsistent state - you should reinstall it before attempting configuration.
Errors were encountered while processing: flashplugin-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

marked as duplicate by karel, Eric Carvalho, pomsky, guiverc, Thomas Sep 22 '18 at 9:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • post the whole output of sudo apt-get install -f in your question. – Avinash Raj Feb 18 '14 at 17:24
  • i forget to say i run all commands with root user. – Hossein Feb 18 '14 at 17:25
  • it's not the problem.Please post the whole output of sudo apt-get install -f in your question. – Avinash Raj Feb 18 '14 at 17:26
  • up post edited. – Hossein Feb 18 '14 at 17:31
0

remove flash plugin completely and restart your work

sudo dpkg --remove --force-remove-reinstreq  flashplugin-installer

Then you could try to install it again:

sudo apt-get install flashplugin-installer
  • it won't work my friend. – Avinash Raj Feb 18 '14 at 17:33
  • yes, don't work and still say : – Hossein Feb 18 '14 at 17:33
  • flashplugin-installer E: Sub-process /usr/bin/dpkg returned an error code (1) – Hossein Feb 18 '14 at 17:34
  • @Hossein have you tried the answer after edit? – kamil Feb 18 '14 at 17:35
  • No but now run new command and the flashplugin problem sloved.thanks – Hossein Feb 18 '14 at 17:36
1

I tried many things and then this worked!

sudo dpkg --remove --force-all (packagename)

even after this if your problem is not solved then find all the files in /var/lib named with your package name as a prefix and use

sudo chmod 777 filename

with all of them and then create a copy of them (in case if something goes wrong) and then use

sudo rm filename

to delete of them and then run this again

sudo dpkg --remove --force-all gcc-4.8-base:i386

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