adoptium / installer

Installer scripts for Eclipse Temurin binaries
Apache License 2.0
152 stars 76 forks source link

Issue with Clearsigned File and NOSPLIT Error during Repository Update #799

Open bananajoe200 opened 10 months ago

bananajoe200 commented 10 months ago

Hello,

I hope this message finds you well. I am experiencing an issue when trying to update the AdoptOpenJDK repository on my Debian 10 (buster) system.

The error message I am encountering is as follows:

Err:6 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster InRelease Clearsigned file is not valid, received 'NOSPLIT' (does the network require authentication?) Paket lists are being read... Done E: Failed to fetch https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/dists/buster/InRelease Clearsigned file is not valid, received 'NOSPLIT' (does the network require authentication?) E: The repository 'https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster InRelease' is no longer signed. N: Updating from such a repository cannot be done securely, and it is disabled by default. N: For more details, see the apt-secure(8) manual page.

I followed the installation guide provided at: Adoptium Blog - Eclipse Temurin Linux Installers

Despite my efforts, the problem persists. It seems to be related to a Clearsigned file issue with a 'NOSPLIT' error.

Could you kindly assist me in resolving this matter? If there are specific steps or changes to the approach that I should follow, please provide guidance.

Thank you in advance for your support.

karianna commented 10 months ago

Possibly related #782

isadon commented 7 months ago

Getting this error currently, is there any way to resolve?

karianna commented 7 months ago

The error message you are encountering during package installation on your Linux system suggests a problem with fetching data from the repository at "https://adoptopenjdk.jfrog.io/adoptopenjdk/deb". This is typically due to network issues or repository configuration errors. Here are some steps to troubleshoot and potentially resolve the issue:

  1. Check Network Connectivity:

    • Ensure your system has proper internet access.
    • Test connectivity to the repository by using tools like ping or curl to see if the server is reachable:
      curl -I https://adoptopenjdk.jfrog.io/adoptopenjdk/deb
  2. Inspect Repository Configuration:

    • Verify that the repository URL in your APT sources list is correct. Check the file /etc/apt/sources.list or the files under /etc/apt/sources.list.d/ for any entry related to adoptopenjdk.
    • The repository line should look something like this for Debian Buster:
      deb [signed-by=/usr/share/keyrings/adoptopenjdk-archive-keyring.gpg] https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster main
    • Make sure that the URL and distribution name (in your case, buster) are correct.
  3. Authentication and Proxy Configuration:

    • The error mentions "does the network require authentication?" which indicates that a proxy or some network policy might be blocking or altering the request. If you're behind a proxy, configure the proxy settings for APT:
      • You can set the proxy for APT in /etc/apt/apt.conf.d/, for example:
        Acquire::http::Proxy "http://proxy_address:proxy_port";
    • If network authentication is required, make sure that your system is authenticated on the network or that you have set up proper credentials for accessing the internet.
  4. Update and Install:

    • Once the repository and network configurations are verified and corrected if needed, try updating your package lists and install the package again:
      sudo apt update
      sudo apt install <package-name>
  5. Check Repository Key:

    • Ensure that you have the GPG key for the AdoptOpenJDK repository imported and that it's up to date. You can add or update the key using:
      curl -sL "https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public" | sudo apt-key add -
  6. Consult Logs:

    • If the problem persists, you can check the APT logs for more detailed error information:
      • /var/log/apt/term.log
      • /var/log/apt/history.log

These steps should help you diagnose and hopefully resolve the issue you're facing with accessing the AdoptOpenJDK repository on your Linux system.