Forum › Forums › New users › New Users and General Questions › Cannot delete a package
- This topic has 2 replies, 2 voices, and was last updated Feb 2-6:25 pm by Anonymous.
-
AuthorPosts
-
February 2, 2022 at 8:16 am #76612Member
oparun
I’m trying to get rid of Radiotray-ng, that i’ve tried to install. I’ve succsessfuly used it in Arch and Slackware, but in Antix it simply doesn’t work (actually i cannot install it – dependencies). So i’ve tried to delete in with “apt-get remove” or “dpkg -r” with no success. Then i’ve googled it and found some kind of solution on askubuntu, but i cannot understant what should i edit in
/var/lib/dpkg/info/radiotrang.postinstall.When i try to delete this package i’m getting:
/var/lib/dpkg/info/radiotray-ng.postrm: 10: gtk-update-icon-cache: not found
dpkg: error processing package radiotray-ng (–remove):
installed radiotray-ng package post-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
Errors were encountered while processing:
radiotray-ng
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)February 2, 2022 at 8:45 am #76623Member
oparun
February 2, 2022 at 6:25 pm #76661Anonymous
::You should comment the hell out of that file.
more appropriately: You shoud avoid attempting to install packages which were not intended for use with the distro your system is running.
From where did you grab a debfile?
radiotray-ng project github.com/ebruck/radiotray-ng
releases page shows debfiles intended for use with Ubuntui cannot understant what should i edit in /var/lib/dpkg/info/radiotrang.postinstall
radiotrang.postinstall (sic) would not be consulted during an apt remove nor purge operation.
If a (“.prerm”) or “.postrm” exists, that’s the script which might be interfering with removal of the package.dpkg -L radiotray-ng
^— the output of this command will show whether a prerm and/or postrm script was provided.
If you find a postrm script present, copy its content and paste into a CODE block in a followup post and we can gauge why it returned an error.At this point, to ensure thorough cleanup, I’ll suggest
sudo updatedb
dpkg -L radiotray-ng
^— then use the “locate” command to check whether any stray files remain, and “sudo rm <name_of_file>” any stragglers found -
AuthorPosts
- You must be logged in to reply to this topic.