如何在Ubuntu 20.04.5上安装Docker版本20.10.12- 0 ubuntu 2 ~20.04.1

xyhw6mcr  于 2023-03-22  发布在  Docker
关注(0)|答案(2)|浏览(254)

为什么我无法在docker.ioUbuntu 20.04.5上安装www.example.com版本20.10.12- 0 ubuntu 2 ~20.04.1?它在早些时候成功安装。任何想法如何进一步调试它以了解Ubuntu存储库中的更改?也在寻找修复的解决方案。

root@Ubuntu:/home/ravi/# apt-get install -y --allow-downgrades --allow-change-held-packages --allow-unauthenticated --ignore-hold docker.io=20.10.12-0ubuntu2~20.04.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '20.10.12-0ubuntu2~20.04.1' for 'docker.io' was not found
root@Ubuntu:/home/ravi/ric-dep/bin#

root@Ubuntu:~# lsb_release  -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:    20.04
Codename:   focal
root@Ubuntu:~# 
root@Ubuntu:~#

我得到了索引错误,同时也更新了APT仓库

+ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg
+ apt-key add -
OK
+ echo 'deb http://apt.kubernetes.io/ kubernetes-xenial main'
+ mkdir -p /etc/apt/apt.conf.d
+ echo 'APT::Acquire::Retries "3";'
+ apt-get update
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease                                        
Get:1 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [8,993 B]                       
Err:3 http://in.archive.ubuntu.com/ubuntu focal InRelease                                                                                                                                                 
  Temporary failure resolving 'in.archive.ubuntu.com'
Hit:4 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 8,993 B in 21s (432 B/s)
Reading package lists... Done
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/focal/InRelease  Temporary failure resolving 'in.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
zlhcx6iw

zlhcx6iw1#

我也在部署RIC平台,得到了这个错误。我只是选择了我找到的另一个版本的docker:https://www.ubuntuupdates.org/package/core/focal/universe/updates/docker.io它在我的Ubuntu版本上工作:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal
plicqrtu

plicqrtu2#

试试看

apt-get install -y --allow-downgrades --allow-change-held-packages --allow-unauthenticated --ignore-hold docker.io=20.10.21-0ubuntu1~20.04.1

相关问题