关于有优班图安装 docker 失败 - V2EX
wzry2580

关于有优班图安装 docker 失败

  •  
  •   wzry2580 Apr 20, 2023 3385 views
    This topic created in 1122 days ago, the information mentioned may be changed or developed.

    安装老提示这个 :Command 'docker' not found, but can be installed with:

    snap install docker # version 20.10.17, or apt install docker.io # version 20.10.21-0ubuntu1~20.04.1

    See 'snap info docker' for additional versions.

    root@serimt4vdimm4ap:~# apt install docker.io Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install to correct these. The following packages have unmet dependencies: docker.io : Depends: containerd (>= 1.2.6-0ubuntu1~) Recommends: pigz but it is not going to be installed Recommends: ubuntu-fan but it is not going to be installed php-cli : Depends: php7.4-cli but it is not going to be installed php-zip : Depends: php-common but it is not going to be installed php7.4-common : Depends: php-common (>= 1:73) but it is not going to be installed php7.4-json : Depends: php-common (>= 1:73) but it is not going to be installed php7.4-opcache : Depends: php-common (>= 1:73) but it is not going to be installed php7.4-readline : Depends: php-common (>= 1:73) but it is not going to be installed php7.4-zip : Depends: php-common (>= 1:73) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with

    一直导致我安装失败,请问有什么解决办法,通过命令的形式

    9 replies    2023-04-21 10:54:13 +08:00
    dier
        1
    dier  
       Apr 20, 2023
    现在安装的社区版名称叫 docker-ce 。

    参考官方文档来安装吧 https://docs.docker.com/engine/install/ubuntu/
    wzry2580
        2
    wzry2580  
    OP
       Apr 20, 2023
    还是装不了,W: Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
    dier
        3
    dier  
       Apr 20, 2023
    /etc/apt/sources.list 58 行 跟 /etc/apt/sources.list.d/docker.list 的第一行有重复啊
    exqibao
        4
    exqibao  
       Apr 20, 2023
    所有操作前备份;

    编辑清理 /etc/apt/sources.list 里,docker 相关行配置;

    删除 /etc/apt/sources.list.d/docker.list 文件;

    重新执行以下命令,“--mirror Aliyun”使用阿里服务器,国内下载更快,参考 https://docs.docker.com/engine/install/ubuntu/

    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh --mirror Aliyun
    haimianbihdata
        5
    haimianbihdata  
       Apr 20, 2023 via Android
    @exqibao 前天用的就是阿里云的镜像下载 docker 。出问题。包不匹配好像。建议用腾讯云的镜像
    ysc3839
        6
    ysc3839  
       Apr 20, 2023 via Android
    建议重装系统
    tony1016
        7
    tony1016  
       Apr 20, 2023
    人家都说了,你的依赖有问题了,用 apt --fix-broken install 修复
    maxwell29
        8
    maxwell29  
       Apr 20, 2023
    我装了三次,实体机,虚拟机,都没问题。docker 和乌班图
    xjqxz2
        9
    xjqxz2  
       Apr 21, 2023
    哈哈 我用了 PODMAN~感觉体验和 DOCKER 一样一样的
    About     Help     Advertise     Blog     API     FAQ     Solana     1582 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 102ms UTC 16:43 PVG 00:43 LAX 09:43 JFK 12:43
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86