2017-07-13 150 views
1

我想在一個虛擬服務器安裝elasticsearch:elasticsearch虛擬服務器安裝錯誤

  • Virtuozzo的容器
  • Ubunutu 16.04

當輸入apt-get install elasticsearch,我在收到以下錯誤消息:

Selecting previously unselected package elasticsearch. 
(Reading database ... 40410 files and directories currently installed.) 
Preparing to unpack .../elasticsearch_5.5.0_all.deb ... 
Creating elasticsearch group... OK 
Creating elasticsearch user... OK 
Unpacking elasticsearch (5.5.0) ... 
Processing triggers for systemd (229-4ubuntu17) ... 
Setting up elasticsearch (5.5.0) ... 
Job for systemd-sysctl.service failed because the control process exited with error code. See "systemctl status systemd-sysctl.service" and "journalctl -xe" for details. 
dpkg: error processing package elasticsearch (--configure): 
subprocess installed post-installation script returned error exit status 1 
Processing triggers for systemd (229-4ubuntu17) ... 
Errors were encountered while processing: 
elasticsearch 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

我也試過用安裝,但我得到了同樣的錯誤信息。

這是systemctl status systemd-sysctl.service輸出:

● systemd-sysctl.service - Apply Kernel Variables 
    Loaded: loaded (/lib/systemd/system/systemd-sysctl.service; static; vendor preset: enabled) 
    Active: failed (Result: exit-code) since Thu 2017-07-13 19:08:34 CEST; 5min ago 
    Docs: man:systemd-sysctl.service(8) 
      man:sysctl.d(5) 
Main PID: 21550 (code=exited, status=1/FAILURE) 

Jul 13 19:08:34 h2707501.stratoserver.net systemd-sysctl[21550]: Couldn't write '1' to 'fs/protected_hardlinks', ignoring: No such file or directory 
Jul 13 19:08:34 h2707501.stratoserver.net systemd-sysctl[21550]: Couldn't write '1' to 'kernel/kptr_restrict', ignoring: Permission denied 
Jul 13 19:08:34 h2707501.stratoserver.net systemd-sysctl[21550]: Couldn't write '262144' to 'vm/max_map_count', ignoring: Permission denied 
Jul 13 19:08:34 h2707501.stratoserver.net systemd-sysctl[21550]: Couldn't write '176' to 'kernel/sysrq', ignoring: Permission denied 
Jul 13 19:08:34 h2707501.stratoserver.net systemd-sysctl[21550]: Couldn't write '1' to 'fs/protected_symlinks', ignoring: No such file or directory 
Jul 13 19:08:34 h2707501.stratoserver.net systemd-sysctl[21550]: Couldn't write '1' to 'kernel/yama/ptrace_scope', ignoring: No such file or directory 

這是journalctl -xe的(有關!?)輸出:

Jul 13 19:16:18 h2707501.stratoserver.net groupadd[21716]: group added to /etc/group: name=elasticsearch, GID=117 
Jul 13 19:16:18 h2707501.stratoserver.net groupadd[21716]: group added to /etc/gshadow: name=elasticsearch 
Jul 13 19:16:18 h2707501.stratoserver.net groupadd[21716]: new group: name=elasticsearch, GID=117 
Jul 13 19:16:18 h2707501.stratoserver.net useradd[21722]: new user: name=elasticsearch, UID=111, GID=117, home=/home/elasticsearch, shell=/bin/false 
Jul 13 19:16:18 h2707501.stratoserver.net usermod[21727]: change user 'elasticsearch' password 
Jul 13 19:16:18 h2707501.stratoserver.net chage[21732]: changed password expiry for elasticsearch 
Jul 13 19:16:18 h2707501.stratoserver.net systemd-sysctl[21758]: Couldn't write '176' to 'kernel/sysrq', ignoring: Permission denied 
Jul 13 19:16:18 h2707501.stratoserver.net systemd-sysctl[21758]: Couldn't write '1' to 'fs/protected_symlinks', ignoring: No such file or directory 
Jul 13 19:16:18 h2707501.stratoserver.net systemd-sysctl[21758]: Couldn't write '262144' to 'vm/max_map_count', ignoring: Permission denied 
Jul 13 19:16:18 h2707501.stratoserver.net systemd-sysctl[21758]: Couldn't write '1' to 'kernel/yama/ptrace_scope', ignoring: No such file or directory 
Jul 13 19:16:18 h2707501.stratoserver.net systemd-sysctl[21758]: Couldn't write '1' to 'fs/protected_hardlinks', ignoring: No such file or directory 
Jul 13 19:16:18 h2707501.stratoserver.net systemd-sysctl[21758]: Couldn't write '1' to 'kernel/kptr_restrict', ignoring: Permission denied 

任何想法?提前致謝!

回答

0

由於未組態,您正面臨此問題dpkg 負責所有類型安裝的軟件包。

sudo易於得到刪除--purge getdeb的倉庫

它會清除所有的庫數據,你會好到哪裏去。