Heyas,
something which strikes me as weird occurs currently when I'm trying to install pgsql on my Ubuntu vps.
I installed it via apt-get:
sudo apt-get install postgresql
that'll give me
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common
Suggested packages:
postgresql-doc-8.3
The following NEW packages will be installed
postgresql postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 4834kB of archives.
After this operation, 20.0MB of additional disk space will be used.
Do you want to continue [Y/n]?
so far so good.
When trying to psql, I can't connect, giving me the error
Code:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
at which I thought I hadn't started the server, though usually they get started after installation.
Nonetheless I executed
sudo /etc/init.d/postgresql-8.3 start
which gave no message on stdout.
running
sudo /etc/init.d/postgresql-8.3 status equally didn't say anything
Then wanted to look at the config file, which is normally in
/etc/postgresql/8.3/main
however that doesn't exist,
same as
/var/lib/postgresql/ doesn't contain anything, only
/etc/postgresql-common/
ok, I thought, maybe need to separately install postgresql-server, but that was never stated, neither on the ubuntu guide page nor elsewhere, which I then checked to see if I missed anything.
executing the install for postgresql-server, I get
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postgresql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package postgresql-server has no installation candidate
So now I'm sitting here without a server and wondering how to get it now.
Is there any solution getting the pgsql-server installed via package manager?
vps is running on ubuntu 8.04 LTS Hardy, switched sources.list however to jaunty to test as well next to hardy, but didn't help either.