Closed YutMarma closed 3 months ago
Please attach the log file. It should tell us, why it didn't install properly.
Tons of relinking warnings here:
The main problem seems to be this:
The following packages have unmet dependencies:
libavcodec58 : Depends: libcodec2-0.9 (>= 0.9.2) but it is not installable
Depends: libwebp6 (>= 0.5.1) but it is not installable
libavfilter7 : Depends: libtesseract4 but it is not installable
libavformat58 : Depends: libsrt1.4-gnutls (>= 1.4.2) but it is not installable
Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
So is this something that I'm going to be able to resolve? This is a relatively bog-standard Ubuntu LTS 22 install, running under WSL on Windows.
Tangentially-related, what's the approved procedure for an uninstall? (didn't see anything in the README.md)
If Windows Batch wasn't a slightly less-elegant, slightly more-psychotic version of INTERCAL I'd have given up with this IM7-on-Linux pipe dream weeks ago. :)
Do you have any extra PPA's enabled (e.g. ppa:ondrej/php
)?
Do you have any extra PPA's enabled (e.g.
ppa:ondrej/php
)?
Not to my knowledge. There may or may not be a partial, non-apt install of Imagemagick lingering around from earlier in the rabbit hole, but if there is, I lack the Linux fluency to know how to manually hunt it down and snuff it out. I mean, rm
, duh, but as far as what exactly to ls -R
for, I'm in the dark.
The problem isn't imagemagick. You should make sure, that there's no other apt source defined, except for the basic ones.
I doubt that there is, but what exactly would I do to verify there isn't? I'm not computer-dumb, just Linux-dumb :)
Check /etc/apt/sources.list.d/
.
I have one there, for recoll
:
recoll-backports-ubuntu-recoll-1_15-on-mantic.sources
Types: deb
URIs: https://ppa.launchpadcontent.net/recoll-backports/recoll-1.15-on/ubuntu/
Suites: mantic
Components: main
Signed-By: [snipped PGP key]
I assume next step is to delete it and try again?
That's not the issue. First of all: Is there a reason, that you are using Ubuntu 23.10, instead of 24.04 LTS? What I can tell is, that something strange is going on with your system. Ubuntu 23.10 has CMAKE 3.27.4, but IMEI complains, that the installed CMAKE version isn't sufficient.
What's the result of
cmake --version | head -n1 | cut -d" " -f3
? I just set-up a fresh Ubuntu 22.04 server, upgraded to 23.10, and performed the installation of IMEI without any problems:
First of all: Is there a reason, that you are using Ubuntu 23.10, instead of 24.04 LTS?
Linux is my secondary OS (as you can probably already tell from how much hand-holding I've needed). I use it via WSL (Windows Subsystem Linux) for command line-intensive operations, since Windows batch scripting is such an irredeemable puddle of horror. I basically take a philosophy that "if apt update doesn't do it, it doesn't need to be done right now". I'd be happy to update if you think it's worth a shot.
What's the result of (snip)
Well, I think we found our issue - cmake wasn't actually installed. Maybe it's not part of the default WSL Ubuntu distribution.
I went ahead and installed it, then re-installed imei.sh and everything seems great now!
$ magick image.png -trim +repage output.png
[the blissful lack of follow-up indicating success goes here]
Thank you so, so much for your time with this. I knew it'd probably be something unbelievably goofy like this, but I never would have been able to track it down myself.
Hello! First off, thank you for taking the time to create imei. It's sort of unfathomably ridiculous that debian/Ubuntu still, nearly ten years later, refuses to allow for an easy aptitude-based method of installing something as important as imagemagick 7.0, but I guess that's why Microsoft feels safe making Windows 11 the ultimate user-experience downgrade.
I'll spare the full rant and cut to the heart of what's going on. I installed imei:
And have installed libpng-dev:
The 2 not upgraded are unrelated nonsense:
However:
Any suggestions?