tcobbs/ldview

LDView on Ubuntu 16.04

Closed this issue · 1 comments

Hi there.

Thanks for making this repo available!

I am trying to run LDView on Ubuntu 16.04 (below in Docker to show that it is a clean install of Ubuntu):

docker run -it --rm ubuntu:16.04 /bin/bash
apt update -yqq && apt install -yqq curl unzip apt-utils
curl http://downloads.sourceforge.net/ldview/ldview-4.2-ubuntu-16.04.amd64.deb?download -L -o ldview-4.2-ubuntu-16.04.amd64.deb
dpkg -i ldview-4.2-ubuntu-16.04.amd64.deb
apt-get install -f

The last command terminates with this error: Errors were encountered while processing: ldview E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas on how to mitigate this? Here is more of the trace:

Setting up libmysqlclient20:amd64 (5.7.32-0ubuntu0.16.04.1) ...
Setting up qtchooser (52-gae5eeef-2build1~gcc5.2) ...
Setting up qdbus (4:4.8.7+dfsg-5ubuntu2) ...
Setting up libqt4-dbus:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
Setting up libqt4-sql-mysql:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
Setting up libqtgui4:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
Setting up libqt4-opengl:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
Setting up gconf-service (3.2.6-3ubuntu6) ...
Setting up dh-python (2.20151103ubuntu1.2) ...
Setting up python3 (3.5.1-3) ...
running python rtupdate hooks for python3.5...
running python post-rtupdate hooks for python3.5...
Setting up qt-at-spi:amd64 (0.4.0-3) ...
Setting up libqt4-declarative:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
Setting up gconf-service-backend (3.2.6-3ubuntu6) ...
Setting up gconf2 (3.2.6-3ubuntu6) ...
Setting up ldview (4.2) ...
/var/lib/dpkg/info/ldview.postinst: 4: /var/lib/dpkg/info/ldview.postinst: update-desktop-database: not found
dpkg: error processing package ldview (--configure):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for libc-bin (2.23-0ubuntu11.2) ...
Processing triggers for systemd (229-4ubuntu21.29) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Errors were encountered while processing:
 ldview
E: Sub-process /usr/bin/dpkg returned an error code (1)

This can be fixed by running apt install desktop-file-utils before installing LDView.