E:软件包“ gvfs-bin”没有候选安装

时间:2020-10-15 00:21:31

标签: docker google-chrome containers apt ubuntu-20.04

使用

在我的Docker容器中安装Google Chrome之后

RUN wget -qO - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
    && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \
    && sed -i '3 s/^/# /' /etc/apt/sources.list \
    && apt-get update && apt-get install --allow-downgrades --no-install-recommends -y google-chrome-stable \
    && apt-get autoremove -y \
    && apt-get clean

如果我尝试安装更多的apt-packages,

RUN apt-get update && apt-get install --allow-downgrades --no-install-recommends -y gvfs-bin

我得到一个错误

E: Package 'gvfs-bin' has no installation candidate

或者那个

W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
E: Unable to correct problems, you have held broken packages.

关于如何调试此程序的任何想法?我在容器中的Ubuntu 20.04上。

0 个答案:

没有答案