The process of solving the problem of installing ImageMagick under Ubuntu system

Foreword

ImageMagick is a very useful tool for image format conversion, size reduction, cropping, etc. It can be installed on both Windows and Linux systems. Because our environment is Ubuntu, we encountered some problems during the installation process. Let's take a look at the process and method of the solution.

problem found

When trying to install ImageMagick using apt-get install, there was a problem of missing dependencies:

The following packages have unmet dependencies 

After using apt-get update and apt-get upgrade commands to update the index and upgrade all packages, it still cannot be installed. Use the apt-get install -f command to repair the dependencies, but it still has no effect.

Resolution process

So I used aptitude to install, and found that there was no aptitude in the command line, and I had to install aptitude first through the apt-get install aptitude command, but I encountered the problem of missing dependencies:

The following packages have unmet dependencies 
 Depends: libstdc++6(>=4.9) but 4.8.4-2ubuntu1~14.04 is to be installed

Try to use apt-get install to install libstdc++6, but it cannot be installed successfully. Therefore, manually download the deb package of libstdc++6 and install it:

$ apt-get download libstdc++6
$ sudo dpkg -i libstdc++6_4.9.2-10ubuntu13_amd64.deb

Get the error message:

dpkg: dependency problems prevent configuration of libstdc++6:amd64: 
 libstdc++6:amd64 depends on gcc-4.9-base(=4.9.2-10ubuntu13); however:
 Version of gcc-4.9-base:amd64 on system is 4.9.3-0ubuntu4.

Solution

This is because the gcc version installed in my Ubuntu is 4.9.2-0ubuntu4, and libstdc++6 depends on the 4.9.2-10ubuntu13 version.

Finally installed ImageMagick, and summarize the problems encountered in the installation process: the main problem is that the dependency library is missing. In this case, you can consider using aptitude install to install it. It will automatically install the required dependencies, in one step.

One of the special problems I encountered is that the aptitude in the system is missing. You need to use apt-get install to install aptitude first, and the installation prompts that the dependency is missing libstdc++6, which seems to be stuck Endless loop. So use apt-get download and dpkg -i to manually download the libstdc++6 package for installation. The installation process relies on a specific version of gcc-4.9-base, so use apt-get install to install it, and then Go back and install libstdc++6, and finally install aptitude, and you are done!

to sum up

The above is the entire content of this article. I hope that the content of this article will be helpful to your study or work. If you have any questions, you can leave a message and communicate. Thank you for your support to ZaLou.Cn.

Recommended Posts

The process of solving the problem of installing ImageMagick under Ubuntu system
Solve the problem of installing VMwareTools on Ubuntu 18.04
Solve the problem of installing Theano on Ubuntu19
Deploy the mail system under Ubuntu 19.10
Overview of the Ubuntu file system
How to extend the root directory of LVM under Ubuntu system
How to fix the problem of missing system settings on Ubuntu 14.04
[Centos8] The bumpy process of installing docker
The problem of installing GD plug-in OFF on ubuntu dream weaving DEDE
Expand the disk size of Ubuntu under VMware
Install the old version of seurat under Ubuntu
The latest method of installing Mongodb on Ubuntu 16.04
Solve the problem of python compiling and installing ssl
Detailed explanation of static DNS configuration under Ubuntu system
Modify the default root password of the Ubuntu operating system
Use of mediawiki under ubuntu
About solving the problem that ubuntu cannot resolve the domain name
Encountered in the process of building a virtual environment in ubuntu
Common exceptions and solutions in the use and development of Ubuntu system
The processing of the ubuntu snapd process continuously writing to the hard disk
The ubuntu 16.04 system perfectly solves the problem that pip cannot be upgraded
Install the latest version of Thunderbird and exchange plugins under ubuntu
Installation of deb package under Ubuntu
Installation of Docker CE under Ubuntu
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
Install linux (ubuntu) dual system under windows system
Installation and uninstallation of CUDA under Ubuntu 16.04
Build the C++ compilation environment under ubuntu
The apt-get command of Ubuntu basic tutorial
The implementation of the Ubuntu18.04 installation Pycharm tutorial
Centos 8.1.1911 solves the problem of yum reinstallation
The fourth installment of Zabbix under CentOs7
Install utility software collection under Ubuntu system