我写这篇文章是因为我对在我的 Ubuntu 14.04 上安装 PostgreSQL 9.3 感到非常困惑。首先,我的 Python/Django 开发需要它,当我尝试安装它时遇到了问题。现在我有这个错误,它让我发疯:
The following packages have unmet dependencies:
postgresql-9.3 : Depends: postgresql-client-9.3 but it is not going to be installed
Depends: postgresql-common (>= 142~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
我在网上找到了一些解决方案(如何在添加 PPA 后解决未满足的依赖项?),并且我对预防措施部分做了所有工作,因为我遇到了一些损坏的包问题,并且在我再次向我显示此错误之后.
第二件事我遵循了官方的 PostgreSQL 安装教程(http://www.postgresql.org/download/linux/ubuntu/),我有重复的存储库,但我删除了它们,我添加了一个新的,但是还是这个错误。
我正在尝试安装worksnaps
客户端,以便我可以开始处理一个项目。我正在运行 Ubuntu 14.04 LTS 32 位系统。
安装和配置worksnaps
很简单:
下载 Worksnaps 客户端包。该包为 zip 格式。使用将要使用 Worksnaps 客户端的用户登录名,运行命令“unzip WSClient_linux_.zip”以解压缩包。您应该能够看到创建的目录“Worksnaps”。执行命令“cd Worksnaps/bin” 执行命令“chmod +x run.sh” 执行命令“chmod +x p.sh” 通过执行命令“./run.sh”启动Worksnaps Client(注意:请不要点击任何Jar 文件来启动程序。)
执行此操作后,我在我的终端中收到此错误
./run.sh: line 1: java: command not found
Run Code Online (Sandbox Code Playgroud)
链接到指令的。worksnaps
他们说hereWorksnaps client version 1.1.20140511 or newer runs on both 64-bit or 32-bit Java environment. On a 64-bit Linux system, 64-bit Java environment is preferred.
但是他们没有具体说明哪个版本不起作用,我假设您可以在32位和64位系统上安装,并且只有一个版本可以下载`worksnaps verison 1.1。 201440511'。
有人可以帮助我克服这个问题。
我正在尝试gitlab-ce
从我的系统中删除,因为我不需要它而且我无法做到这一点,首先我尝试了这个:
sudo apt-get --remove autoremove gitlab-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gitlab-ce
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 1076 MB disk space will be freed.
Do you want to continue? [Y/n] Y
dpkg: error processing package gitlab-ce (--remove):
package is in a very bad inconsistent state; you should
reinstall it before …
Run Code Online (Sandbox Code Playgroud) apt ×2
32-bit ×1
aptitude ×1
bash ×1
command-line ×1
dependencies ×1
dpkg ×1
java ×1
permissions ×1
updates ×1
upgrade ×1