0

TLDR: I messed up an installation of Imagemagick and I am trying to reset back so that when I type magick it simply says Command 'magick' not found... rather than bash: /usr/local/bin/magick: No such file or directory so that I can fresh install it with sudo apt

Full story:

I recently upgraded to Ubuntu 20.04 and in the process, it seems to have removed ImageMagick, so I followed the instructions here to re-install it. All went fine until I got the problems also explained here. None of this worked and so I went into my usr/local/lib and just deleted everything imageMagick related (in hindsight probably not smart but I thought since I installed it from source I could just do this).

I then tried repeating the process again and it seemed to get me back to a point where magick would work but still with the same delegate problem, this time round I removed it using sudo make uninstall after realising it was available on a sudo apt install (I must have just typed it wrong when I first tried).

However at this point no matter what I do when I try and call magick I just get bash: /usr/local/bin/magick: No such file or directory

Can someone help explain where I am going wrong and if there is a way to completely undo all this?

For reference when I run sudo apt list imagemagick -a this is what I get:

imagemagick/focal-updates,focal-security,now 8:6.9.10.23+dfsg-2.1ubuntu11.1 amd64 [installed]
imagemagick/focal 8:6.9.10.23+dfsg-2.1ubuntu11 amd64

imagemagick/focal-updates,focal-security 8:6.9.10.23+dfsg-2.1ubuntu11.1 i386 imagemagick/focal 8:6.9.10.23+dfsg-2.1ubuntu11 i386

I'm not very good with complex command line stuff but to me this looks like it is somehow installed?

falcoso
  • 131
  • 4

1 Answers1

0

I have managed to resolve the problem after using hash -r as suggested in the comments. I also discovered there were other imagemagick packages installed which I needed to remove before installing everything else again.

falcoso
  • 131
  • 4