# Upgrade 3.6 to 4.0, but 4.0 not available

**URL:** <https://forums.percona.com/t/upgrade-3-6-to-4-0-but-4-0-not-available/18606>\
**Category:** Percona Server for MongoDB\
**Created:** [November 16, 2022, 7:49pm UTC](https://forums.percona.com/t/upgrade-3-6-to-4-0-but-4-0-not-available/18606 "2022-11-16T19:49:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Ward](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jeff\_Ward](https://forums.percona.com/u/Jeff_Ward)\
**Post date:** [November 16, 2022, 7:49pm UTC](https://forums.percona.com/t/upgrade-3-6-to-4-0-but-4-0-not-available/18606/1 "2022-11-16T19:49:49Z")

</div>

I have an old production system that I need to upgrade from 3.6 to 4.0 to avoid any downtime.  
Upgrade path for no downtime 3.4-\>3.6-\>4.0-\>4.2-\>4.4

I upgraded from 3.4 to 3.6 easily, but when I try to do 3.6 to 4.0

sudo percona-release enable psmdb-40  
Hit:8 [Percona Repo](http://repo.percona.com/psmdb-40/apt) bionic InRelease  
Hit:9 [Percona Repo](http://repo.percona.com/psmdb-44/apt) bionic InRelease  
It only installs 4.4 and then won’t start due to it not upgrading from 4.2  
I have been trying and cannot figure out how to get a 4.0 package installed.

I have tried versions of this:  
sudo apt install percona-server-mongodb=4.0.27-22 percona-server-mongodb-mongos=4.0.27-22 percona-server-mongodb-shell=4.0.27-22 percona-server-mongodb-server=4.0.27-22 percona-server-mongodb-tools=4.0.27-22  
but it tells me  
E: Version ‘4.0.27-22’ for ‘percona-server-mongodb’ was not found  
E: Version ‘4.0.27-22’ for ‘percona-server-mongodb-mongos’ was not found  
E: Version ‘4.0.27-22’ for ‘percona-server-mongodb-shell’ was not found  
E: Version ‘4.0.27-22’ for ‘percona-server-mongodb-server’ was not found  
E: Version ‘4.0.27-22’ for ‘percona-server-mongodb-tools’ was not found

Can someone point me in the right direction?

---

<div class="post-metadata">

**Author:** ![Jeff\_Ward](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jeff\_Ward](https://forums.percona.com/u/Jeff_Ward)\
**Post date:** [November 16, 2022, 7:57pm UTC](https://forums.percona.com/t/upgrade-3-6-to-4-0-but-4-0-not-available/18606/2 "2022-11-16T19:57:04Z")

</div>

Solved:  
I just had to  
sudo percona-release disable psmdb-44

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [November 17, 2022, 10:14am UTC](https://forums.percona.com/t/upgrade-3-6-to-4-0-but-4-0-not-available/18606/3 "2022-11-17T10:14:53Z")

</div>

> [@Jeff\_Ward](#):
>
> sudo apt install percona-server-mongodb=4.0.27-22 percona-server-mongodb-mongos=4.0.27-22 percona-server-mongodb-shell=4.0.27-22 percona-server-mongodb-server=4.0.27-22 percona-server-mongodb-tools=4.0.27-22

Also once installing packages with exact version you could try  
`sudo apt install percona-server-mongodb=4.0.27-22.bionic percona-server-mongodb-mongos=4.0.27-22.bionic percona-server-mongodb-shell=4.0.27-22.bionic percona-server-mongodb-server=4.0.27-22.bionic percona-server-mongodb-tools=4.0.27-22.bionic`
