ubuntu 22.04系统中安装cockpit-podman

2023-06-01 00:00:00 ubuntu 系统 安装

上一篇是安装cockpit web管理工具,这篇直接安装cockpit-podman其他就不说了

进行安装:

[email protected]:~# apt install cockpit-podman
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cockpit-podman

ps:

直接就报错了,这是提示找不到包,一般是源问题的,你懂得;

我之前没报错就忘记换源了,这里我直接换清华源了


清华源:

https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/

换源步骤

先备份一下

[email protected]:~# cp  /etc/apt/sources.list   /etc/apt/sources.list.backup

然后访问清华源的链接,选择你的ubuntu版本: 22.04 LTS

清华源.png

复制一下信息 粘贴至 /etc/apt/sources.list文件中

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

# 预发布软件源,不建议启用

# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

更新源

apt update


安装cockpit-podman就ok了

[email protected]:~# apt install cockpit-podman
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfwupdplugin1 libxmlb1
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  cockpit-podman
0 upgraded, 1 newly installed, 0 to remove and 609 not upgraded.
Need to get 480 kB of archives.
After this operation, 500 kB of additional disk space will be used.
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 cockpit-podman all 45-1 [480 kB]
Fetched 480 kB in 4s (123 kB/s)         
Selecting previously unselected package cockpit-podman.
(Reading database ... 110036 files and directories currently installed.)
Preparing to unpack .../cockpit-podman_45-1_all.deb ...
Unpacking cockpit-podman (45-1) ...
Setting up cockpit-podman (45-1) ...
[email protected]:~# 

看看效果

cockpit-podman.png

相关链接:

ubuntu 22.04系统中安装cockpit web图形服务器管理工具

https://www.zongscan.com/demo333/96203.html

相关文章