Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
First of all, try to identify your image like this:
Code:
/usr/bin/identify-im6 1.jpeg
That should work!
If it does, you can either modify your PATH to put /usr/local/bin behind /usr/bin, or delete your wild imagemagick install in /usr/local (although if you don't remember how it got there in the first place...).
I posted a wrong command earlier.
Try this instead:
Code:
apt search imagemagick|grep nstalled
for each package you get, do
Code:
dpkg -L package
and make sure it has nothing in /usr/local, or if it does, show us.
PS: when's the last time you did a succesful system upgrade?
Did you at any point compile imagemagick yourself, or install it with something other than apt, apt-get, dpkg or graphical package manager?
Looking at my history it appears that I did compile it. I was following instructions I found on some forum somewhere. Here is my history for everything related to Imagemagick:
You do understand that apt remove can only remove installed .deb packages? APT knows nothing about software that was installed with make install or rpm -i or zypper install or whatever else of package management tools you tried. BTW, please don't do this anymore. Installing software on Ubuntu with non-native package managers is a recipe for disaster.
Software that was built from source and installed with make install should be uninstalled with
Quote:
Originally Posted by Tem2
Code:
656 make uninstall
As ondoho said above, please show the contents of /usr/local/bin.
You do understand that apt remove can only remove packages that were installed with apt install? APT knows nothing about software that was installed with make install or rpm -i or zypper install or whatever else of package management tools you tried. BTW, please don't do this anymore. Installing software on Ubuntu with non-native package managers is a recipe for disaster.
Software that was built from source and installed with make install should be uninstalled with
As ondoho said above, please show the contents of /usr/local/bin.
I admit that I don't know what I'm doing. I find things online and follow them blindly sometimes. I never know what is dangerous or potentially problematic or harmless. Live and learn?
Code:
master@master-Latitude-E6400:/usr/local/bin$ ls -l
total 12208
lrwxrwxrwx 1 root root 6 May 26 18:27 animate -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 compare -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 composite -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 conjure -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 convert -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 display -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 identify -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 import -> magick
-rwxr-xr-x 1 root root 12475012 May 26 18:27 magick
-rwxr-xr-x 1 root root 1303 May 26 18:09 Magick-config
-rwxr-xr-x 1 root root 1313 May 26 18:27 Magick++-config
-rwxr-xr-x 1 root root 1483 May 26 18:27 MagickCore-config
lrwxrwxrwx 1 root root 6 May 26 18:27 magick-script -> magick
-rwxr-xr-x 1 root root 1292 May 26 18:27 MagickWand-config
lrwxrwxrwx 1 root root 6 May 26 18:27 mogrify -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 montage -> magick
lrwxrwxrwx 1 root root 6 May 26 18:27 stream -> magick
-rwxr-xr-x 1 root root 1311 May 26 18:09 Wand-config
master@master-Latitude-E6400:/usr/local/bin$
First of all, try to identify your image like this:
Code:
/usr/bin/identify-im6 1.jpeg
That should work!
If it does, you can either modify your PATH to put /usr/local/bin behind /usr/bin, or delete your wild imagemagick install in /usr/local (although if you don't remember how it got there in the first place...).
I posted a wrong command earlier.
Try this instead:
Code:
apt search imagemagick|grep nstalled
for each package you get, do
Code:
dpkg -L package
and make sure it has nothing in /usr/local, or if it does, show us.
PS: when's the last time you did a succesful system upgrade?
Code:
master@master-Latitude-E6400:~$ ls *.jpg
1.jpg
master@master-Latitude-E6400:~$ /usr/bin/identify-im6 1.jpg
bash: /usr/bin/identify-im6: No such file or directory
master@master-Latitude-E6400:~$
Code:
master@master-Latitude-E6400:~$ apt search imagemagick|grep nstalled
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
imagemagick-common/xenial-updates,xenial-security,now 8:6.8.9.9-7ubuntu5.15 all [installed,auto-removable]
libmagickcore-6.q16-2/xenial-updates,xenial-security,now 8:6.8.9.9-7ubuntu5.15 i386 [installed,auto-removable]
libmagickwand-6.q16-2/xenial-updates,xenial-security,now 8:6.8.9.9-7ubuntu5.15 i386 [installed,auto-removable]
master@master-Latitude-E6400:~$
Can you give me an example of what to execute based on this output? Like dpkg -L ___ (fill in the blank please)
And thanks for all your help. As far as the last successful system upgrade, I don't know. Can I do one now? Will it step on my applications, or will it be seamless?
master@master-Latitude-E6400:~$ /usr/bin/identify-im6 1.jpg
bash: /usr/bin/identify-im6: No such file or directory
Oh, that only means you successfully uninstalled the native package. Then install it again:
Code:
sudo apt install imagemagick
And sorry, I guess I was unnecessarily condescending in my previous post. When you attempt to install anything with a non-native tool like rpm it would most probably just error out. But this being Ubuntu, it may helpfully suggest you installing the missing parts. And if you're persistent enough and follow through with installing all the missing libraries and whatnot, in the end you might be able to actually install something with rpm. And that's where your real problems would start.
Oh, that only means you successfully uninstalled the native package. Then install it again:
Code:
sudo apt install imagemagick
And sorry, I guess I was unnecessarily condescending in my previous post. When you attempt to install anything with a non-native tool like rpm it would most probably just error out. But this is Ubuntu, so it may helpfully suggest you installing the missing parts. And if you're persistent enough and follow through with installing all the missing libraries and whatnot, in the end you might be able to actually install something with rpm. And that's where your real problems would start.
Yay! That works for identify. What I really want is to use the convert command to create an animated gif. I thought if I could get identify to work then the convert would work too. It doesn't.
Oh, that only means you successfully uninstalled the native package. Then install it again:
Code:
sudo apt install imagemagick
And sorry, I guess I was unnecessarily condescending in my previous post. When you attempt to install anything with a non-native tool like rpm it would most probably just error out. But this is Ubuntu, so it may helpfully suggest you installing the missing parts. And if you're persistent enough and follow through with installing all the missing libraries and whatnot, in the end you might be able to actually install something with rpm. And that's where your real problems would start.
Thanks for all your help. I'll close this ticket now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.