你好,我试图在Ubuntu20.04上安装postgreSQL,但是当我输出第一个命令以创建文件存储库配置时:
$ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
我得到了bash: lsb_release: command not found
。
应该指出,我卸载了Python 3.6.0
,然后在postgresql之前安装了Python 3.8.5
,所以我认为这可能是麻烦的原因。
在这里,我发布了我执行的一些命令及其输出,这些命令和输出有助于更好地理解实际问题。
sudo apt-缓存策略lsb-发布
lsb-release:
Installed: (none)
Candidates: (none)
Version Table:
11.1.0ubuntu2 -1
100 /var/lib/dpkg/status
sudo apt-获取安装lsb-发布
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lsb-release is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package "lsb-release" does not have a candidate for installation
lsb_release
bash: lsb_release: command not found
请让我知道,如果我应该提供更多的信息,可能是有用的,以便找出什么是问题的根源。
先谢谢你
https://stackoverflow.com/questions/71425589
复制相似问题