command-not-found suggests postgresql-client-common when trying to use psql for the first time, but this package is useless
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1 and 2:
```
$ lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04
$ apt-cache policy command-not-found
command-not-found:
Installed: 20.04.4
Candidate: 20.04.4
Version table:
*** 20.04.4 500
500 http://
500 http://
100 /var/lib/
20.04.2 500
500 http://
500 http://
```
I was trying to connect to psql server. I didn't know what package I need to install so hoped that the I would get help from the system itself:
```
$ psql
Command 'psql' not found, but can be installed with:
sudo apt install postgresql-
```
3) What I expected to happen:
I was expecting that after installing postgresql-
Digging further, I found out that there's only one postgresql-
4) What happened instead:
I was not able to run command straightaway and had to figure out which package to install next with no clear help
Here's what happened when I was installing it:
```
$ sudo apt-get install postgresql-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
postgresql-
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 28,2 kB of archives.
After this operation, 182 kB of additional disk space will be used.
Get:1 http://
Fetched 28,2 kB in 0s (93,2 kB/s)
Selecting previously unselected package postgresql-
(Reading database ... 282382 files and directories currently installed.)
Preparing to unpack .../postgresql-
Unpacking postgresql-
Setting up postgresql-
Processing triggers for man-db (2.9.1-1) ...
```
Here's the error message:
```
$ psql --host 178.154.223.198 -U user9 db9
Error: You must install at least one postgresql-
```