Announcement

Collapse
No announcement yet.

Torrus-common fails to upgrade, remove, or purge

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Torrus-common fails to upgrade, remove, or purge

    I've been trying to fix this issue for two days, but no matter how much I look, I've found nothing that's helped so far.
    I cannot copy the error for some reason (I wanted to copy a log from gdebi trying to replace the package) since it won't let me paste the output anywhere.
    If anyone could assist me in either this, or somehow managing to lock the package (I don't use it, so I'm fine without upgrading it) I'd really appreciate it.

    #2
    Re: Torrus-common fails to upgrade, remove, or purge

    If you open up Konsole and do "sudo apt-get install torrus-common" (or another action), what does it say?
    For external use only.

    Comment


      #3
      Re: Torrus-common fails to upgrade, remove, or purge

      The error message goes as follows:

      Preparing to replace torrus-common 1.0.4-1 (using .../torrus-common_1.0.5-1_all.deb) ...
      Stopping Torrus daemons (this may take a while).../etc/init.d/torrus-common: 172: arith: syntax error: "TORRUS_KILL_COUNT+1"
      invoke-rc.d: initscript torrus-common, action "stop" failed.
      dpkg: warning - old pre-removal script returned error exit status 2
      dpkg - trying script from the new package instead ...
      Stopping Torrus daemons (this may take a while).../etc/init.d/torrus-common: 172: arith: syntax error: "TORRUS_KILL_COUNT+1"
      invoke-rc.d: initscript torrus-common, action "stop" failed.
      dpkg: error processing /var/cache/apt/archives/torrus-common_1.0.5-1_all.deb (--unpack):
      subprocess new pre-removal script returned error exit status 2
      Errors were encountered while processing:
      /var/cache/apt/archives/torrus-common_1.0.5-1_all.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      I wish I could format that text to look a bit better, but I don't know how to.

      Comment


        #4
        Re: Torrus-common fails to upgrade, remove, or purge

        Well, there you go. There's an error in the daemon script.

        Could you post the chunk of the script containing line 172?
        (I'd also let the maintainer of the package know about this, e.g. by filing a bug report.)
        For external use only.

        Comment


          #5
          Re: Torrus-common fails to upgrade, remove, or purge

          156. case "$1" in
          157. start) start_daemons
          158. ;;
          159. stop) stop_daemons
          160. ;;
          161. restart) stop_daemons; start_daemons
          162. ;;
          163. force-reload)
          164. stop_daemons
          165. clear_cache
          166. restart_apache
          167. start_daemons
          168. ;;
          169. *) echo "Usage: $0 {start|stop|restart|force-reload}"
          170. exit 1
          171. ;;
          172. esac
          173.
          174. exit 0

          Comment

          Working...
          X