While upgrading the docker image as indicated by the upgrade process in admin, I tried to follow the process outlines in How do I manually update Discourse and Docker image to latest? but hit the following error while running
./launcher rebuild app:
I, [2017-06-02T08:36:23.596063 #14] INFO -- : > apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5 E: Sub-process /usr/bin/dpkg returned an error code (1) I, [2017-06-02T08:36:26.039191 #14] INFO -- : Reading package lists... Building dependency tree... Reading state information... The following packages will be REMOVED: postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. After this operation, 26.1 MB disk space will be freed. (Reading database ... 34469 files and directories currently installed.) Removing postgresql-contrib-9.5 (9.5.7-1.pgdg16.04+1) ... update-alternatives: warning: forcing reinstallation of alternative /usr/share/postgresql/9.5/man/man1/postmaster.1.gz because link group postmaster.1.gz is broken update-alternatives: error: error creating symbolic link '/usr/share/man/man1/postmaster.1.gz.dpkg-tmp': No such file or directory dpkg: error processing package postgresql-contrib-9.5 (--remove): subprocess installed pre-removal script returned error exit status 2 dpkg: postgresql-9.5: dependency problems, but removing anyway as you requested: postgresql-contrib-9.5 depends on postgresql-9.5 (= 9.5.7-1.pgdg16.04+1). Removing postgresql-9.5 (9.5.7-1.pgdg16.04+1) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of stop. Removing postgresql-client-9.5 (9.5.7-1.pgdg16.04+1) ... Processing triggers for postgresql-common (182.pgdg16.04+1) ... Building PostgreSQL dictionaries from installed myspell/hunspell packages... Removing obsolete dictionary files: Errors were encountered while processing: postgresql-contrib-9.5 FAILED -------------------- Pups::ExecError: apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5 failed with return #<Process::Status: pid 17 exit 100> Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn' exec failed with the params "apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5" 6f0310973389d86ad7fba289ff678374967077c35de34060c4359bdb6cacfa6c ** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
Is that a known issue? Could you point me to instructions for handling such cases?
Thanks in advance