ติดตั้ง do-agent ไม่ได้ เจอ Errorgnutls_handshake() failed: Decrypt error
ลองอัพเดดroot@ubuntu-14-openerp7-azking:~# sudo apt-get install do-agent --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
do-agent
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 4,510 kB of archives.
After this operation, 12.0 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
do-agent
Install these packages without verification? [y/N] y
Err https://repos.insights.digitalocean.com/apt/do-agent/ main/main do-agent amd64 3.5.6
gnutls_handshake() failed: Decrypt error
E: Failed to fetch https://repos.insights.digitalocean.com ... _amd64.deb gnutls_handshake() failed: Decrypt error
โค้ด: เลือกทั้งหมด
sudo apt-get update
วิธีแก้ไข ติดตั้ง Manual รันคำสั่งตามลำดับดังนี้W: Failed to fetch https://repos.insights.digitalocean.com ... 4/Packages gnutls_handshake() failed: Decrypt error
E: Some index files failed to download. They have been ignored, or old ones used instead.
โค้ด: เลือกทั้งหมด
curl -L -o ./install.sh https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh
โค้ด: เลือกทั้งหมด
sed -i '17s/https/http/' install.sh
โค้ด: เลือกทั้งหมด
chmod 775 install.sh
โค้ด: เลือกทั้งหมด
./install.sh
โค้ด: เลือกทั้งหมด
/opt/digitalocean/bin/do-agent --version
เท่านี้ก็สามารถแก้ปัญ Error ตามหัวข้อกระทู้ได้แล้วdo-agent (DigitalOcean Agent)
Version: 3.5.6
Revision: 7dadc14
Build Date: Mon Aug 12 14:45:50 UTC 2019
Go Version: go1.12.1
Website: https://github.com/digitalocean/do-agent
Copyright (c) 2020 DigitalOcean, Inc. All rights reserved.
This work is licensed under the terms of the Apache 2.0 license.
For a copy, see <https://www.apache.org/licenses/LICENSE-2.0.html>.