每次我尝试安装软件包时,APT都会尝试配置PostgreSQL

米特切普斯

每当尝试apt-get安装任何东西时,我都会遇到一些奇怪的错误。这是尝试安装fluidsynth的示例。

$ sudo apt-get install libfluidsynth1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libfluidsynth1 is already the newest version.
libfluidsynth1 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 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 postgresql-9.1 (9.1.10-0ubuntu12.04) ...
 * Starting PostgreSQL 9.1 database server                                                                                                                     * The PostgreSQL server failed to start. Please check the log output:
2013-11-03 14:21:42 EST FATAL:  could not access private key file "server.key": No such file or directory
                                                                                                                                                       [fail]
invoke-rc.d: initscript postgresql, action "start" failed.
dpkg: error processing postgresql-9.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql:
 postgresql depends on postgresql-9.1; however:
  Package postgresql-9.1 is not configured yet.
dpkg: error processing postgresql (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 postgresql-9.1
 postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)

我正在运行12.04。是什么原因造成的,我该如何解决?它发生在安装很多东西的过程中,似乎表明我需要初始化postgresql或其他东西。我不记得自己曾经摆弄过postgres,所以我不确定为什么这突然变成了问题。

布里亚姆

删除/清除postgresql-9.1并重新安装它们:

sudo apt-get --purge autoremove postgresql-9.1 postgresql

如果您确实使用了postgresql或其他依赖于它的软件包,则可以再次安装它

sudo apt-get install postgresql the-other-program-that-got-removed

顺便说一句,libfluidsynth1已经安装,您无需再次安装。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

每次我尝试使用“应用程序存储库...”安装某些软件包时都会出错

尝试使用APT安装软件包时“无法找到软件包”

错误:当我尝试安装任何软件包时

每当我尝试在Cabal上安装新软件包时,它都会尝试并且无法安装以前失败的安装

每次我安装或删除软件包时,都会收到LVM2错误

尝试安装软件包时,Apt安装会自动显示“是”

尝试使用python-apt API安装软件包时发生错误

尝试使用 sudo apt-get 安装软件包时出错

尝试使用 apt 安装软件包时出现奇怪的错误

尝试从GitHub安装时,软件包安装失败

当我尝试安装gnuplot时,“以下软件包已自动安装,不再需要”

尝试使用dpkg安装软件包时出现错误

尝试通过 cmd 行安装软件包时出错

R-尝试安装软件包时:InternetOpenUrl失败

尝试安装或删除软件包时卡在“解包”状态

尝试安装节点软件包时出现zlib错误

尝试安装软件包时出现Setuptools错误

尝试安装软件包时输出错误

尝试从GitHub安装软件包时出错

尝试从pip安装软件包时出现问题

尝试在Kali Linux中安装软件包时出错

我可以配置apt以在安装确认时显示软件包版本吗?

当我尝试在 R 上安装一些软件包时出现奇怪的问题

当我尝试从package.json安装软件包时,NPM崩溃

当我尝试安装软件包时,apt返回“ E:未满足的依赖关系”,如何诊断该问题并找出发生原因?

尝试安装debian软件包npm,使apt-get删除libssl-dev

每当我尝试安装某个Discord软件包时,就会弹出依赖项注入错误[已解决]

每次我尝试运行NPM安装终端时都会引发一些错误

如何让 VS 2017 安装我尝试安装的软件包的依赖项?