# VNC Server does not start

**URL:** <https://dietpi.com/forum/t/vnc-server-does-not-start/18603>\
**Category:** Troubleshooting\
**Tags:** raspberry-pi-4\
**Created:** [7 December 2023 16:33 UTC](https://dietpi.com/forum/t/vnc-server-does-not-start/18603 "2023-12-07T16:33:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HyperCriSiS](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/8e8cbc/32.png) [@HyperCriSiS](https://dietpi.com/forum/u/HyperCriSiS)\
**Post date:** [7 December 2023 16:33 UTC](https://dietpi.com/forum/t/vnc-server-does-not-start/18603/1 "2023-12-07T16:33:07Z")

</div>

### Creating a bug report/issue

I have searched the existing open and closed issues

DietPi version | G\_DIETPI\_VERSION\_CORE=8  
G\_DIETPI\_VERSION\_SUB=24  
G\_DIETPI\_VERSION\_RC=1  
G\_GITBRANCH=‘master’  
G\_GITOWNER=‘MichaIng’  
Distro version | bookworm 1  
Kernel version | Linux HyperPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux  
Architecture | armhf  
SBC model | RPi 4 Model B (aarch64)

#############

Hi,  
the VNC server suddenly does not start anymore.  
I already did a software reinstall (120)

Log:

```auto
Dez 07 16:46:45 HyperPi systemd[1]: Started vncserver.service - VNC Server (DietPi).
Dez 07 16:46:46 HyperPi (ncserver)[1231]: pam_unix(login:session): session opened for user root(uid=0) by (uid=0)
Dez 07 16:46:46 HyperPi vncserver[1231]: [OK] RealVNC detected
Dez 07 16:46:46 HyperPi vncserver[1231]: [INFO] Starting virtual desktop at display :1 in 1280x720x16
Dez 07 16:46:46 HyperPi vncserver[1231]: /usr/bin/vncserver-virtual: error while loading shared libraries: libmmal.so: cannot open shared object file: No such file or directory
Dez 07 16:46:46 HyperPi systemd[1]: vncserver.service: Main process exited, code=exited, status=127/n/a
Dez 07 16:46:46 HyperPi systemd[1]: vncserver.service: Failed with result 'exit-code'.
root@HyperPi:~# #!/bin/bash

```

What’s wrong here?

Thanks  
Hyper

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 December 2023 22:27 UTC](https://dietpi.com/forum/t/vnc-server-does-not-start/18603/2 "2023-12-07T22:27:01Z")

</div>

Did you upgrade Debian version from Bullseye to Bookworm? Or any other package update?

> [@HyperCriSiS](#):
>
> What’s wrong here?

You are hit by a bug of RealVNC software not being able to run on 32bit RPi Bookworm anymore [RealVNC on 32-bit RasPiOS issue · Issue #41 · raspberrypi/bookworm-feedback · GitHub](https://github.com/raspberrypi/bookworm-feedback/issues/41)

There is a hint for a solution within the related PiOS GitHub issue [RealVNC on 32-bit RasPiOS issue · Issue #41 · raspberrypi/bookworm-feedback · GitHub](https://github.com/raspberrypi/bookworm-feedback/issues/41#issuecomment-1780432322)

Out of this, I build a small script

```auto
#!/bin/bash

echo Download and install dependencies
files=( libmmal.so libmmal_core.so libmmal_components.so libmmal_util.so libmmal_vc_client.so libvcsm.so libcontainers.so )
for i in "${files[@]}"
do
        wget -nv https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/$i -O /usr/lib/arm-linux-gnueabihf/$i
done

```

reboot your system afterwards

---

<div class="post-metadata">

**Author:** ![HyperCriSiS](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/8e8cbc/32.png) [@HyperCriSiS](https://dietpi.com/forum/u/HyperCriSiS)\
**Post date:** [7 December 2023 23:03 UTC](https://dietpi.com/forum/t/vnc-server-does-not-start/18603/3 "2023-12-07T23:03:06Z")

</div>

Yes I did upgrade to bookworm.

Thank you so much!! Working now 🙂

I should have also searched on Github.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 December 2023 23:23 UTC](https://dietpi.com/forum/t/vnc-server-does-not-start/18603/4 "2023-12-07T23:23:32Z")

</div>

> [@HyperCriSiS](#):
>
> I should have also searched on Github.

You wouldn’t have found it on DietPi GitHub because it’s a RPiOS GitHub issue 😉
