📜  E: 无法找到软件包 software-properties-common docker 文件 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:10.593000             🧑  作者: Mango

代码示例1
You need to add the universe repository:

RUN apt-get update &&\
 apt-get install -y software-properties-common &&\
 add-apt-repository universe &&\
 apt-get install -y php-apcu

If you get a "Error: 'universe' invalid" then you need to use the full source line:

 sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

instead of "universe" in your apt-add-repository line.