当前位置:论坛首页 > Linux面板 > 求助

【已完成】docker安装失败

发表在 Linux面板2024-1-12 01:26 [复制链接] 2 699

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本: Linux面板8.0.5
系统版本:Ubuntu 22.04 (Jammy Jellyfish) x86_64(Py3.7.8)
问题描述:宝塔面板左侧的docker点击安装一直安装不上
相关截图(日志、错误):
正在选择下载节点...
--2024-01-12 01:18:31-- https://dg2.bt.cn/install/0/docker_install.sh
Resolving dg2.bt.cn (dg2.bt.cn)... 36.133.1.8
Connecting to dg2.bt.cn (dg2.bt.cn)|36.133.1.8|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17070 (17K) [application/octet-stream]
Saving to: ‘docker_install.sh’
0K .......... ...... 100% 138M=0s
2024-01-12 01:18:31 (138 MB/s) - ‘docker_install.sh’ saved [17070/17070]
https://dg2.bt.cn
https://dg2.bt.cn
--2024-01-12 01:18:31-- https://dg2.bt.cn/install/src/docker.db
Resolving dg2.bt.cn (dg2.bt.cn)... 36.133.1.8
Connecting to dg2.bt.cn (dg2.bt.cn)|36.133.1.8|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 69632 (68K) [application/octet-stream]
Saving to: ‘/www/server/panel/data/db/docker.db’
0K .......... .......... .......... .......... .......... 73% 1.29M 0s
50K .......... ........ 100% 147M=0.04s
2024-01-12 01:18:31 (1.75 MB/s) - ‘/www/server/panel/data/db/docker.db’ saved [69632/69632]
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory
Hit:1 http://mirrors.tencentyun.com/ubuntu jammy InRelease
Hit:2 http://mirrors.tencentyun.com/ubuntu jammy-updates InRelease
Hit:3 http://mirrors.tencentyun.com/ubuntu jammy-security InRelease
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease
Reading package lists...
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 102569 (apt-get)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Hit:1 http://mirrors.tencentyun.com/ubuntu jammy InRelease
Hit:2 http://mirrors.tencentyun.com/ubuntu jammy-updates InRelease
Hit:3 http://mirrors.tencentyun.com/ubuntu jammy-security InRelease
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease
Reading package lists...
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 102569 (apt-get)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
curl: (23) Failure writing output to destination
chmod: cannot access '/usr/libexec/docker/cli-plugins/docker-compose': No such file or directory
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: pytz in ./pyenv/lib/python3.7/site-packages (2019.3)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip available: 22.3 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: docker in ./pyenv/lib/python3.7/site-packages (4.2.0)
Requirement already satisfied: six>=1.4.0 in ./pyenv/lib/python3.7/site-packages (from docker) (1.16.0)
Requirement already satisfied: requests!=2.18.0,>=2.14.2 in ./pyenv/lib/python3.7/site-packages (from docker) (2.28.1)
Requirement already satisfied: websocket-client>=0.32.0 in ./pyenv/lib/python3.7/site-packages (from docker) (1.2.3)
Requirement already satisfied: charset-normalizer<3,>=2 in ./pyenv/lib/python3.7/site-packages (from requests!=2.18.0,>=2.14.2->docker) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in ./pyenv/lib/python3.7/site-packages (from requests!=2.18.0,>=2.14.2->docker) (2019.11.28)
Requirement already satisfied: idna<4,>=2.5 in ./pyenv/lib/python3.7/site-packages (from requests!=2.18.0,>=2.14.2->docker) (2.8)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./pyenv/lib/python3.7/site-packages (from requests!=2.18.0,>=2.14.2->docker) (1.26.7)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip available: 22.3 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
Docker安装失败
系统信息为:ubuntu.jammy
内核信息:Linux VM-16-15-ubuntu 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Ign:6 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-ce-cli amd64 5:24.0.7-1~ubuntu.22.04~jammy
Get:7 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-ce amd64 5:24.0.7-1~ubuntu.22.04~jammy [22.6 MB]

腾讯的轻量云服务器,地域选择是上海,换过centos 7.6、Centos 8 stream、ubuntu22.04(日志对应的系统),三个系统都是安装失败。
使用道具 举报 只看该作者 回复
发表于 2024-1-12 11:26:09 | 显示全部楼层
您好,使用下面命令处理,然后重新安装看看:
  1. rm /var/lib/dpkg/lock-frontend
  2. rm /var/lib/dpkg/lock
复制代码

使用道具 举报 回复 支持 反对
发表于 2024-1-16 09:30:41 | 显示全部楼层
您好,由于长时间未回复,此帖子状态标记已完成状态。感谢您的使用!
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表