libgvc6 failing on apt or dpkg install on artsy

Asked by Joe Malingowski

I tried this on a few servers with the same result. Seems there are files missing in libgvc6 package:

# apt install graphviz
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libcdt5 libcgraph6 libgvc6 libgvpr2 libpathplan4
Suggested packages:
  graphviz-doc
The following NEW packages will be installed:
  graphviz libcdt5 libcgraph6 libgvc6 libgvpr2 libpathplan4
0 upgraded, 6 newly installed, 0 to remove and 15 not upgraded.
1 not fully installed or removed.
Need to get 1,546 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu artful/main amd64 libcdt5 amd64 2.38.0-16ubuntu2 [19.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu artful/main amd64 libcgraph6 amd64 2.38.0-16ubuntu2 [40.0 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu artful/main amd64 libpathplan4 amd64 2.38.0-16ubuntu2 [22.6 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu artful/main amd64 libgvc6 amd64 2.38.0-16ubuntu2 [587 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu artful/main amd64 libgvpr2 amd64 2.38.0-16ubuntu2 [167 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu artful/main amd64 graphviz amd64 2.38.0-16ubuntu2 [710 kB]
Fetched 1,546 kB in 0s (2,700 kB/s)
Selecting previously unselected package libcdt5.
(Reading database ... 180891 files and directories currently installed.)
Preparing to unpack .../0-libcdt5_2.38.0-16ubuntu2_amd64.deb ...
Unpacking libcdt5 (2.38.0-16ubuntu2) ...
Selecting previously unselected package libcgraph6.
Preparing to unpack .../1-libcgraph6_2.38.0-16ubuntu2_amd64.deb ...
Unpacking libcgraph6 (2.38.0-16ubuntu2) ...
Selecting previously unselected package libpathplan4.
Preparing to unpack .../2-libpathplan4_2.38.0-16ubuntu2_amd64.deb ...
Unpacking libpathplan4 (2.38.0-16ubuntu2) ...
Selecting previously unselected package libgvc6.
Preparing to unpack .../3-libgvc6_2.38.0-16ubuntu2_amd64.deb ...
Unpacking libgvc6 (2.38.0-16ubuntu2) ...
Selecting previously unselected package libgvpr2.
Preparing to unpack .../4-libgvpr2_2.38.0-16ubuntu2_amd64.deb ...
Unpacking libgvpr2 (2.38.0-16ubuntu2) ...
Selecting previously unselected package graphviz.
Preparing to unpack .../5-graphviz_2.38.0-16ubuntu2_amd64.deb ...
Unpacking graphviz (2.38.0-16ubuntu2) ...
Setting up libpathplan4 (2.38.0-16ubuntu2) ...
Setting up network-manager-config-connectivity-ubuntu (1.8.4-1ubuntu3) ...
NetworkManager.service is not active, cannot reload.
invoke-rc.d: initscript network-manager, action "force-reload" failed.
dpkg: error processing package network-manager-config-connectivity-ubuntu (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libcdt5 (2.38.0-16ubuntu2) ...
Setting up libcgraph6 (2.38.0-16ubuntu2) ...
Setting up libgvc6 (2.38.0-16ubuntu2) ...
Warning: Could not load "/usr/lib/graphviz/libgvplugin_xlib.so.6" - file not found
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gd.so.6" - file not found
Warning: Could not load "/usr/lib/graphviz/libgvplugin_pango.so.6" - file not found
Segmentation fault (core dumped)
dpkg: error processing package libgvc6 (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libgvpr2 (2.38.0-16ubuntu2) ...
dpkg: dependency problems prevent configuration of graphviz:
 graphviz depends on libgvc6; however:
  Package libgvc6 is not configured yet.

dpkg: error processing package graphviz (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 network-manager-config-connectivity-ubuntu
 libgvc6
 graphviz
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any suggestions?

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu graphviz Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

for diagnostic purposes please provide the output of the following commands:

uname -a
lsb_release -crid
sudo dpkg --audit
df -h
ls -l /usr/lib/graphviz/libgvplugin*

Revision history for this message
Joe Malingowski (computerjoe-4) said :
#2

Thanks Manfred.

$ uname -a
Linux math-colibri-c01 4.13.0-37-generic #42-Ubuntu SMP Wed Mar 7 14:13:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful

$ sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 libgvc6 rich set of graph drawing tools - gvc library

$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 26M 6.3G 1% /run
/dev/sda6 311G 4.2G 291G 2% /
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sda1 3.7G 149M 3.3G 5% /boot
10.12.109.108:/home/students 4.0T 2.6T 1.3T 68% /home/students
10.12.109.108:/home/projects 5.0T 2.3T 2.5T 47% /home/projects
10.12.109.108:/opt/shared 99G 25G 69G 27% /opt/shared
10.12.109.108:/home/faculty 4.0T 2.0T 1.9T 52% /home/faculty
10.133.30.122:/mnt/internal 123T 83T 41T 67% /math-stor-02
tmpfs 6.3G 0 6.3G 0% /run/user/1000

$ ls -l /usr/lib/graphviz/libgvplugin*
lrwxrwxrwx 1 root root 25 Jul 26 2017 /usr/lib/graphviz/libgvplugin_core.so.6 -> libgvplugin_core.so.6.0.0
-rw-r--r-- 1 root root 122152 Jul 26 2017 /usr/lib/graphviz/libgvplugin_core.so.6.0.0
lrwxrwxrwx 1 root root 31 Jul 26 2017 /usr/lib/graphviz/libgvplugin_dot_layout.so.6 -> libgvplugin_dot_layout.so.6.0.0
-rw-r--r-- 1 root root 146760 Jul 26 2017 /usr/lib/graphviz/libgvplugin_dot_layout.so.6.0.0
lrwxrwxrwx 1 root root 23 Jul 26 2017 /usr/lib/graphviz/libgvplugin_gd.so.6 -> libgvplugin_gd.so.6.0.0
-rw-r--r-- 1 root root 47208 Jul 26 2017 /usr/lib/graphviz/libgvplugin_gd.so.6.0.0
lrwxrwxrwx 1 root root 33 Jul 26 2017 /usr/lib/graphviz/libgvplugin_neato_layout.so.6 -> libgvplugin_neato_layout.so.6.0.0
-rw-r--r-- 1 root root 584992 Jul 26 2017 /usr/lib/graphviz/libgvplugin_neato_layout.so.6.0.0
lrwxrwxrwx 1 root root 26 Jul 26 2017 /usr/lib/graphviz/libgvplugin_pango.so.6 -> libgvplugin_pango.so.6.0.0
-rw-r--r-- 1 root root 44768 Jul 26 2017 /usr/lib/graphviz/libgvplugin_pango.so.6.0.0
lrwxrwxrwx 1 root root 25 Jul 26 2017 /usr/lib/graphviz/libgvplugin_xlib.so.6 -> libgvplugin_xlib.so.6.0.0
-rw-r--r-- 1 root root 15032 Jul 26 2017 /usr/lib/graphviz/libgvplugin_xlib.so.6.0.0

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

I suggest that you try

sudo dpkg --purge libgvc6
sudo apt install libgvc6

and if that fails with the same error message, then I recommend to create a bug report.

Revision history for this message
Joe Malingowski (computerjoe-4) said :
#4

Yup - still fails. I'll submit the bug report.

Can you help with this problem?

Provide an answer of your own, or ask Joe Malingowski for more information if necessary.

To post a message you must log in.