How to uninstall a program?

Friends help Nuba, put by means of program Manager - Gitter onto the desktop. Now I want to delete, run the same Manager find gitter and click remove, I log "failed to remove".
Want to put Skype and viber, you get a dialog box saying if you set the gitter be deleted, click OK, and again the same story. How to be and how to live with myself?
the text from the terminal. Teach how to do it manually.
rm: cannot remove '/ usr / local / bin / gitter': No such file or directory
rm: failed to remove "/usr/share/applications/gitter.desktop ': No such file or directory
dpkg: error processing package gitter (--remove):
June 26th 19 at 14:03
2 answers
June 26th 19 at 14:05
sudo apt-get purge --auto-remove gitter
Or
sudo aptitude remove gitter
Or
sudo apt-get remove gitter
Or
sudo apt-get purge gitter
Etc.
The same thing, here's the log crashes
Traceback (most recent call last):
 File "/usr/lib/linuxmint/mintinstall/AptClient/AptClient.py", line 74, in _run
 cache.commit(acquire_progress_monitor, install_progress_monitor)
 File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 519, in commit
 raise SystemError("installArchives() failed")
SystemError: installArchives() failed
- Camylle.Sauer commented on June 26th 19 at 14:08
: trysudo apt-get update after sudo apt-get upgrade after sudo apt-get autoremove and after sudo apt-get purge gitter - Izabella commented on June 26th 19 at 14:11
June 26th 19 at 14:07
apparently failure to remove or the package clumsily.

open the file /var/lib/dpkg/status
removed line regarding gitter

Find more questions by tags MintLinux