Installing Neo4j on Ubuntu LTS is failing with dependency error in apt-get

Hi, so I'm doing a fresh Neo4j install on a Ubuntu 24.04.2 VM (also a fresh install).

I'm following the instructions to install the LTS version of Neo4j, from the operations manual.

When I run the 'Install Neo4j' step, I get the error below. It looks like it's trying to install the 6.x version of cypher-shell, instead of the LTS version. I also tried this on Debian 12 and got a similar issue. This happens if I try to install Neo4j, or Neo4j Enterprise.

root@rl-host:~# sudo apt-get install neo4j-enterprise=1:5.26.5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 neo4j-enterprise : Depends: cypher-shell (< 1:6.0) but 1:2025.04.0 is to be installed
E: Unable to correct problems, you have held broken packages.

Anyone know how to fix this, as it's blocking us from deploying this server at the moment.

I worked this one out. It was because I had added both the latest and only version 5 repos, by accident. So if you see this you will need to edit /etc/apt/sources.list.d/neo4j.list