messed up dpkg - google-chrome-stable Package is in a very bad inconsistent state
Hi all,
I previously tried to install google chrome in a custom location and ended up with the following error message: Code:
poo@rocket:/home/applications/chrome$ sudo dpkg --instdir=/home/applications/chrome/ -i google-chrome-stable_current_i386\(1\).deb Code:
sudo dpkg --remove --force-remove-reinstreq google-chrome-stable Code:
poo@rocket:~$ sudo apt-get install k9copy |
just to add,
Code:
sudo apt-get install -f |
I tried opening Synaptic Package Manager and got this:
Code:
E: The package google-chrome-stable needs to be reinstalled, but I can't find an archive for it. |
Finally!!!!!!
This did the trick: Code:
sudo find /var/lib/dpkg -exec grep -l "google-chrome-stable" {} \; Code:
sudo dpkg -P google-chrome-stable credits to this |
Thanks
@ilesterg thanks man! Tried creating a symbolic link of java for chrome and don't know how, but in the process messed up with chrome. This really helped :)
Cheers |
No problem.
|
Thanks
Nice trick.
|
I also have this problem,The solution wont work for me :(
user@LAPTOP-AUT1G625:~$ sudo dpkg --purge google-chrome-stable
dpkg: error processing package google-chrome-stable (--purge): package is in a very bad inconsistent state; you should reinstall it before attempting a removal Errors were encountered while processing: google-chrome-stable |
1. Don't hijack a solved thread, open your own.
2. What is your Linux distribution including release and architecture? What is the Google Chrome version you're trying to remove? 3. Did you try to reinstall the package as suggested in the message? What was the result? 4. Why are you trying to remove it with dpkg in the first place? Did a previous attempt with apt failed? If so, what was the error message? 5. Provide the output of Code:
dpkg -C google-chrome-stable 7. You said the trick suggested in the thread didn't work for you. That is a very advanced trick involving editing the pre-removal script of a package. Did you understand it? Did you correctly apply it? |
All times are GMT -5. The time now is 10:33 AM. |