Permission problem for scribble documentation when updating racket version on Ubuntu

I have updated my version of Racket from 8.2 to 8.3 on Ubuntu 20.4 (Focal). While it works successfully, when I install new packages, I get the following error:

open-output-file: error opening file
path: /usr/share/racket/pkgs/scribble-lib/scribble/doc/lang/compiled/tmp16442211631644221163507
system error: Permission denied; errno=13

which is probably the reason that I later get version problems when creating the new scribble documentation:

loading code: version mismatch
expected: "8.3"
found: "8.2"
in: /usr/share/racket/pkgs/racket-index/scribblings/main/user/compiled/local-redirect_scrbl.zo
context...:
/usr/share/racket/pkgs/racket-index/setup/scribble.rkt:1555:27

context...:
/usr/share/racket/collects/setup/parallel-do.rkt:332:4: work-done method in list-queue%
/usr/share/racket/collects/setup/parallel-do.rkt:282:17
/usr/share/racket/collects/setup/parallel-do.rkt:236:4
/usr/share/racket/pkgs/racket-index/setup/scribble.rkt:139:0: setup-scribblings
/usr/share/racket/collects/setup/setup.rkt:78:3
/usr/share/racket/collects/pkg/main.rkt:17:0: setup
body of (submod "/usr/share/racket/collects/pkg/main.rkt" main)
/usr/share/racket/collects/raco/raco.rkt:41:0
body of "/usr/share/racket/collects/raco/raco.rkt"
body of "/usr/share/racket/collects/raco/main.rkt"
raco setup: 0 running: /racket-index/scribblings/main/user/release.scrbl
loading code: version mismatch
expected: "8.3"
found: "8.2"
in: /usr/share/racket/pkgs/racket-index/scribblings/main/user/compiled/release_scrbl.zo
context...:
/usr/share/racket/pkgs/racket-index/setup/scribble.rkt:1555:27

context...:
/usr/share/racket/collects/setup/parallel-do.rkt:332:4: work-done method in list-queue%
/usr/share/racket/collects/setup/parallel-do.rkt:282:17
/usr/share/racket/collects/setup/parallel-do.rkt:236:4
/usr/share/racket/pkgs/racket-index/setup/scribble.rkt:139:0: setup-scribblings
/usr/share/racket/collects/setup/setup.rkt:78:3
/usr/share/racket/collects/pkg/main.rkt:17:0: setup
body of (submod "/usr/share/racket/collects/pkg/main.rkt" main)
/usr/share/racket/collects/raco/raco.rkt:41:0
body of "/usr/share/racket/collects/raco/raco.rkt"
body of "/usr/share/racket/collects/raco/main.rkt"

The list goes on and on. My question is whether there is a way to tell scribble to compile the temporary files at the start somewhere else (where it has write access), since that seems to be the problem? Or is there another way to get this working?