进行安装:
root@htz:~# apt install cockpit-podman Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package cockpit-podman ps:
直接就报错了,这是提示找不到包,一般是源问题的,你懂得;
我之前没报错就忘记换源了,这里我直接换清华源了
清华源:
irror.tuna.tsinghua.edu.cn/help/ubuntu/ 换源步骤
先备份一下
root@htz:~# 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 inghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb ors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb-src rs.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb hs.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse na.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb .tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb-src tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
预发布软件源,不建议启用
deb
a.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src hinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
更新源
apt update
安装cockpit-podman就ok了
root@htz:# 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) ... root@htz:# 看看效果
进行安装:
root@htz:~# apt install cockpit-podman Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package cockpit-podman ps:
直接就报错了,这是提示找不到包,一般是源问题的,你懂得;
我之前没报错就忘记换源了,这里我直接换清华源了
清华源:
irror.tuna.tsinghua.edu.cn/help/ubuntu/ 换源步骤
先备份一下
root@htz:~# 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 inghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb ors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb-src rs.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb hs.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse na.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb .tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb-src tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
预发布软件源,不建议启用
deb
a.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src hinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
更新源
apt update
安装cockpit-podman就ok了
root@htz:# 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) ... root@htz:# 看看效果