There are problems and -y was used without --force-yes

September 4, 2019 125 views
DigitalOcean Ubuntu 16.04

I will Upgrade from the Legacy Metrics Agent to the Current Agent

curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash

but show

curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash

Cleaning up old sources…OK
Verifying machine compatability…OK
Verifying compatability with script…OK
Installing apt repository…
Installing gpg key…OK
WARNING: The following packages cannot be authenticated!
  do-agent
E: There are problems and -y was used without --force-yes
3 Answers

Hello,

I’ve tested the script on a few different Ubuntu distributions and it seems to be working on all as normal.

What I would suggest is running apt update again and see if it succeeds. If so, then try to run the install script again. If you get any errors, then this would explain why the installation is not going through and it would give you a good starting point for further troubleshooting.

Regards,
Bobby

  • sudo apt-get update
    

    Finished, I use the command

    curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash
    

    It shows

    Cleaning up old sources…OK
    Verifying machine compatability…OK
    Verifying compatability with script…OK
    Installing apt repository…
    Installing gpg key…OK
    W: Failed to fetch https://repos.insights.digitalocean.com/apt/do-agent/dists/main/main/binary-amd64/Packages  gnutls_handshake() failed: Decrypt error
    
    W: Failed to fetch https://repos.insights.digitalocean.com/apt/do-agent/dists/main/main/binary-i386/Packages  gnutls_handshake() failed: Decrypt error
    
    E: Some index files failed to download. They have been ignored, or old ones used instead.```
    
    • Can you share the exact Ubuntu version that you have, just run this command and provide me with the output:

      cat /etc/os-release
      

      Also have you made any changes to your apt-conf?

      I think that you might have to replace libcurl4-gnutls-dev with libcurl4-openssl-dev in order to solve the decrypt error. Though to be on the save side make sure to take a snapshot of your server in case this causes any issues for the other services that you have running on your server.

      • cat /etc/os-release
        
        NAME="Ubuntu"
        VERSION="14.04.6 LTS, Trusty Tahr"
        ID=ubuntu
        ID_LIKE=debian
        PRETTY_NAME="Ubuntu 14.04.6 LTS"
        VERSION_ID="14.04"
        HOME_URL="http://www.ubuntu.com/"
        SUPPORT_URL="http://help.ubuntu.com/"
        BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
        
        
        • Hello,

          Ok that would explain the problem. Ubuntu 14 is no longer going to be supported and a lot of packages are no longer available already, including do-agent.

          I would strongly recommend upgrading to Ubuntu 18 or 19 so that you could get the latest security patches along with all of the new packages.

          Regards,
          Bobby

I am having the same issue, and running apt update still gives the same error

I followed and a new error occurred.

sudo apt-get update

Finished, I use the command

curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash

It shows

Cleaning up old sources…OK
Verifying machine compatability…OK
Verifying compatability with script…OK
Installing apt repository…
Installing gpg key…OK
W: Failed to fetch https://repos.insights.digitalocean.com/apt/do-agent/dists/main/main/binary-amd64/Packages  gnutls_handshake() failed: Decrypt error

W: Failed to fetch https://repos.insights.digitalocean.com/apt/do-agent/dists/main/main/binary-i386/Packages  gnutls_handshake() failed: Decrypt error

E: Some index files failed to download. They have been ignored, or old ones used instead.

Have another answer? Share your knowledge.