Inkscape 0.92 dependencies on 17.04

Asked by Mehman Jamalov on 2017-05-09

Hi. I get this error on termminal after adding PPA and updating

mehman@HP:~$ sudo apt install inkscape
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 inkscape : Depends: libmagick++-6.q16-6v6 (>= 8:6.9.2.3) but it is not installable
            Recommends: perlmagick
            Recommends: python-lxml but it is not going to be installed
            Recommends: python-numpy but it is not going to be installed
            Recommends: python-scour but it is not going to be installed
            Recommends: python-uniconvertor but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
mehman@HP:~$

How to fix it for inkscape?
Thanks beforehand

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Mehman Jamalov
Solved:
2017-05-10
Last query:
2017-05-10
Last reply:
2017-05-10
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
apt-cache policy inkscape
dpkg -l | grep libmagick++-6

Mehman Jamalov (mcamalov) said : #2

Here is the output

mehman@HP:~$ uname -a
Linux HP 4.10.0-20-generic #22-Ubuntu SMP Thu Apr 20 09:22:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
mehman@HP:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 17.04
Release: 17.04
Codename: zesty
mehman@HP:~$ sudo dpkg --audit
[sudo] password for mehman:
mehman@HP:~$ sudo dpkg --audit
mehman@HP:~$ apt-cache policy inkscape
inkscape:
  Installed: (none)
  Candidate: 0.92.1+66~ubuntu17.04.1
  Version table:
     0.92.1+66~ubuntu17.04.1 500
        500 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu zesty/main amd64 Packages
     0.92.1-1 500
        500 http://archive.ubuntu.com/ubuntu zesty/main amd64 Packages
        500 http://az.archive.ubuntu.com/ubuntu zesty/main amd64 Packages
        100 /var/lib/dpkg/status
mehman@HP:~$ dpkg -l | grep libmagick++-6
mehman@HP:~$

Then you are using a PPA. I suggest you contact the PPA maintainer to inform them.

Why are you using a PPA at all? The same version is in the Ubuntu repositories and will install without issue.

Mehman Jamalov (mcamalov) said : #5

I removed PPA and installed from Ubuntu Software Center and I get this error now.

mehman@HP:~$ inkscape
inkscape: error while loading shared libraries: libgtkmm-2.4.so.1: cannot open shared object file: No such file or directory
mehman@HP:~$

What is the output of:

apt-cache policy inkscape

Thanks

Manfred Hampl (m-hampl) said : #7

For diagnostic purposes please provide also the output of the commands

sudo dpkg --audit
dpkg -l | grep libgtkmm
ls -ld /usr/lib/x86_64-linux-gnu/libgtkmm*

Mehman Jamalov (mcamalov) said : #8

@actionparsnip here is the output

mehman@HP:~$ apt-cache policy inkscape
inkscape:
  Installed: 0.92.1-1
  Candidate: 0.92.1-1
  Version table:
 *** 0.92.1-1 500
        500 http://archive.ubuntu.com/ubuntu zesty/main amd64 Packages
        500 http://az.archive.ubuntu.com/ubuntu zesty/main amd64 Packages
        100 /var/lib/dpkg/status
mehman@HP:~$

Thanks for helping

Mehman Jamalov (mcamalov) said : #9

@Manfred Hampl here is the output

mehman@HP:~$ sudo dpkg --audit
mehman@HP:~$ dpkg -l | grep libgtkmm
ii libgtkmm-2.4-1v5:amd64 1:2.24.5-1 amd64 C++ wrappers for GTK+ (shared libraries)
ii libgtkmm-3.0-1v5:amd64 3.22.0-1 amd64 C++ wrappers for GTK+ (shared libraries)
mehman@HP:~$ ls -ld /usr/lib/x86_64-linux-gnu/libgtkmm*
lrwxrwxrwx 1 root root 21 Apr 22 00:58 /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1 -> libgtkmm-3.0.so.1.1.0
-rw-r--r-- 1 root root 5594952 Sen 20 2016 /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1.1.0
mehman@HP:~$

THank you for helping me

Manfred Hampl (m-hampl) said : #10

The installation of the libgtkmm-2.4-1v5 package seems to be broken on your system.

Try
sudo apt-get install --reinstall libgtkmm-2.4-1v5
and then repeat

 ls -ld /usr/lib/x86_64-linux-gnu/libgtkmm*

Does libgtkmm-2.4.so.1 show up?

Mehman Jamalov (mcamalov) said : #11

Thank you Manfred Hampl. It worked out for me, I can run INkscape now

Tank you a lot