documentation/Issues-with-CAPTCHA-on-Debi...

53 lines
2.1 KiB
Markdown
Raw Normal View History

2021-01-28 22:04:37 +01:00
---
title: Issues-with-CAPTCHA-on-Debian-and-Ubuntu
description:
published: true
2021-02-25 19:14:04 +01:00
date: 2021-02-25T18:05:15.491Z
2021-01-28 22:04:37 +01:00
tags:
2021-03-14 18:15:53 +01:00
editor: markdown
2021-01-28 22:04:37 +01:00
dateCreated: 2021-01-28T20:39:51.349Z
---
2020-05-26 19:46:31 +02:00
#### Warning: If you use ImageMagick on Ubuntu for other services like Mastodon this guide may break them, please use [this guide](https://linuxconfig.org/how-to-install-imagemagick-7-on-ubuntu-18-04-linux) instead.
There is some issue on Debian 9 and Ubuntu 18.04 and later. It appears that the clock (the CAPTCHA) has no hands but you can see them outside the clock. You need to compile ImageMagick yourself with librsvg to solve this issue.
2020-08-25 13:42:40 +02:00
Thanks [Tmiland](https://github.com/tmiland) for showing up a solution at [#299](https://github.com/iv-org/invidious/issues/299)
2020-05-26 19:46:31 +02:00
For lazy people a little hack is to disable CAPTCHA or use text one.
2019-08-25 01:58:37 +02:00
2020-05-26 19:46:31 +02:00
You can check if your version of ImageMagick is affected with `convert -list format`.
It should show the following if your installed version is okay.
```
SVG SVG rw+ Scalable Vector Graphics (RSVG 2.40.13)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (RSVG 2.40.13)
```
2020-05-26 19:46:31 +02:00
If this is not the case your version is not compiled with librsvg, then you get the following.
```
SVG SVG rw+ Scalable Vector Graphics (XML 2.9.4)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (XML 2.9.4)
```
Follow the steps to fix this issue:
`$ sudo apt purge imagemagick`
```bash
$ cd /tmp
# check for new releases: https://github.com/ImageMagick/ImageMagick6/releases
2020-06-20 02:26:55 +02:00
$ wget https://github.com/ImageMagick/ImageMagick6/archive/6.9.11-19.tar.gz
$ tar -xvf 6.9.10-24.tar.gz
$ cd ImageMagick6-6.9.10-24
$ ./configure --with-rsvg
$ make
$ sudo make install
```
Set the correct path: `$ sudo ln -s /usr/local/bin/convert /usr/bin/convert`
If you get an error here that this file already exists, please execute `$ sudo apt autoremove`
Now `convert -list format` reports
SVG rw+ Scalable Vector Graphics (RSVG 2.40.16)
SVGZ rw+ Compressed Scalable Vector Graphics (RSVG 2.40.16)
Restart Invidious, just to be sure `$ sudo systemctl restart invidious.service`