Log In  


Howdy!

Turns out the Debian package won't install on lightweight ummm... installations
because postinst, postrm and prerm don't check for existence of the
programs they use:

$ dpkg -i voxatron_0.2.1_amd64.deb
Selecting previously unselected package voxatron.
(Reading database ... 59948 files and directories currently installed.)
Unpacking voxatron (from voxatron_0.2.1_amd64.deb) ...
Setting up voxatron (0.2.1) ...
/var/lib/dpkg/info/voxatron.postinst: 3: /var/lib/dpkg/info/voxatron.postinst: xdg-icon-resource: not found
/var/lib/dpkg/info/voxatron.postinst: 4: /var/lib/dpkg/info/voxatron.postinst: xdg-desktop-menu: not found
dpkg: error processing voxatron (--install):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 voxatron

Wrapping each command like so

[b]if type xdg-desktop-menu > /dev/null; then[/b]
xdg-desktop-menu install --novendor /usr/share/applications/voxatron.desktop
[b]fi[/b]

should fix the problem (and IMHO is preferable to adding an xdg-utils dependency).

Thanks! :)



nice one. I added these wrapped commands for the next build


I'm getting another error when trying to install on Debian Testing:

b0rsuk@Machaka:~/Gry/kupione$ sudo dpkg -i voxatron_0.2.1_amd64.deb 
[sudo] password for b0rsuk: 
(Reading database ... 194631 files and directories currently installed.)
Unpacking voxatron (from voxatron_0.2.1_amd64.deb) ...
dpkg: error processing voxatron_0.2.1_amd64.deb (--install):
 error creating directory `opt/voxatron': No such file or directory
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 voxatron_0.2.1_amd64.deb


[Please log in to post a comment]