我必须在django中将我的数据库从MySQL更改为postgreSQL,但它不起作用

时间:2015-02-25 13:01:12

标签: postgresql ubuntu

我必须在django中将我的数据库从MySQL更改为postgreSQL。但是postgreSQL没有安装。

使用命令安装postgreSQL时出错 -

sudo apt-get update && sudo apt-get upgrade
sudo apt-get purge postgresql*
sudo apt-get -f install
sudo apt-get install postgresql

在终端 -

(jango)dc@dc-comp-4:~/website$ sudo apt-get install postgresql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 postgresql : Depends: postgresql-9.3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

但它不起作用。我可以做到这一点。我必须做出哪些改变。 Plz帮助

0 个答案:

没有答案