Re: [vagrant-up] Unable to install postgresql-9.4 on ubuntu 14.04

131 views
Skip to first unread message

Alvaro Miranda Aguilera

unread,
Jan 5, 2016, 3:06:47 AM1/5/16
to vagra...@googlegroups.com
Hello,

change from:
sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update -y --fix-missing
sudo apt-get upgrade

to:
echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' | tee -a /etc/apt/sources.list.d/pgdg.list
sudo apt-get install -y wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
#sudo apt-get upgrade ## not needed, and will break guest additions
sudo apt-get install -y postgresql-9.4



After those changes:
...
..

Removing apt.postgresql.org key from trusted.gpg: OK

Importing apt.postgresql.org key: OK

Setting up postgresql-client-common (171.pgdg14.04+1) ...

Setting up postgresql-client-9.4 (9.4.5-1.pgdg14.04+1) ...

update-alternatives: using /usr/share/postgresql/9.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode

Setting up ssl-cert (1.0.33) ...

Setting up postgresql-common (171.pgdg14.04+1) ...

Adding user postgres to group ssl-cert


Creating config file /etc/postgresql-common/createcluster.conf with new version


Creating config file /etc/logrotate.d/postgresql-common with new version

Building PostgreSQL dictionaries from installed myspell/hunspell packages...

Removing obsolete dictionary files:

 * No PostgreSQL clusters exist; see "man pg_createcluster"

Processing triggers for ureadahead (0.100.0-16) ...

Setting up postgresql-9.4 (9.4.5-1.pgdg14.04+1) ...

Creating new cluster 9.4/main ...

  config /etc/postgresql/9.4/main

  data   /var/lib/postgresql/9.4/main

  locale en_US.utf8

  port   5432

update-alternatives: using /usr/share/postgresql/9.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode

 * Starting PostgreSQL 9.4 database server                                                                                                                                                                                             [ OK ] 

Setting up postgresql-contrib-9.4 (9.4.5-1.pgdg14.04+1) ...

Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

root@ubuntu-1404-vmware:~# 



Alvaro.

Ian Robert Douglas

unread,
Jan 5, 2016, 3:49:42 AM1/5/16
to vagra...@googlegroups.com
Hi,

Setup:

Vagrant 1.8.1
Virtualbox 5.0.12
OSX 10.11.2

I’m getting the following error on the command "vagrant up"

Vagrant failed to initialize at a very early stage:

The plugins failed to load properly. The error message given is
shown below.

Unable to find binary extension, was hitimes installed correctly?


I did some searching and tried installing, sequentially, versions 1.2.1 and 1.2.3 of hitimes. Originally, it was not on my system, but before Vagrant 1.8.1 I never saw this error.

Currently version 1.2.3 of hitimes is installed, but the error remains.

I tried downgrading to Vagrant 1.7.4, and the error goes away.

Does anyone have any guidance on how to resolve this?

I’m a novice user and struggling.


Thanks,
ian

Alvaro Miranda Aguilera

unread,
Jan 5, 2016, 11:46:50 PM1/5/16
to vagra...@googlegroups.com
Hello Ian.

Are you installing from the official installer?

Please try this.

1. rm -fr /opt/vagrant  /Users/<user>/.vagrant.d/

Last part will delete the .vagrant.d folder in your directory, but will give you a clean setup.

2. hash -r

3. install Vagrant from the official installer.

Please let me know how that goes.

Thanks.
Alvaro.


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/6AD12C79-C5F2-49ED-A32C-7940E1A86927%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages