Dependency errors after installing and attempting to remove Google Chrome
Looks like your sources file is corrupted and there are broken packages. Remove the corrupted source file by pressing Ctrl + Alt + T to open a terminal, and type in:
sudo rm /etc/apt/sources.list
Then, type in
sudo software-properties-gtk
This will open software-properties-gtk and a new sources.list
will be created automatically.
Then change the server to US or to any other server of your choice. You must enable repositories from the new dialog in order to create new sources.list.
Tick all the boxes then click on Revert then click close.
How do I restore the default repositories?
Step 2 Open up a Terminal and type in
sudo apt-get remove --purge google-chrome-stable
Then run
sudo apt-get update && sudo apt-get dist-upgrade -y
Then install Chrome.
Edit
I joined Sunny in a chat to help him fix the problem and deleting /var/lib/dpkg/alternatives/google-chrome
by running
sudo rm /var/lib/dpkg/alternatives/google-chrome
and running
sudo apt-get update && sudo apt-get dist-upgrade -y
has fixed the problem and Sunny has said that the errors are not happening any more.
Well, after extension searching and finding things I already tried, I went to where the phpmyadmin.prerm, phpmyadmin.postrm, etc scripts where and deleted them manually.
cd /var/lib/dpkg/info/
ls -l phpmyadmin.*
-rw-r--r-- 1 root root 165 2008-03-05 21:42 phpmyadmin.conffiles
-rwxr-xr-x 1 root root 287 2008-03-05 21:42 phpmyadmin.config
-rw-r--r-- 1 root root 33524 2008-08-06 11:31 phpmyadmin.list
-rw-r--r-- 1 root root 51996 2008-03-05 21:42 phpmyadmin.md5sums
-rwxr-xr-x 1 root root 3286 2008-03-05 21:42 phpmyadmin.postinst
-rwxr-xr-x 1 root root 1762 2008-03-05 21:42 phpmyadmin.postrm
-rwxr-xr-x 1 root root 1762 2008-08-06 09:12 phpmyadmin.postrm.orig
-rwxr-xr-x 1 root root 339 2008-03-05 21:42 phpmyadmin.preinst
-rw-r--r-- 1 root root 22441 2008-03-05 21:42 phpmyadmin.templates
then I deleted those files
sudo rm -r phpmyadmin.*
then I ran
sudo apt-get clean
sudo apt-get update
I wanted to see if the package was still around, so I ran
sudo apt-get remove phpmyadmin
I got the response that the package was not installed so it couldn't not be removed.
FINALLY!
So from there I just ran
sudo apt-get install phpmyadmin
I hope this does help someone, because I look to Ubuntu forums for a lot of answers.
Follow the below commands to get rid of from the E: Sub-process /usr/bin/dpkg returned an error code (1)
step 1:
sudo apt --purge remove unattended-upgrades
Here unattended-upgrades is "error processing package name". You can replace it with your error processing package name.
step 2:
sudo apt-get autoremove
step 3:
sudo apt-get update