I followed the instruction to upgrade do-agent but it was failed

October 14, 2019 126 views
DigitalOcean Accounts

I run this command

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

I got this error on the first attempt

Running hooks in /etc/ca-certificates/update.d....done.
Installing gpg key...OK
WARNING: The following packages cannot be authenticated!
  do-agent
E: There are problems and -y was used without --force-yes

On the second attempt, i was stucked at the last command below

Cleaning up old sources...OK
Verifying machine compatability...OK
Verifying compatability with script...OK
Installing apt repository...

Any solution ?

1 Answer

Hello,

I would suggest running the following commands:

sudo apt-key update
sudo apt-get update

Then try again with the upgrade.

Let me know how it goes!
Regards,
Bobby

  • Sorry for the late reply. I have tried it but it failed on sudo apt-get update. This is the full output.

    Ign http://mirrors.digitalocean.com trusty InRelease
    Hit http://mirrors.digitalocean.com trusty-updates InRelease
    Hit http://mirrors.digitalocean.com trusty-backports InRelease
    Hit http://mirrors.digitalocean.com trusty Release.gpg
    Hit http://mirrors.digitalocean.com trusty Release
    Hit http://mirrors.digitalocean.com trusty-updates/main Sources
    Hit http://mirrors.digitalocean.com trusty-updates/restricted Sources
    Hit http://mirrors.digitalocean.com trusty-updates/universe Sources
    Hit http://mirrors.digitalocean.com trusty-updates/multiverse Sources
    Hit http://mirrors.digitalocean.com trusty-updates/main amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-updates/restricted amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-updates/universe amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-updates/multiverse amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-updates/main i386 Packages
    Hit http://mirrors.digitalocean.com trusty-updates/restricted i386 Packages
    Hit http://mirrors.digitalocean.com trusty-updates/universe i386 Packages
    Hit http://ppa.launchpad.net trusty InRelease
    Hit http://mirrors.digitalocean.com trusty-updates/multiverse i386 Packages
    Hit http://mirrors.digitalocean.com trusty-updates/main Translation-en
    Hit http://security.ubuntu.com trusty-security InRelease
    Hit http://mirrors.digitalocean.com trusty-updates/multiverse Translation-en
    Hit http://mirrors.digitalocean.com trusty-updates/restricted Translation-en
    Hit http://mirrors.digitalocean.com trusty-updates/universe Translation-en
    Hit http://mirrors.digitalocean.com trusty-backports/main Sources
    Hit http://mirrors.digitalocean.com trusty-backports/restricted Sources
    Hit http://mirrors.digitalocean.com trusty-backports/universe Sources
    Hit http://mirrors.digitalocean.com trusty-backports/multiverse Sources
    Hit http://mirrors.digitalocean.com trusty-backports/main amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-backports/restricted amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-backports/universe amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-backports/multiverse amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-backports/main i386 Packages
    Hit http://mirrors.digitalocean.com trusty-backports/restricted i386 Packages
    Hit http://mirrors.digitalocean.com trusty-backports/universe i386 Packages
    Hit http://ppa.launchpad.net trusty/main amd64 Packages
    Hit http://mirrors.digitalocean.com trusty-backports/multiverse i386 Packages
    Hit http://mirrors.digitalocean.com trusty-backports/main Translation-en
    Hit http://mirrors.digitalocean.com trusty-backports/multiverse Translation-en
    Hit http://mirrors.digitalocean.com trusty-backports/restricted Translation-en
    Hit http://mirrors.digitalocean.com trusty-backports/universe Translation-en
    Hit http://mirrors.digitalocean.com trusty/main Sources
    Hit http://mirrors.digitalocean.com trusty/restricted Sources
    Get:1 http://ppa.launchpad.net trusty/main i386 Packages [14 B]
    Get:2 http://ppa.launchpad.net trusty/main Translation-en [14 B]
    Ign https://repos.insights.digitalocean.com main InRelease
    Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
    Hit http://security.ubuntu.com trusty-security/main i386 Packages
    Hit http://security.ubuntu.com trusty-security/universe i386 Packages
    Hit http://security.ubuntu.com trusty-security/main Translation-en
    Ign https://repos.insights.digitalocean.com main Release.gpg
    Hit http://security.ubuntu.com trusty-security/universe Translation-en
    Hit https://deb.nodesource.com trusty InRelease
    Get:3 http://security.ubuntu.com trusty-security/main Sources [172 kB]
    Get:4 http://security.ubuntu.com trusty-security/universe Sources [102 kB]
    Hit https://deb.nodesource.com trusty/main Sources
    Get:5 http://security.ubuntu.com trusty-security/main amd64 Packages [835 kB]
    Ign https://repos.insights.digitalocean.com main Release
    E: Method https has died unexpectedly!
    E: Sub-process https received signal 9.
    
    • Hello,

      Would you mind confirming your exact Ubuntu version? You can check that by running:

      sudo cat /etc/os-release
      

      The error is making me think that you are either using an old Ubuntu distro or that something is wrong with your libcurl.

      Regards,
      Bobby

      • NAME="Ubuntu"
        VERSION="14.04.3 LTS, Trusty Tahr"
        ID=ubuntu
        ID_LIKE=debian
        PRETTY_NAME="Ubuntu 14.04.3 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,

          Yes, Ubuntu 14.04 is no longer going to be supported so that would explain why the installation is failing.

          I would recommend upgrading to a newer version which would include all of the new security patches and all of the packages as well.

          Hope that this helps!
          Regards,
          Bobby

Have another answer? Share your knowledge.