ruby - 安装“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 等。谁遇到了同样的问题?或者明白上面的信息是什么意思?
这是屏幕截图: 在此处输入图像描述
解决方案
推荐阅读
- javascript - Javascript+Css,请求解决方案:mouseover hover 显示 div,保持活动直到 mouseoff/click 关闭
- reactjs - 嵌套组件失去对第一个 onchange 的关注
- ios - iOS-将数据添加到数组后执行Segue(Swift)
- python - 字典理解产生意想不到的结果
- twitter-bootstrap - 即使对于桌面,如何在 Bootstrap 3.3.7 中强制汉堡菜单?
- javascript - 从用户输入更改字符串
- javascript - 来自表示组件的打字稿中的异步调度调用
- common-lisp - cons的规格
- kivy - 动画实例未清理
- kubernetes - 什么 Kubernetes 服务/pod 应该在端口 6784 上监听?