首页 > 解决方案 > 安装“PostgreSQL”的问题(AppAcademy 打开)

问题描述

在“Ruby”课程中,有一节“设置开发环境(第 1 阶段)”。我在安装“PostgreSQL”时遇到问题。我在 Windows 10 上使用 Ubuntu。

当我输入“sudo apt-get install postgresql-client”时,首先我会收到以下消息:

Reading package lists… Done
Building dependency tree
Reading state information… Done
postgresql-client is already the newest version (12+214ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]

然后,当我输入“Y”时,我收到以下错误:

Setting up libc-bin (2.31-0ubuntu9.2) …
Aborted (core dumped)
/sbin/ldconfig.real: Can’t stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path /usr/lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path /lib/x86_64-linux-gnu’ given more than once
/sbin/ldconfig.real: Path /usr/lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path /usr/lib’ given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
libfakeroot-0.so → libfakeroot-tcp.so
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (–configure):
installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

我真的不了解所有这些设置环境、安装 gem 等。谁遇到了同样的问题?或者明白上面的信息是什么意思?

这是屏幕截图: 在此处输入图像描述

标签: rubypostgresql

解决方案


推荐阅读