Errors were encountered while processing: python-jasmin

748 views
Skip to first unread message

Zaheer Abbas

unread,
Nov 7, 2015, 1:04:08 PM11/7/15
to Jasmin SMS Gateway
hello,

I am facing the subject error during installation of jasmin.

Things i have done;

1- curl -s https://packagecloud.io/install/repositories/jookies/python-jasmin/script.deb.sh
returned with " .......... echo
  echo "The repository is setup! You can now install packages."

2-  sudo apt-get install python-jasmin
returned with "dpkg: error processing package python-jasmin (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 python-jasmin
E: Sub-process /usr/bin/dpkg returned an error code (1)"

3- sudo apt-get install --reinstall python-jasmin
returned with "Reading package lists... Done
Building dependency tree      
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0 B/233 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package python-jasmin.
(Reading database ... 198401 files and directories currently installed.)
Preparing to unpack .../python-jasmin_0.8~dev0_all.deb ...
 * Stopping jasmind system service jasmind                               [ OK ]
invoke-rc.d: initscript interceptord, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 21
dpkg: trying script from the new package instead ...
 * Stopping jasmind system service jasmind                               [ OK ]
invoke-rc.d: initscript interceptord, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/python-jasmin_0.8~dev0_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 21
addgroup: The group `jasmin' already exists as a system group. Exiting.
Warning: The home dir /usr/lib/jasmin you specified can't be accessed: No such file or directory
The system user `jasmin' already exists. Exiting.
 * Starting jasmind system service  jasmind                              [ OK ]
invoke-rc.d: initscript interceptord, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 21
Errors were encountered while processing:
 /var/cache/apt/archives/python-jasmin_0.8~dev0_all.deb
E: Sub-process /usr/bin/dpkg
 returned an error code (1)"

I have searched alot on ubuntu forums but couldnt find the solution.
Please help!!!

zoufou

unread,
Nov 9, 2015, 8:17:07 PM11/9/15
to Jasmin SMS Gateway
Bad luck, you were trying to install using deb packages where in same time, packaging were updated: https://github.com/jookies/jasmin/issues/329

Now it's okay, starting from 0.8b2

Some changes to be announced:
  • rpm and deb packages are providing systemd scripts instead of old init.d scripts,
  • for that reason, jasmin is now packaged for Ubuntu 15.04 and 15.10, no more packages for 14.04 LTS since it doesnt provide complete support for systemd;
If you're stick with 14.04, then run the pypi installation process.
Reply all
Reply to author
Forward
0 new messages