zoukankan      html  css  js  c++  java
  • docker调用yum时“"/usr/libexec/urlgrabber-ext-down" is not installed”

    原因:

    1 docker镜像为高版本的fedora30:latest镜像,yum本身已被dnf替代,但部分功能仍不完整; 如:yum-builddep SPECS/xxx.spec

    解决办法:

    1 安装dnf的插件 dnf-core-plugins

    2 将yum-builddep替换为 dnf builddep SPECS/xxx.spec

    Dokerfile内容如下:

    FROM shim-build-fedora:v1.0
    #FROM fedora:latest
    
    RUN /bin/rm /etc/yum.repos.d/*.repo
    COPY newstart-v3-shim-build-deps.repo /etc/yum.repos.d/
    RUN yum install -y binutils gcc gnu-efi gnu-efi-devel make redhat-rpm-config rpm-build wget dnf dnf-plugins-core
    COPY shim-unsigned-x64.spec /builddir/build/SPECS/
    COPY shimx64.efi /
    RUN dnf builddep -y /builddir/build/SPECS/shim-unsigned-x64.spec
    COPY rpmmacros /root/.rpmmacros
    WORKDIR /build
    #RUN wget https://github.com/rhboot/shim/releases/download/15/shim-15.tar.bz2 -O /builddir/build/SOURCES/shim-15.tar.bz2
    COPY shim-15.tar.bz2 /builddir/build/SOURCES/
    COPY *.patch /builddir/build/SOURCES/
    RUN rpmbuild -ba /builddir/build/SPECS/shim-unsigned-x64.spec --noclean --define 'dist .el8'
    RUN find /builddir/build/ -name 'shim*.efi'
    RUN sha256sum /builddir/build/BUILDROOT/shim*/usr/share/shim/*/*/shim*.efi
    RUN sha256sum /shimx64.efi
    RUN hexdump -Cv /builddir/build/BUILDROOT/shim*/usr/share/shim/*/*/shimx64.efi > /built.hex
    RUN hexdump -Cv /shimx64.efi > /orig.hex
    RUN diff -u /orig.hex /built.hex || true
    #RUN objdump -x /shimx64.efi | head -n 60
    #RUN objdump -x /build/builddir/BUILDROOT/shim*/usr/share/shim/*/*/shim*.efi | head -n 60
    

      

  • 相关阅读:
    js项目练习第二课
    js项目练习第一课
    进度条
    js基础
    反射
    递归函数与三级菜单
    mybatis 动态SQL
    java 面对对象(抽象 继承 接口 多态)
    java Eclipse debug技巧
    mybatis 调用存储过程
  • 原文地址:https://www.cnblogs.com/noxy/p/11313241.html
Copyright © 2011-2022 走看看