Hi,
I installed google webdesigner via a deb package.
All went well, but after trying the software, I decided it is not what I want, and tried to remove it.
I guess there must be an error in the package because it won't uninstall anymore.
Also every time I want to install something with synaptic, it complains that it cannot complete because google webdesigner is not removed.
Can anyone help me to manually remove it, and stop synaptic from complaining about google webdesigner ?
While typing this up, I dug a little deeper and found the solution (see below)
As I typed up the whole bunch, I thought I'd share it in case someone else has the same problem.
This is what I get when trying to remove it
sudo apt-get remove google-webdesigner
[sudo] password for marc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages were automatically installed and are no longer required:
libqt4pas5 linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic
linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
google-webdesigner
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 490 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 306502 files and directories currently installed.)
Removing google-webdesigner (1.5.0.0-1) ...
/var/lib/dpkg/info/google-webdesigner.prerm: 53: /var/lib/dpkg/info/google-webdesigner.pr
erm: gconftool-2: not found
dpkg: error processing package google-webdesigner (--remove):
subprocess installed pre-removal script returned error exit status 127
/var/lib/dpkg/info/google-webdesigner.postinst: 46: /var/lib/dpkg/info/google-webdesigner
.postinst: gconftool-2: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
google-webdesigner
E: Sub-process /usr/bin/dpkg returned an error code (1)
And this is what synaptic says when I try to do any install, upgrade or remove operation.
It installs/removers/upgrades the packages I want, but afterwards it whines about google webdesigner.
at the end, there is a popup that says
E: google-webdesigner: subprocess installed post-installation script returned error exit status 127
And this is what I see in the test box (I installed htop & it installed correctly)
Selecting previously unselected package htop.
(Reading database ... 306503 files and directories currently installed.)
Preparing to unpack .../htop_2.0.1-1ubuntu1_amd64.deb ...
Unpacking htop (2.0.1-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up google-webdesigner (1.5.0.0-1) ...
touch: cannot touch '/root/.local/share/applications/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 807: /usr/bin/xdg-mime: cannot create /root/.local/share/applications/mimeapps.list.new: Directory nonexistent
/var/lib/dpkg/info/google-webdesigner.postinst: 46: /var/lib/dpkg/info/google-webdesigner.postinst: gconftool-2: not found
dpkg: error processing package google-webdesigner (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up htop (2.0.1-1ubuntu1) ...
Errors were encountered while processing:
google-webdesigner
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
I got rid of this error by creating the directory manually
cannot create /root/.local/share/applications/mimeapps.list.new: Directory nonexistent
But this one I don't know how to solve
/var/lib/dpkg/info/google-webdesigner.postinst: 46: /var/lib/dpkg/info/google-webdesigner.postinst: gconftool-2: not found
The file /var/lib/dpkg/info/google-webdesigner.postinst exists but the program gconftool is not installed on my system, and it is not in the Neon repo's
marc@HPT:/var/lib/dpkg/info$ ls -lh google*
-rw-r--r-- 1 root root 3,3K Aug 10 23:01 google-webdesigner.list
-rw-r--r-- 1 root root 5,3K Aug 10 23:01 google-webdesigner.md5sums
-rwxr-xr-x 1 root root 19K Jun 2 19:59 google-webdesigner.postinst
-rwxr-xr-x 1 root root 14K Jun 2 19:59 google-webdesigner.postrm
-rwxr-xr-x 1 root root 269 Jun 2 19:59 google-webdesigner.preinst
-rwxr-xr-x 1 root root 2,1K Jun 2 19:59 google-webdesigner.prerm
Solution: edit the files google-webdesigner.postinst and google-webdesigner.prerm
and comment out the lines containing gconftool
# GWD Modification
# Remove our registered custom template protocol.
# gconftool-2 --recursive-unset /desktop/gnome/url-handlers/gwd-template
I installed google webdesigner via a deb package.
All went well, but after trying the software, I decided it is not what I want, and tried to remove it.
I guess there must be an error in the package because it won't uninstall anymore.
Also every time I want to install something with synaptic, it complains that it cannot complete because google webdesigner is not removed.
Can anyone help me to manually remove it, and stop synaptic from complaining about google webdesigner ?
While typing this up, I dug a little deeper and found the solution (see below)
As I typed up the whole bunch, I thought I'd share it in case someone else has the same problem.
This is what I get when trying to remove it
sudo apt-get remove google-webdesigner
[sudo] password for marc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages were automatically installed and are no longer required:
libqt4pas5 linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic
linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
google-webdesigner
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 490 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 306502 files and directories currently installed.)
Removing google-webdesigner (1.5.0.0-1) ...
/var/lib/dpkg/info/google-webdesigner.prerm: 53: /var/lib/dpkg/info/google-webdesigner.pr
erm: gconftool-2: not found
dpkg: error processing package google-webdesigner (--remove):
subprocess installed pre-removal script returned error exit status 127
/var/lib/dpkg/info/google-webdesigner.postinst: 46: /var/lib/dpkg/info/google-webdesigner
.postinst: gconftool-2: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
google-webdesigner
E: Sub-process /usr/bin/dpkg returned an error code (1)
And this is what synaptic says when I try to do any install, upgrade or remove operation.
It installs/removers/upgrades the packages I want, but afterwards it whines about google webdesigner.
at the end, there is a popup that says
E: google-webdesigner: subprocess installed post-installation script returned error exit status 127
And this is what I see in the test box (I installed htop & it installed correctly)
Selecting previously unselected package htop.
(Reading database ... 306503 files and directories currently installed.)
Preparing to unpack .../htop_2.0.1-1ubuntu1_amd64.deb ...
Unpacking htop (2.0.1-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up google-webdesigner (1.5.0.0-1) ...
touch: cannot touch '/root/.local/share/applications/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 807: /usr/bin/xdg-mime: cannot create /root/.local/share/applications/mimeapps.list.new: Directory nonexistent
/var/lib/dpkg/info/google-webdesigner.postinst: 46: /var/lib/dpkg/info/google-webdesigner.postinst: gconftool-2: not found
dpkg: error processing package google-webdesigner (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up htop (2.0.1-1ubuntu1) ...
Errors were encountered while processing:
google-webdesigner
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
I got rid of this error by creating the directory manually
cannot create /root/.local/share/applications/mimeapps.list.new: Directory nonexistent
But this one I don't know how to solve
/var/lib/dpkg/info/google-webdesigner.postinst: 46: /var/lib/dpkg/info/google-webdesigner.postinst: gconftool-2: not found
The file /var/lib/dpkg/info/google-webdesigner.postinst exists but the program gconftool is not installed on my system, and it is not in the Neon repo's
marc@HPT:/var/lib/dpkg/info$ ls -lh google*
-rw-r--r-- 1 root root 3,3K Aug 10 23:01 google-webdesigner.list
-rw-r--r-- 1 root root 5,3K Aug 10 23:01 google-webdesigner.md5sums
-rwxr-xr-x 1 root root 19K Jun 2 19:59 google-webdesigner.postinst
-rwxr-xr-x 1 root root 14K Jun 2 19:59 google-webdesigner.postrm
-rwxr-xr-x 1 root root 269 Jun 2 19:59 google-webdesigner.preinst
-rwxr-xr-x 1 root root 2,1K Jun 2 19:59 google-webdesigner.prerm
Solution: edit the files google-webdesigner.postinst and google-webdesigner.prerm
and comment out the lines containing gconftool
# GWD Modification
# Remove our registered custom template protocol.
# gconftool-2 --recursive-unset /desktop/gnome/url-handlers/gwd-template