# \[Solved\] Zoph uninstall failure

**URL:** https://discuss.freedombox.org/t/solved-zoph-uninstall-failure/3431
**Category:** Support
**Created:** [December 1, 2024, 8:22pm UTC](https://discuss.freedombox.org/t/solved-zoph-uninstall-failure/3431 "2024-12-01T20:22:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![joseph](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joseph](https://discuss.freedombox.org/u/joseph)
#### Post date: [December 1, 2024, 8:22pm UTC](https://discuss.freedombox.org/t/solved-zoph-uninstall-failure/3431/1 "2024-12-01T20:22:44Z")

</div>

# Solution

## Uninstall Zoph Manually

See the first reply. This is covered in the [Support FAQ](https://discuss.freedombox.org/t/frequently-asked-questions/1906/1). You can make the FAQ sticky for you by clicking the thumbtack link in the upper left.

## Zoph database is not cleanly being uninstalled.

apt remove zoph or apt purge zoph giving this error:  
`
apt-get -f install
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages will be REMOVED:
zoph
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 13.6 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database … 154508 files and directories currently installed.)
Removing zoph (1.0.1-3) …
dpkg: error processing package zoph (–remove):
installed zoph package post-removal script subprocess returned error exit status 30
dpkg: too many errors, stopping
Errors were encountered while processing:
zoph
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
`  
The post remove script is /var/lib/dpkg/info/zoph-postrm. In reading this it seemed it should delete my zoph pictures (which I wanted to do in this case). I manually removed the contents of /var/lib/zoph and then the apt remove zoph was able to complete normally.

**Problem Description**  
I wanted to reset the contents of Zoph as I work through my other problems, and don’t see a way to reset Zoph to an empty repository. So I’m reinstalling the application. Uninstall fails with code 100.

**Steps to Reproduce**

1. Log in to FreedomBox with an administrator account.
2. Go to the Zoph app page.
3. Select Uninstall from the gear menu

**Expected Results**  
FreedomBox should uninstall the Zoph app.

**Actual results**  
Error message:

> Error uninstalling app: Apt command failed with return code: 100

Details:  
``

`

Error running action: plinth..remove(app_id=“zoph”, packages=[“zoph”, “default-mysql-server”], purge=true): RuntimeError(“Apt command failed with return code: 100”)
Stdout:
│ Processing triggers for man-db (2.11.2-2) …
│ freedombox set on hold.
Stderr:
║ Initialized apps - apache, api, names, avahi, storage, backups, cockpit, firewall, config, datetime, diagnostics, dynamicdns, first_boot, help, letsencrypt, networks, power, privacy, security, snapshot, ssh, sso, upgrades, users, bepasty, bind, calibre, coturn, deluge, ejabberd, email, featherwiki, gitweb, i2p, ikiwiki, infinoted, janus, jsxc, kiwix, matrixsynapse, mediawiki, minetest, minidlna, miniflux, mumble, nextcloud, openvpn, pagekite, performance, privoxy, quassel, radicale, roundcube, rssbridge, samba, searx, shaarli, shadowsocks, shadowsocksserver, sharing, syncthing, tiddlywiki, tor, torproxy, transmission, ttrss, wireguard, wordpress, zoph
║ E: Sub-process /usr/bin/dpkg returned an error code (1)
║ E: Sub-process /usr/bin/dpkg returned an error code (1)
Action traceback:
╞ File “/usr/lib/python3/dist-packages/plinth/actions.py”, line 391, in _privileged_call
╞ return_values = func(*arguments[‘args’], **arguments[‘kwargs’])
╞ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╞ File “/usr/lib/python3/dist-packages/plinth/privileged/packages.py”, line 89, in remove
╞ raise RuntimeError(

Screenshot

Information

FreedomBox version: You are running Debian GNU/Linux 12 (bookworm) and FreedomBox version 24.24. FreedomBox is up to date.
Hardware: Intel Atom PC
How did you install FreedomBox?: manual install from netinst
`

---

<div class="post-metadata">

### Author: ![joseph](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joseph](https://discuss.freedombox.org/u/joseph)
#### Post date: [December 6, 2024, 1:25am UTC](https://discuss.freedombox.org/t/solved-zoph-uninstall-failure/3431/2 "2024-12-06T01:25:32Z")

</div>

The solution is in the [Support FAQ](https://discuss.freedombox.org/t/frequently-asked-questions/1906)

```auto
sudo echo "delete from plinth_module where name='zoph';" | sudo sqlite3 /var/lib/plinth/plinth.sqlite3 

```
