I hope this helps. Ideally the best thing is to move the Gemfile.lock somewhere else in the configuration but this solution is minimally invasive on the ubuntu package.
------------------------------------
then I run apt-get upgrade the Gemfile.lock, while continously watching over the Gemfile.lock. And it turns out Gemfile.lock disappears during the upgrade - *before* the apt get finishes with and error exit status
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libdrm2
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up redmine (3.2.1-2) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
chown: cannot access '/var/lib/redmine/Gemfile.lock': No such file or directory
dpkg: error processing package redmine (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)
# lsb_release -a; uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Linux redmine 4.4.0-91-generic #114-Ubuntu SMP Tue Aug 8 11:56:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Hello, I followed:
http:// www.redmine. org/boards/ 2/topics/ 40180
Pasting the message here: ------- ------- ------- ------- -
-------
Here is how I fixed the problem. I'm on Ubuntu 12.04 LTS server:
To fix the first problem:
sudo gem install bundler
To fix the second problem:
sudo touch /usr/share/ redmine/ Gemfile. lock redmine/ Gemfile. lock
sudo chown www-data:www-data /usr/share/
I hope this helps. Ideally the best thing is to move the Gemfile.lock somewhere else in the configuration but this solution is minimally invasive on the ubuntu package. ------- ------- ------- ------- -
-------
then I run apt-get upgrade the Gemfile.lock, while continously watching over the Gemfile.lock. And it turns out Gemfile.lock disappears during the upgrade - *before* the apt get finishes with and error exit status
# apt-get upgrade debian. cnf: succeeded. redmine/ Gemfile. lock': No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libdrm2
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up redmine (3.2.1-2) ...
Determining localhost credentials from /etc/mysql/
chown: cannot access '/var/lib/
dpkg: error processing package redmine (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)
# lsb_release -a; uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Linux redmine 4.4.0-91-generic #114-Ubuntu SMP Tue Aug 8 11:56:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux