redmine install error

redmine 은 한번에 제대로 설치된적이 없다.

딸랑 ubunut 16.04.1 을 설치해놓고 redmine 을 설치하니 아주 난리가 났다.
( apt-get install redmine )

역시나 구글신께서는 날 저버리지 않으신듯.

http://askubuntu.com/questions/827322/redmine-3-2-3-1-is-half-installed-can-neither-be-reinstalled-nor-removed

일단 증상은 이러하다

sudo apt-get install redmine

Do you want to continue? [Y/n] y
dpkg: error processing package redmine (--configure):
package redmine is not ready for configuration
cannot configure (current status 'half-installed')
Errors were encountered while processing:
redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get install --reinstall redmine

Preparing to unpack .../redmine_3.2.1-2_all.deb ...
Unpacking redmine (3.2.1-2) over (3.2.1-2) ...
ls: cannot access '/etc/redmine/*/database.yml': No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
basename: missing operand
Try 'basename --help' for more information.
dpkg: warning: subprocess old post-removal script returned error exit status 123
dpkg: trying script from the new package instead ...
ls: cannot access '/etc/redmine/*/database.yml': No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
basename: missing operand
Try 'basename --help' for more information.
dpkg: error processing archive /var/cache/apt/archives /redmine_3.2.1-2_all.deb (--unpack):
subprocess new post-removal script returned error exit status 123
ls: cannot access '/etc/redmine/*/database.yml': No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
basename: missing operand
Try 'basename --help' for more information.
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 123
Errors were encountered while processing:
/var/cache/apt/archives/redmine_3.2.1-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

일단 아래와 같이 입력하여 제거는 싹 해버렸다.

sudo dpkg --remove --force-remove-reinstreq redmine

dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
(Reading database ... 409396 files and directories currently installed.)
Removing redmine (3.2.1-2) ...
ls: cannot access '/etc/redmine/*/database.yml': No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
basename: missing operand
Try 'basename --help' for more information.
dpkg: error processing package redmine (--remove):
subprocess installed post-removal script returned error exit status 123
Errors were encountered while processing:
redmine

sudo rm /var/lib/dpkg/info/redmine*
sudo dpkg --force-remove-reinstreq --remove redmine

dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
dpkg: warning: files list file for package 'redmine-sqlite' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'redmine-mysql' missing; assuming package has no files currently installed
(Reading database ... 409382 files and directories currently installed.)
Removing redmine (3.2.1-2) ...

그리고 다시 apt-get 으로 install 하니 설치되더라.
아놔… 도대체 처음엔 왜 안되었던거니
내린 결론은!! 난 루비랑 안맞아! -_-;;;

이제 해야할껀 기존 백업데이터 확인부터~

아몰랑. 월요일부터 뭔가가 꼬이는게 이번주 조짐이 안좋다.

R warning on mac

mac 재설치 후 R 실행해보니 콘솔에 warning 메세지하나가 나온다.

WARNING: You’re using a non-UTF8 locale, therefore only ASCII characters will work.

늘 그랬듯이, 구글신은 모르는게 없다.

터미널에서 입력후 R 재시작.

$ defaults write org.R-project.R force.LANG en_US.UTF-8

오늘도 이렇게 Ctrl CV 를!!