Package is in a very bad inconsistent state
Solution 1
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
Solution 2
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
Related videos on Youtube
Hossein
Updated on September 18, 2022Comments
-
Hossein over 1 year
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 everyapt-get
command returns an error and tells me to runapt-get -f install
to correct this.I ran
apt-get -f install
, but it still returns an error, and I can't install anything fromapt-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)
-
Avinash Raj about 10 yearspost the whole output of
sudo apt-get install -f
in your question. -
Hossein about 10 yearsi forget to say i run all commands with root user.
-
Avinash Raj about 10 yearsit's not the problem.Please post the whole output of
sudo apt-get install -f
in your question. -
Hossein about 10 yearsup post edited.
-
-
Avinash Raj about 10 yearsit won't work my friend.
-
Hossein about 10 yearsyes, don't work and still say :
-
Hossein about 10 yearsflashplugin-installer E: Sub-process /usr/bin/dpkg returned an error code (1)
-
kamil about 10 years@Hossein have you tried the answer after edit?
-
Hossein about 10 yearsNo but now run new command and the flashplugin problem sloved.thanks
-
kamil about 10 years@Hossein Welcome my dear, don't forget to mark it as answer
-
Hossein about 10 yearsthanks but i don't know to select you or mr.Avinash Raj? because i used one command from you and one command from mr.Avinash Raj.
-
kamil about 10 years@Hossein My answer was written before him. it's simple as that. and I solved the problem. Then I added how to install it again