You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

shasum报错含义解析及Ubuntu 17.10安装Elasticsearch 5.6.4的解决方法

Fixing "no properly formatted SHA1 checksum lines found" Error for Elasticsearch 5.6.4 on Ubuntu 17.10

First, let's break down what this error actually means:

elasticsearch-5.0.0.deb.sha1: no properly formatted SHA1 checksum lines found

This message tells you the system can't parse your SHA1 checksum file correctly. Standard SHA1 checksum files follow a strict structure: a 40-character SHA1 hash, followed by either two spaces or a tab, then the exact filename of the package it's meant to verify. If the file has wrong formatting, mismatched filenames, or corrupt content, you'll hit this error.

Looking at your error, there's an obvious red flag: the checksum file referenced is for elasticsearch-5.0.0.deb, but you're trying to install 5.6.4. That's almost certainly a key part of the problem. Here's how to fix this step by step:

  • Verify version matching between files
    Double-check that you have the correct SHA1 file for Elasticsearch 5.6.4. Your checksum file should be named something like elasticsearch-5.6.4.deb.sha1, not the 5.0.0 version mentioned in the error. If you downloaded the wrong checksum file, grab the correct one for the 5.6.4 release.

  • Inspect and correct the checksum file format
    Open the SHA1 file with a text editor (like nano elasticsearch-5.6.4.deb.sha1). It should contain exactly one line in this format:

    a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0  elasticsearch-5.6.4.deb
    

    If there are extra lines, comments, or the filename doesn't match your actual .deb package, clean up the file to match this exact structure.

  • Manually verify the checksum (bypass automatic checks)
    If the automatic check keeps failing, verify the package integrity yourself:

    1. Run this command to calculate the SHA1 hash of your .deb file:
      sha1sum elasticsearch-5.6.4.deb
      
    2. Compare the output hash with the value in your SHA1 checksum file. If they match, your package is uncorrupted and safe to install with:
      sudo dpkg -i elasticsearch-5.6.4.deb
      
  • Re-download the checksum file if needed
    If you suspect the SHA1 file itself is corrupted or downloaded incorrectly, delete it and re-download the official checksum for Elasticsearch 5.6.4. Make sure the download completes fully without interruptions.

内容的提问来源于stack exchange,提问作者Fatemeh Moh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:30:14