1

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)
kamil
  • 7,355
  • 7
  • 40
  • 61
Hossein
  • 21
  • 1
  • 5

2 Answers2

3

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
Zanna
  • 70,465
user260214
  • 103
  • 8
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
kamil
  • 7,355
  • 7
  • 40
  • 61