Cannot delete a package

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.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #76612
    Member
    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)

      #76623
      Member
      oparun
        Helpful
        Up
        0
        ::

        I’ve solved it. You should comment the hell out of that file.

        #76661
        Anonymous
          Helpful
          Up
          1
          ::

          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 Ubuntu

          i 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

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.