when apt install ansible have error message on Ubuntu 20.04

Asked by William Cheng

use apt to install ansible have error message but still seems success install

Error message :
"ERROR rpc error: code = DeadlineExceeded desc = context deadline exceeded "

Check /var/log/apt/term.log have found some message

```
Setting up python3-requests-kerberos (0.12.0-2) ...^M
Setting up ieee-data (20180805.1) ...^M
Setting up python3-dnspython (1.16.0-1build1) ...^M
Setting up python3-selinux (3.0-1build2) ...^M
Setting up python3-argcomplete (1.8.1-1.3ubuntu1) ...^M
Setting up python3-requests-ntlm (1.1.0-1) ...^M
Setting up python3-netaddr (0.7.19-3) ...^M
/usr/lib/python3/dist-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?^M
  if word_sep is not '':^M
Setting up python3-winrm (0.3.0-2) ...^M
Setting up ansible (2.9.6+dfsg-1) ...^M
Processing triggers for man-db (2.9.1-1) ...
```

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ansible Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the full output that you receive for the following commands (to be executed in a terminal window)

uname -a
lsb_release -crid
sudo apt update
sudo apt install ansible

Revision history for this message
William Cheng (bell19) said :
#2

Hi Manfred, following are run command got info.
But today I re-install not get any error message, I think everything is working.
very thanks to help.

$ uname -a
Linux luxame-laptop 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

$ sudo apt update
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:6 http://tw.archive.ubuntu.com/ubuntu focal InRelease
Hit:7 http://tw.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:8 http://tw.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:9 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [18.7 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [31.6 kB]
Fetched 157 kB in 3s (54.1 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

$ sudo apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  cowsay sshpass
The following NEW packages will be installed:
  ansible
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5794 kB of archives.
After this operation, 58.0 MB of additional disk space will be used.
Get:1 http://tw.archive.ubuntu.com/ubuntu focal/universe amd64 ansible all 2.9.6+dfsg-1 [5794 kB]
Fetched 5794 kB in 1s (9628 kB/s)
INFO Requesting to save current system state
Successfully saved as "autozsys_yqyq8j"
Selecting previously unselected package ansible.
(Reading database ... 200806 files and directories currently installed.)
Preparing to unpack .../ansible_2.9.6+dfsg-1_all.deb ...
Unpacking ansible (2.9.6+dfsg-1) ...
Setting up ansible (2.9.6+dfsg-1) ...
Processing triggers for man-db (2.9.1-1) ...
INFO Updating GRUB menu

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

this looks fully correct. I think that you can close this question as solved.

Can you help with this problem?

Provide an answer of your own, or ask William Cheng for more information if necessary.

To post a message you must log in.