manually fixing a file
I'm having a heck of a time fixing the flash plugin nonfree package. It's telling me that I need to manually fix it, but I don't know what to do. Please help, thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tiago Faria
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Try the following, open a terminal (Applications-
sudo apt-get install flashplugin-
You can also automatize the installation of some troublesome applications with Ailurus https:/
Revision history for this message
|
#2 |
thank you, but this is what I'm getting after implementing your suggestion:
denise@
[sudo] password for denise:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-
Use 'apt-get autoremove' to remove them.
Suggested packages:
xulrunner-1.9 konqueror-nsplugins msttcorefonts ttf-bitstream-vera
ttf-dejavu ttf-xfree86-nonfree xfs
The following NEW packages will be installed:
flashplugin-
The following packages will be upgraded:
flashplugin-
1 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
E: Could not get lock /var/cache/
E: Unable to lock the download directory
denise@
Revision history for this message
|
#3 |
Hi again, that last lines you posted suggest that other package manager is running, perhaps you are updating your system, installing applications or have synaptic opened.
Make sure that none of those things are going on (if none is running you could try restarting your computer), and then copy the following in the terminal (everything after a # is a comment don't copy them):
# This should remove the current installation
sudo apt-get remove flashplugin-
# This should update your package list
sudo apt-get update
# This should repair any package installation
sudo apt-get -f install
# Now this should install flash
sudo apt-get install flashplugin-
Revision history for this message
|
#4 |
sudo apt-get --purge autoremove
If you are running 64bit I can give a command to get you native 64bit flash rather than the flashplugin-nonfree which uses the 32bit + nspluginwrapper
Revision history for this message
|
#5 |
Ok, thanks again, this is what I'm getting now:
denise@
[sudo] password for denise:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package flashplugin-
Package flashplugin is not installed, so not removed
E: Couldn't find package nonfree
denise@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-
Use 'apt-get autoremove' to remove them.
Suggested packages:
xulrunner-1.9 konqueror-nsplugins msttcorefonts ttf-bitstream-vera
ttf-dejavu ttf-xfree86-nonfree xfs
The following NEW packages will be installed:
flashplugin-
The following packages will be upgraded:
flashplugin-
1 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
Need to get 0B/21.4kB of archives.
After this operation, 61.4kB of additional disk space will be used.
Preconfiguring packages ...
dpkg: error processing flashplugin-nonfree (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
flashplugin-
E: Sub-process /usr/bin/dpkg returned an error code (1)
denise@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package flashplugin-
The following packages were automatically installed and are no longer required:
linux-
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
flashplugin-
0 upgraded, 0 newly installed, 1 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 168kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: error processing flashplugin-nonfree (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
flashplugin-
E: Sub-process /usr/bin/dpkg returned an error code (1)
denise@
Hit http://
Ign http://
Hit http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
denise@
E: Command line option 'i' [from -finstall] is not known.
denise@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
flashplugin-
Suggested packages:
xulrunner-1.9 konqueror-nsplugins msttcorefonts ttf-bitstream-vera
ttf-dejavu ttf-xfree86-nonfree xfs
The following NEW packages will be installed:
flashplugin-
The following packages will be upgraded:
flashplugin-
1 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
Need to get 0B/21.4kB of archives.
After this operation, 61.4kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
dpkg: error processing flashplugin-nonfree (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
flashplugin-
E: Sub-process /usr/bin/dpkg returned an error code (1)
denise@
Revision history for this message
|
#6 |
sudo apt-get --purge autoremove; cd /var/cache/
Revision history for this message
|
#7 |
Hi again... lets try this:
# this should force the removal of the current flashplugin (it cannot fail...)
sudo dpkg --remove --force-
sudo apt-get install flashplugin-
hope it helps!
Revision history for this message
|
#8 |
thanks action, I have a 32 bit. Here's what I got after your suggestion.
denise@
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using -f.
sudo: apt-: command not found
denise@
No command 'get' found, but there are 17 similar ones
get: command not found
denise@
Revision history for this message
|
#9 |
Try copying the WHOLE command as one, rather than chopping it up and screwing up the command. Try Frederico Vera's advice then try:
cd /var/cache/
Revision history for this message
|
#10 |
I'm sorry to be such a pain in the butt.. lol And I really appreciate you both for trying to help me. I tried Frederico's first and got this:
denise@
[sudo] password for denise:
dpkg: warning: overriding problem because --force enabled:
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
(Reading database ... 138616 files and directories currently installed.)
Removing flashplugin-nonfree ...
update-
update-
dpkg: error processing flashplugin-nonfree (--remove):
subprocess installed pre-removal script returned error exit status 2
postinst called with argument `abort-remove'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
flashplugin-
denise@
I have tried reinstalling it but it doesn't seem to let me do that either.
Revision history for this message
|
#11 |
wow, that's a strange problem, and unfortunately that was my last resort, sorry I couldn't help, hope some with a little more experience is able to help you
Revision history for this message
|
#12 |
thank you anyhow.. I'm thinking I should just reinstall unbuntu.. and start fresh.
Revision history for this message
|
#13 |
According to the bug report I just linked this question to, people report success with the answers that were already given:
- rm /var/lib/
- dpkg --remove --force-
- dpkg --purge --force-
Also, you may want to try and install adobe-flashplugin if this fix doesn't work for you.
+1 on a fresh install though :)
Revision history for this message
|
#14 |
No need. This will fix it:
http://
Basically you are going to do some low level editting to make the system think the package isnt even installed. Its a bit hacky but is sometimes needed in package systems when the packages get muddled. This is one of the biggest weaknesses in package based systems.
Revision history for this message
|
#15 |
Thank you to all that answered. I just went ahead and reinstalled ubuntu. Hope you all have a very merry Christmas!