cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
270 stars 49 forks source link

[cubian-packages] udevil 0.4.1-2 installscripts broken? #248

Closed fieldOfView closed 10 years ago

fieldOfView commented 10 years ago

The 0.4.1-2 dpkg install and remove scripts have an unlisted dependency on systemctl. After apt-get upgrading from the previous version, the user is stuck with a recurring apt-get error because dpkg cannot succesfully complete the install (or the uninstall).

Setting up udevil (0.4.1-2) ...
dpkg: error processing udevil (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 udevil
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sorry if this is the wrong place to report this; the cubian-packages repo does not have an issue-tracker (or does it?).

michalliu commented 10 years ago

Thansk for report, I will check the problem.

michalliu commented 10 years ago

The problem is caused by https://github.com/mmplayer/cubian-packages/commit/dbdb5e6de653b4fdded41f8ede5a3d2905bd1b8d#diff-a6d5f39ddd53c674d100aa20e7912a6d

systemctl is not a dependency, the script will check if systemctl is present in the system. If it does we will try to enable the devmon service.

fieldOfView commented 10 years ago

I probably don't have my terminology correct. I agree that it is not so much a dependency, but the install/uninstall scripts seemed to depend on systemctl which is not installed on my cubian.

Anyway, the updated package does not install (or uninstall) cleanly for me. Does it for you?

michalliu commented 10 years ago

I have systemctl installed, it's come from the package systemd. I will try to remove systemd then see what happens.

cubieplayer commented 10 years ago

It seems a problem in the script. I will do a quick fix.

cubieplayer commented 10 years ago

Hi, Thanks for reporting the problem. It has been fixed now. try apt-get update and upgrade again.

fieldOfView commented 10 years ago

Works for me. Thanks!