首页 > 解决方案 > 在 Ubuntu16.04 上安装 InfluxDB 的问题

问题描述

我正在尝试在我的 linux 服务器上安装 InfluxDB。我跑了sudo apt-get install influxdb,得到以下输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  influxdb
0 upgraded, 1 newly installed, 0 to remove and 158 not upgraded.
Need to get 0 B/3160 kB of archives.
After this operation, 14.6 MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package influxdb.
(Reading database ... 146447 files and directories currently installed.)
Preparing to unpack .../influxdb_0.10.0+dfsg1-1_amd64.deb ...
Unpacking influxdb (0.10.0+dfsg1-1) ...
Processing triggers for systemd (229-4ubuntu21.15) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up influxdb (0.10.0+dfsg1-1) ...
Processing triggers for systemd (229-4ubuntu21.15) ...
Processing triggers for ureadahead (0.100.0-19) ...  

然后,为了检查 influx 的版本,我运行influxd并获得了版本号 0.10.0。最新版本是 1.7.3。所以我卸载了当前安装:sudo apt-get purge --auto-remove influxdb并尝试:sudo apt-get install influxdb=1.7.3并得到以下输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '1.7.2' for 'influxdb' was not found

我不明白这个安装似乎有什么问题。为什么它会为我安装以前的版本?当我在我的 Ubuntu 18.04 服务器上尝试同样的事情时,我得到了最新版本的 InfluxDB,没有任何问题。如何获得最新版本?

标签: influxdb

解决方案


推荐阅读