nie można utworzyć postgres użytkownika: rola „postgres” nie istnieje

Jestem na serwerze ubuntu 12.04 i próbuję zainstalować postgresql. Od tej pory udało mi się go zainstalować, ale nie mogę go skonfigurować. Muszę utworzyć rolę, aby przejść do przodu i uruchomiłem to polecenie w terminalu:

root@hostname: createuser -s -r postgres

i powiedział:

createuser: could not connect to database postgres: FATAL: role "root" does not exist

Dobrze, więc zrobiłem:

su - postgres

a potem spróbowałem ponownie

postgres@hostname: createuser -s -r postgres

i mam błąd

createuser: could not connect to database postgres: FATAL: role "postgres" does not exist

i mam ten sam błąd, kiedy to robię

psql -d dbname

To jak pętla, nie jestem w stanie stworzyć rolipostgres ponieważ rolapostgres już nie istnieje.

Jak to naprawić?

Wersja postgres wygląda na 9.1.x, a wersja ubuntu na 12.10

questionAnswers(2)

yourAnswerToTheQuestion