# Error: You must install at least one postgresql-client-<version> package

<span data-huuid="9306091082455965089">The error message "You must install at least one postgresql-client-&lt;version&gt; package" indicates that while you have the `postgresql-client-common` package installed, you are missing the specific versioned client package required to utilize PostgreSQL client programs like `psql`, `pg_dump`, `pg_restore`, etc. This typically occurs on Debian-based systems like Ubuntu.<span class="pjBG2e" data-cid="6d0a0dce-bbd6-4e30-8f94-6cd0b12476e3"><span class="UV3uM"> </span></span></span>

<div class="NPrrbc" data-cid="6d0a0dce-bbd6-4e30-8f94-6cd0b12476e3" data-uuids="9306091082455965089" id="bkmrk-"><div aria-label="View related links" class="BMebGe btku5b LwdV0e FR7ZSc OJeuxf" data-hveid="CCUQAQ" data-ved="2ahUKEwi-qqbBvNuQAxVSUGwGHUgLH8UQ3fYKegQIJRAB" jsaction="KjsqPd" jsname="HtgYJd" role="button" tabindex="0"><div class="niO4u"><span class="d3o3Ad TwMgNb Hkv2Pe"><span class="iPjmzb Sorfoc gNGSDf"><span class="z1asCe Sb7k4e" style="height: 18px; line-height: 18px; width: 18px;"><svg aria-hidden="true" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg></span></span></span></div></div></div><div class="WaaZC" id="bkmrk--1"><div class="rPeykc" data-hveid="CCMQAQ" data-ved="2ahUKEwi-qqbBvNuQAxVSUGwGHUgLH8UQo_EKegQIIxAB">  
</div></div><div class="WaaZC" id="bkmrk-to-resolve-this-issu"><div class="rPeykc" data-hveid="CCcQAQ" data-ved="2ahUKEwi-qqbBvNuQAxVSUGwGHUgLH8UQo_EKegQIJxAB"><span data-huuid="9306091082455963283">To resolve this issue, you need to install the appropriate PostgreSQL client package for your system. </span><span data-huuid="9306091082455962380">The simplest solution is to install the `postgresql-client` metapackage, which will automatically install the currently supported version of the PostgreSQL client for your distribution. </span></div></div><div class="WaaZC" id="bkmrk-here-are-the-steps-t"><div class="bsmXxe" id="bkmrk-here-are-the-steps-t-1" role="none"><div class="rPeykc" data-hveid="CGYQAQ" data-ved="2ahUKEwi-qqbBvNuQAxVSUGwGHUgLH8UQo_EKegQIZhAB"><span data-huuid="15233676825790879727">Here are the steps to fix this error: </span><span data-huuid="8144040210365560196">Update your package list. </span></div></div></div><div class="WaaZC" id="bkmrk-code"><div class="bsmXxe" id="bkmrk-code-1" role="none"><div jsaction="rcuQ6b:npT2md" jscontroller="JegcYe"><div class="ecCNFc"><div class="zYSUYd"><div class="FS7GEb"><div class="dDrxod"><div class="x7ndcb">Code</div><div aria-live="polite" class="WDoJJe">  
</div></div></div></div></div></div></div></div>```
    sudo apt update
```

<div class="WaaZC" id="bkmrk-install-the-postgres"><div class="bsmXxe" id="bkmrk-install-the-postgres-1" role="none"><div class="rPeykc" data-hveid="CGIQAQ" data-ved="2ahUKEwi-qqbBvNuQAxVSUGwGHUgLH8UQo_EKegQIYhAB"><span data-huuid="8144040210365561298">install the postgresql-client metapackage. </span></div></div></div><div class="WaaZC" id="bkmrk-code-2"><div class="bsmXxe" id="bkmrk-code-3" role="none"><div jsaction="rcuQ6b:npT2md" jscontroller="JegcYe"><div class="ecCNFc"><div class="zYSUYd"><div class="FS7GEb"><div class="dDrxod"><div class="x7ndcb">Code</div><div aria-live="polite" class="WDoJJe">  
</div></div></div></div></div></div></div></div>```
    sudo apt install postgresql-client
```

<div class="WaaZC" id="bkmrk-this-command-will-in"><div class="bsmXxe" id="bkmrk-this-command-will-in-1" role="none"><div class="rPeykc" data-hveid="CGQQAQ" data-ved="2ahUKEwi-qqbBvNuQAxVSUGwGHUgLH8UQo_EKegQIZBAB"><span data-huuid="16429562713652238307">This command will install the necessary version-specific `postgresql-client-<version>` package along with any other dependencies required for the PostgreSQL client tools to function correctly. </span></div></div></div><div class="WaaZC" id="bkmrk-if-you-specifically-"><div class="bsmXxe" id="bkmrk-if-you-specifically--1" role="none"><div class="rPeykc" data-hveid="CGMQAQ" data-ved="2ahUKEwi-qqbBvNuQAxVSUGwGHUgLH8UQo_EKegQIYxAB"><span data-huuid="18374206504222114844">If you specifically require a particular PostgreSQL client version (e.g., `postgresql-client-15`), you can install it directly: </span></div></div></div><div class="WaaZC" id="bkmrk-code-4"><div class="bsmXxe" id="bkmrk-code-5" role="none"><div jsaction="rcuQ6b:npT2md" jscontroller="JegcYe"><div class="ecCNFc"><div class="zYSUYd"><div class="FS7GEb"><div class="dDrxod"><div class="x7ndcb">Code</div><div aria-live="polite" class="WDoJJe">  
</div></div></div></div></div></div></div></div>```
sudo apt install postgresql-client-15
```

<div class="WaaZC" id="bkmrk-replace-15-with-the-"><div class="bsmXxe" id="bkmrk-replace-15-with-the--1" role="none"><div class="rPeykc" data-hveid="CGEQAQ" data-ved="2ahUKEwi-qqbBvNuQAxVSUGwGHUgLH8UQo_EKegQIYRAB"><span data-huuid="11828730949680152561">Replace `15` with the desired PostgreSQL version</span></div></div></div>