I want to install Mongo 3.4.2 on Ubuntu 22.04.4 LTS. These are the commands I am running,
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.listsudo apt updatesudo apt-get install -y mongodb-org=3.4.2 mongodb-org-server=3.4.2 mongodb-org-shell=3.4.2 mongodb-org-mongos=3.4.2 mongodb-org-tools=3.4.2
First I get this error while running sudo apt update
deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverseIgn:1 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 InReleaseIgn:2 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 InRelease Hit:3 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 Release Ign:4 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 InRelease Hit:7 http://dl.google.com/linux/earth/deb stable InRelease Hit:8 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 Release Hit:9 http://in.archive.ubuntu.com/ubuntu jammy InRelease Hit:11 http://security.ubuntu.com/ubuntu jammy-security InRelease Hit:12 https://dl.google.com/linux/chrome/deb stable InRelease Hit:13 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release Hit:14 https://deb.nodesource.com/node_16.x jammy InRelease Ign:15 http://security.ubuntu.com/ubuntu impish-security InRelease Hit:16 http://in.archive.ubuntu.com/ubuntu jammy-updates InReleaseErr:18 http://security.ubuntu.com/ubuntu impish-security Release 404 Not Found [IP: 185.125.190.81 80]Hit:6 https://packages.microsoft.com/repos/code stable InRelease Hit:19 http://in.archive.ubuntu.com/ubuntu jammy-backports InReleaseReading package lists... DoneW: http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.4/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.E: The repository 'http://security.ubuntu.com/ubuntu impish-security Release' does not have a Release file.N: Updating from such a repository can't be done securely, and is therefore disabled by default.N: See apt-secure(8) manpage for repository creation and user configuration details.
Then I get this error while running the last command, sudo apt-get install -y ......
Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: mongodb-org-mongos : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable mongodb-org-server : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable mongodb-org-shell : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.1) but it is not installableE: Unable to correct problems, you have held broken packages.