Error installing mongob enterprise version

Hello! i’m using ubuntu20 64bit machine
I was using mongodb community version, now when im trying to install the entrprise version …i got this error!

Reading package lists… Done

Building dependency tree
Reading state information… Done
mongodb-enterprise is already the newest version (5.0.1).
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
mongodb-enterprise-database : Depends: mongodb-enterprise-mongos but it is not going to be installed
mongodb-enterprise-tools : Depends: mongodb-database-tools but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Then i tried using this “apt --fix-broken install”
i got this error!!

Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
libboost-program-options1.71.0 libgoogle-perftools4 libpcrecpp0v5
libtcmalloc-minimal4 libyaml-cpp0.6 linux-headers-5.8.0-43-generic
linux-hwe-5.8-headers-5.8.0-43 linux-image-5.8.0-43-generic
linux-modules-5.8.0-43-generic linux-modules-extra-5.8.0-43-generic
mongo-tools mongodb-server-core
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
mongodb-database-tools mongodb-enterprise-mongos
The following NEW packages will be installed:
mongodb-database-tools mongodb-enterprise-mongos
0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded.
7 not fully installed or removed.
Need to get 0 B/65.0 MB of archives.
After this operation, 76.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 230892 files and directories currently installed.)
Preparing to unpack …/mongodb-enterprise-mongos_5.0.1_amd64.deb …
Unpacking mongodb-enterprise-mongos (5.0.1) …
dpkg: error processing archive /var/cache/apt/archives/mongodb-enterprise-mongos
_5.0.1_amd64.deb (–unpack):
trying to overwrite ‘/usr/bin/mongos’, which is also in package mongodb-server-
core 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack …/mongodb-database-tools_100.4.1_amd64.deb …
Unpacking mongodb-database-tools (100.4.1) …
dpkg: error processing archive /var/cache/apt/archives/mongodb-database-tools_10
0.4.1_amd64.deb (–unpack):
trying to overwrite ‘/usr/bin/bsondump’, which is also in package mongo-tools 3
.6.3-0ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mongodb-enterprise-mongos_5.0.1_amd64.deb
/var/cache/apt/archives/mongodb-database-tools_100.4.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then i tried to uninstall the older community version thinking of starting the process freshly!
so i used

sudo apt-get purge mongodb-org*

but this also lead to error!

Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘mongodb-org-unstable-tools’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-mongos’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-tools’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable-database-tools-extra’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable-server’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable-shell’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-shell’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable-mongos’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-database-tools-extra’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-tools-unstable’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-server’ for glob ‘mongodb-org*’
Package ‘mongodb-org-tools’ is not installed, so not removed
Package ‘mongodb-org-tools-unstable’ is not installed, so not removed
Package ‘mongodb-org’ is not installed, so not removed
Package ‘mongodb-org-mongos’ is not installed, so not removed
Package ‘mongodb-org-server’ is not installed, so not removed
Package ‘mongodb-org-shell’ is not installed, so not removed
Package ‘mongodb-org-unstable’ is not installed, so not removed
Package ‘mongodb-org-unstable-mongos’ is not installed, so not removed
Package ‘mongodb-org-unstable-server’ is not installed, so not removed
Package ‘mongodb-org-unstable-shell’ is not installed, so not removed
Package ‘mongodb-org-unstable-tools’ is not installed, so not removed
Package ‘mongodb-org-database-tools-extra’ is not installed, so not removed
Package ‘mongodb-org-unstable-database-tools-extra’ is not installed, so not removed
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
mongodb-enterprise-database : Depends: mongodb-enterprise-mongos but it is not going to be installed
mongodb-enterprise-tools : Depends: mongodb-database-tools but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

I’m stuck between these errors!..cannot able to install and uninstall mongodb :face_with_thermometer:

Please help!!