carla: carla-simulator : Depends: libjpeg8 but it is not installable

OS: Debian 10.5 x86_64 (4.19.0-10-amd64)

I’m trying to install with the deb instructions in the quick start guide:

sudo apt-get update
sudo apt-get install carla-simulator
cd /opt/carla-simulator

However, after apt-get install carla-simulator, it fails with this error:

The following packages have unmet dependencies:
 carla-simulator : Depends: libjpeg8 but it is not installable
E: Unable to correct problems, you have held broken packages.

After this, the cd /opt/carla-simulator fails as the directory doesn’t exist. Running sudo apt-get install -f doesn’t help.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

OK, I was able to install the libraries from the packages libjpeg-turbo8 and libtiff-dev using apt-get. I am now encountering an error involving the fonts when running manual_control.py or automatic_conrol.py.

sudo docker exec -e PYTHONPATH=/home/carla/PythonAPI/carla/dist/carla-0.9.10-py3.7-linux-x86_64.egg <container_id> python3 PythonAPI/examples/manual_control.py

The client starts, but then it fails with this error.

File "PythonAPI/examples/manual_control.py", line 507, in <listcomp>
    fonts = [x for x in pygame.font.get_fonts() if font_name in x]
TypeError: argument of type 'NoneType' is not iterable

Do you have any information about this error? It looks similar to #1475.

To install libjpeg8-dev, use this:

sudo apt install aptitude
sudo aptitude install libjpeg-dev

You may then need to choose “no”, “yes”, “yes”. See my detailed instructions here: How to install/upgrade to the latest version of Poppler/pdftoppm (version 22.11.0 at the time of this writing) on Linux Ubuntu

See my answer: https://unix.stackexchange.com/a/723619/114401

hi @thillRobot I have the same problem with running pygame.font.get_fonts() inside Ubuntu 18.04 docker, with pygame installed via pip3. However, it cannot be fixed by replacing mono with aerial since get_fonts() is returning [None].

Its strange since pygame.font.get_default_font() returns 'freesansbold.ttf' , so there is at least 1 available font.

Therefore, I’ve just done mono = 'freesansbold' as a dirty fix to run it inside the docker, but would be good to know if you’ve figured out the root cause of this issue.

I had the exact same issue, and I believe I have resolved it. The pygame.fonts module uses the CLI tool ‘fc-list’ to get the system fonts list. https://github.com/pygame/pygame/blob/45acd6f14555587e4fe44c5e033c0c9b9b68e2a8/src_py/sysfont.py#L232 That has to be installed in your container by apt install fontconfig