Couldn't install libvtk9.1-qt in ubuntu 22.04 docker

October 2024 - Description : Ubuntu 22.04.5 LTS When I try to run my dockerfile the error occurs at “RUN apt-get -y install libvtk9.1-qt” saying " E: Unable to locate package libvtk9.1-qt
1.003 E: Couldn’t find any package by glob ‘libvtk9.1-qt’
1.003 E: Couldn’t find any package by regex 'libvtk9.1-qt"
when tried to fix it by executing the command “apt-get install libvtk9.1-dev” it throws error "E: Unable to locate package libvtk9.1
E: Couldn’t find any package by glob ‘libvtk9.1’
E: Couldn’t find any package by regex ‘libvtk9.1’ " , even version libvtk9-dev is not able to solve this.
Your response is highly appreciated.

Not sure whether this may have unintentional impact on your image, but I have replicated the problem and fixed it using apt-get update

FROM ubuntu:22.04
RUN apt-get update && \
    apt-get -y install libvtk9.1-qt