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! :)

P#6421 2012-08-10 18:42 ( Edited 2012-12-26 04:06)

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

P#6433 2012-08-16 17:54 ( Edited 2012-08-16 21:54)

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
P#6476 2012-08-25 16:13 ( Edited 2012-08-25 20:13)

[Please log in to post a comment]